aboutsummaryrefslogtreecommitdiffstats
path: root/packages/antlr
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2005-06-30 08:19:37 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2005-06-30 08:19:37 +0000
commitc8e5702127e507e82e6f68a4b8c546803accea9d (patch)
tree00583491f40ecc640f2b28452af995e3a63a09d7 /packages/antlr
parent87ec8ca4d2e2eb4d1c1e1e1a6b46a395d56805b9 (diff)
downloadopenembedded-c8e5702127e507e82e6f68a4b8c546803accea9d.tar.gz
openembedded-c8e5702127e507e82e6f68a4b8c546803accea9d.tar.bz2
openembedded-c8e5702127e507e82e6f68a4b8c546803accea9d.zip
import clean BK tree at cset 1.3670
Diffstat (limited to 'packages/antlr')
-rw-r--r--packages/antlr/.mtn2git_empty0
-rw-r--r--packages/antlr/antlr-native_2.7.5.bb7
-rw-r--r--packages/antlr/antlr_2.7.5.bb27
-rw-r--r--packages/antlr/files/.mtn2git_empty0
-rw-r--r--packages/antlr/files/install.patch186
5 files changed, 220 insertions, 0 deletions
diff --git a/packages/antlr/.mtn2git_empty b/packages/antlr/.mtn2git_empty
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/antlr/.mtn2git_empty
diff --git a/packages/antlr/antlr-native_2.7.5.bb b/packages/antlr/antlr-native_2.7.5.bb
index e69de29bb2..9eebeb8485 100644
--- a/packages/antlr/antlr-native_2.7.5.bb
+++ b/packages/antlr/antlr-native_2.7.5.bb
@@ -0,0 +1,7 @@
+include antlr_${PV}.bb
+inherit native
+
+# A native antlr would need a native java virtual machine..
+# eww. -CL
+DEPENDS = "virtual/java-native"
+BROKEN = "1"
diff --git a/packages/antlr/antlr_2.7.5.bb b/packages/antlr/antlr_2.7.5.bb
index e69de29bb2..b1a2b2cfaf 100644
--- a/packages/antlr/antlr_2.7.5.bb
+++ b/packages/antlr/antlr_2.7.5.bb
@@ -0,0 +1,27 @@
+DESCRIPTION = "ANother Tool for Language Recognition, (formerly PCCTS) is a \
+language tool that provides a framework for constructing recognizers, \
+compilers, and translators from grammatical descriptions containing \
+Java, C#, C++, or Python actions."
+LICENSE = "PD"
+MAINTAINER = "Chris Larson <kergoth@handhelds.org>"
+PRIORITY = "optional"
+SECTION = "devel"
+# DEPENDS += "virtual/java"
+RDEPENDS += "java-virtual-machine"
+
+SRC_URI = "http://www.antlr.org/download/antlr-${PV}.tar.gz \
+ file://install.patch;patch=1"
+S = "${WORKDIR}/antlr-${PV}"
+
+inherit autotools
+
+EXTRA_OECONF += "--disable-java --enable-cxx \
+ --disable-python --disable-csharp \
+ --disable-verbose --disable-examples"
+
+do_configure () {
+ if [ ! -e acinclude.m4 ]; then
+ mv aclocal.m4 acinclude.m4
+ fi
+ autotools_do_configure
+}
diff --git a/packages/antlr/files/.mtn2git_empty b/packages/antlr/files/.mtn2git_empty
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/antlr/files/.mtn2git_empty
diff --git a/packages/antlr/files/install.patch b/packages/antlr/files/install.patch
index e69de29bb2..3ab0932673 100644
--- a/packages/antlr/files/install.patch
+++ b/packages/antlr/files/install.patch
@@ -0,0 +1,186 @@
+Index: antlr-2.7.5/Makefile.in
+===================================================================
+--- antlr-2.7.5.orig/Makefile.in 2005-01-28 15:45:42.000000000 -0600
++++ antlr-2.7.5/Makefile.in 2005-02-18 12:53:15.000000000 -0600
+@@ -123,16 +123,16 @@
+ extradir = $(datadir)/$(versioneddir)
+
+ install ::
+- $(MKDIR) -p "$(bindir)"
+- $(MKDIR) -p "$(extradir)"
+- $(MKDIR) -p "$(docdir)"
+- $(INSTALL) -m 755 scripts/run-antlr "$(bindir)/antlr"
+- $(INSTALL) -m 755 scripts/antlr-config "$(bindir)/antlr-config"
+- $(INSTALL) -m 444 @abs_top_srcdir@/extras/antlr-mode.el "$(extradir)"
+- $(INSTALL) -m 444 @abs_top_srcdir@/extras/antlr-jedit.xml "$(extradir)"
+- $(INSTALL) -m 444 @abs_top_srcdir@/LICENSE.txt "$(docdir)"
+- $(INSTALL) -m 444 @abs_top_srcdir@/README.txt "$(docdir)"
+- $(INSTALL) -m 444 @abs_top_srcdir@/INSTALL.txt "$(docdir)"
++ $(MKDIR) -p "$(DESTDIR)$(bindir)"
++ $(MKDIR) -p "$(DESTDIR)$(extradir)"
++ $(MKDIR) -p "$(DESTDIR)$(docdir)"
++ $(INSTALL) -m 755 scripts/run-antlr "$(DESTDIR)$(bindir)/antlr"
++ $(INSTALL) -m 755 scripts/antlr-config "$(DESTDIR)$(bindir)/antlr-config"
++ $(INSTALL) -m 444 @abs_top_srcdir@/extras/antlr-mode.el "$(DESTDIR)$(extradir)"
++ $(INSTALL) -m 444 @abs_top_srcdir@/extras/antlr-jedit.xml "$(DESTDIR)$(extradir)"
++ $(INSTALL) -m 444 @abs_top_srcdir@/LICENSE.txt "$(DESTDIR)$(docdir)"
++ $(INSTALL) -m 444 @abs_top_srcdir@/README.txt "$(DESTDIR)$(docdir)"
++ $(INSTALL) -m 444 @abs_top_srcdir@/INSTALL.txt "$(DESTDIR)$(docdir)"
+
+ install ::
+ echo "installation done"
+Index: antlr-2.7.5/doc/Makefile.in
+===================================================================
+--- antlr-2.7.5.orig/doc/Makefile.in 2005-01-28 15:13:19.000000000 -0600
++++ antlr-2.7.5/doc/Makefile.in 2005-02-18 12:50:51.000000000 -0600
+@@ -43,12 +43,12 @@
+ $(eol)
+
+ install ::
+- @$(MKDIR) -p "$(antlr_doc_DIR)"
++ @$(MKDIR) -p "$(DESTDIR)$(antlr_doc_DIR)"
+ @echo "install doc files .. "
+ @for f in $(antlr_doc_FILES) ; do \
+ echo "install $${f}" ; \
+ if test -f "$${f}" ; then \
+- $(INSTALL) -m 444 "$${f}" "$(antlr_doc_DIR)" ; \
++ $(INSTALL) -m 444 "$${f}" "$(DESTDIR)$(antlr_doc_DIR)" ; \
+ fi ;\
+ done
+
+Index: antlr-2.7.5/lib/csharp/src/Makefile.in
+===================================================================
+--- antlr-2.7.5.orig/lib/csharp/src/Makefile.in 2005-01-28 15:13:23.000000000 -0600
++++ antlr-2.7.5/lib/csharp/src/Makefile.in 2005-02-18 12:51:54.000000000 -0600
+@@ -134,13 +134,13 @@
+ distclean :: clean
+
+ install :: @ANTLR_NET@
+- @$(MKDIR) -p "$(libdir)"
++ @$(MKDIR) -p "$(DESTDIR)$(libdir)"
+ @echo "install C# core files .. "
+ @for f in @ANTLR_NET@ ; do \
+ echo "install $${f}" ; \
+ if test -f "$${f}" ; then \
+- $(INSTALL) -m 444 "$${f}" "$(libdir)" ; \
+- $(INSTALL) -m 444 "$${f}" "$(datadir)/$(versioneddir)" ; \
++ $(INSTALL) -m 444 "$${f}" "$(DESTDIR)$(libdir)" ; \
++ $(INSTALL) -m 444 "$${f}" "$(DESTDIR)$(datadir)/$(versioneddir)" ; \
+ fi ;\
+ done
+
+Index: antlr-2.7.5/lib/csharp/ASTFrame/Makefile.in
+===================================================================
+--- antlr-2.7.5.orig/lib/csharp/ASTFrame/Makefile.in 2005-01-28 15:13:23.000000000 -0600
++++ antlr-2.7.5/lib/csharp/ASTFrame/Makefile.in 2005-02-18 12:51:38.000000000 -0600
+@@ -46,13 +46,13 @@
+
+ ## install our target ..
+ install :: @ASTFRAME_NET@
+- @$(MKDIR) -p "$(libdir)"
++ @$(MKDIR) -p "$(DESTDIR)$(libdir)"
+ @echo "install C# core files .. "
+ @for f in @ASTFRAME_NET@ ; do \
+ echo "install $${f}" ; \
+ if test -f "$${f}" ; then \
+- $(INSTALL) -m 444 "$${f}" "$(libdir)" ; \
+- $(INSTALL) -m 444 "$${f}" "$(datadir)/$(versioneddir)" ; \
++ $(INSTALL) -m 444 "$${f}" "$(DESTDIR)$(libdir)" ; \
++ $(INSTALL) -m 444 "$${f}" "$(DESTDIR)$(datadir)/$(versioneddir)" ; \
+ fi ;\
+ done
+
+Index: antlr-2.7.5/lib/cpp/antlr/Makefile.in
+===================================================================
+--- antlr-2.7.5.orig/lib/cpp/antlr/Makefile.in 2005-01-28 15:13:23.000000000 -0600
++++ antlr-2.7.5/lib/cpp/antlr/Makefile.in 2005-02-18 12:51:03.000000000 -0600
+@@ -74,11 +74,11 @@
+
+ install:
+ @echo "install hpp files .. "
+- @$(MKDIR) -p "$(includedir)/antlr"
++ @$(MKDIR) -p "$(DESTDIR)$(includedir)/antlr"
+ @for f in $(antlr_hpp_FILES) ; do \
+ echo "install $${f}" ; \
+ if test -f "$${f}" ; then \
+- $(INSTALL) -m 444 "$${f}" "$(includedir)/antlr" ; \
++ $(INSTALL) -m 444 "$${f}" "$(DESTDIR)$(includedir)/antlr" ; \
+ fi ;\
+ done
+
+Index: antlr-2.7.5/lib/cpp/src/Makefile.in
+===================================================================
+--- antlr-2.7.5.orig/lib/cpp/src/Makefile.in 2005-01-28 15:13:23.000000000 -0600
++++ antlr-2.7.5/lib/cpp/src/Makefile.in 2005-02-18 12:51:21.000000000 -0600
+@@ -113,12 +113,12 @@
+ $(eol)
+
+ this-install: @ANTLR_LIB@
+- @$(MKDIR) -p "$(libdir)"
++ @$(MKDIR) -p "$(DESTDIR)$(libdir)"
+ @echo "install C++ core files .. "
+ @for f in $(antlr_lib_FILES) ; do \
+ echo "install $${f}" ; \
+ if test -f "$${f}" ; then \
+- $(INSTALL) -m 444 "$${f}" "$(libdir)" ; \
++ $(INSTALL) -m 444 "$${f}" "$(DESTDIR)$(libdir)" ; \
+ fi ;\
+ done
+
+Index: antlr-2.7.5/antlr/Makefile.in
+===================================================================
+--- antlr-2.7.5.orig/antlr/Makefile.in 2005-01-28 15:13:18.000000000 -0600
++++ antlr-2.7.5/antlr/Makefile.in 2005-02-18 12:50:34.000000000 -0600
+@@ -314,11 +314,11 @@
+
+ ## install antlr.jar in libdirectory if exists
+ install :: @ANTLR_JAR@
+- -$(MKDIR) -p "$(libdir)"
+- -$(MKDIR) -p "$(datadir)/$(versioneddir)"
++ -$(MKDIR) -p "$(DESTDIR)$(libdir)"
++ -$(MKDIR) -p "$(DESTDIR)$(datadir)/$(versioneddir)"
+ -test -f @ANTLR_JAR@ && {\
+- $(INSTALL) -m 444 @ANTLR_JAR@ "$(datadir)/$(versioneddir)" ; \
+- $(INSTALL) -m 444 @ANTLR_JAR@ "$(libdir)" ; \
++ $(INSTALL) -m 444 @ANTLR_JAR@ "$(DESTDIR)$(datadir)/$(versioneddir)" ; \
++ $(INSTALL) -m 444 @ANTLR_JAR@ "$(DESTDIR)$(libdir)" ; \
+ }
+
+ ## get configured dependencies
+Index: antlr-2.7.5/lib/python/Makefile.in
+===================================================================
+--- antlr-2.7.5.orig/lib/python/Makefile.in 2005-01-28 15:13:24.000000000 -0600
++++ antlr-2.7.5/lib/python/Makefile.in 2005-02-18 12:52:50.000000000 -0600
+@@ -41,26 +41,26 @@
+ extradir = $(datadir)/$(versioneddir)
+
+ install-this:
+- $(MKDIR) -p "$(antlr_py_DIR)"
+- $(MKDIR) -p "$(libdir)"
++ $(MKDIR) -p "$(DESTDIR)$(antlr_py_DIR)"
++ $(MKDIR) -p "$(DESTDIR)$(libdir)"
+ @echo "install python files .. "
+ @for f in $(antlr_py_FILES) ; do \
+ echo "install $${f}" ; \
+ if test -f "$${f}" ; then \
+- $(INSTALL) -m 444 "$${f}" "$(libdir)" ; \
++ $(INSTALL) -m 444 "$${f}" "$(DESTDIR)$(libdir)" ; \
+ fi ;\
+ done
+ @for f in $(antlr_py1_FILES) ; do \
+ echo "install $${f}" ; \
+ if test -f "$${f}" ; then \
+- $(INSTALL) -m 444 "$${f}" "$(antlr_py_DIR)" ; \
++ $(INSTALL) -m 444 "$${f}" "$(DESTDIR)$(antlr_py_DIR)" ; \
+ fi ;\
+ done
+ @f="$(objdir)/scripts/pyantlr.sh"; \
+ if test -f "$${f}" ; then \
+ echo "install Python installer" ; \
+- $(MKDIR) -p "$(sbindir)" ; \
+- $(INSTALL) -m 555 "$${f}" "$(sbindir)" ; \
++ $(MKDIR) -p "$(DESTDIR)$(sbindir)" ; \
++ $(INSTALL) -m 555 "$${f}" "$(DESTDIR)$(sbindir)" ; \
+ fi
+
+