summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Nichols <nichoj@gentoo.org>2006-07-23 16:08:43 +0000
committerJoshua Nichols <nichoj@gentoo.org>2006-07-23 16:08:43 +0000
commitadf791630fe72fe20f1cbdc69a02ad2484c1fcb2 (patch)
tree7caabcd3592aa3937c03a5eb82001b5eec40680d /dev-java
parentClean up unnecessary versions (diff)
downloadgentoo-2-adf791630fe72fe20f1cbdc69a02ad2484c1fcb2.tar.gz
gentoo-2-adf791630fe72fe20f1cbdc69a02ad2484c1fcb2.tar.bz2
gentoo-2-adf791630fe72fe20f1cbdc69a02ad2484c1fcb2.zip
Revision bump to use new Java system.
(Portage version: 2.1.1_pre2-r4)
Diffstat (limited to 'dev-java')
-rw-r--r--dev-java/antlr/ChangeLog7
-rw-r--r--dev-java/antlr/antlr-2.7.5-r3.ebuild109
-rw-r--r--dev-java/antlr/files/digest-antlr-2.7.5-r33
3 files changed, 118 insertions, 1 deletions
diff --git a/dev-java/antlr/ChangeLog b/dev-java/antlr/ChangeLog
index f972f335a67d..41289e79a988 100644
--- a/dev-java/antlr/ChangeLog
+++ b/dev-java/antlr/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-java/antlr
# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/antlr/ChangeLog,v 1.40 2006/05/24 21:05:51 hansmi Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-java/antlr/ChangeLog,v 1.41 2006/07/23 16:08:43 nichoj Exp $
+
+*antlr-2.7.5-r3 (21 Jul 2006)
+
+ 21 Jul 2006; Joshua Nichols <jnichols@gentoo.org> +antlr-2.7.5-r3.ebuild:
+ Revision bump to use new Java system.
24 May 2006; Michael Hanselmann <hansmi@gentoo.org> antlr-2.7.5-r2.ebuild:
Stable on ppc.
diff --git a/dev-java/antlr/antlr-2.7.5-r3.ebuild b/dev-java/antlr/antlr-2.7.5-r3.ebuild
new file mode 100644
index 000000000000..338714f1a105
--- /dev/null
+++ b/dev-java/antlr/antlr-2.7.5-r3.ebuild
@@ -0,0 +1,109 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/antlr/antlr-2.7.5-r3.ebuild,v 1.1 2006/07/23 16:08:43 nichoj Exp $
+
+inherit gnuconfig java-pkg-2 mono distutils multilib
+
+DESCRIPTION="A parser generator for C++, C#, Java, and Python"
+HOMEPAGE="http://www.antlr.org/"
+SRC_URI="http://www.antlr.org/download/${P}.tar.gz"
+
+LICENSE="ANTLR"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc64 ~x86"
+IUSE="doc debug examples mono nocxx nojava python script source"
+
+RDEPEND=">=virtual/jdk-1.2
+ dev-java/java-config
+ mono? ( dev-lang/mono dev-util/pkgconfig )
+ python? ( dev-lang/python )"
+DEPEND="${RDEPEND}
+ script? ( !dev-util/pccts )
+ >=sys-apps/sed-4
+ sys-apps/findutils
+ source? ( app-arch/zip )"
+
+src_compile() {
+ gnuconfig_update
+
+ export JAVAC=javac
+
+ export JAVACFLAGS="+ ${JAVACFLAGS}"
+
+ econf $(use_enable !nojava java) \
+ $(use_enable python) \
+ $(use_enable mono csharp) \
+ $(use_enable debug) \
+ $(use_enable examples) \
+ $(use_enable !nocxx cxx) \
+ --enable-verbose || die "configure failed"
+
+ emake || die "compile failed"
+
+ sed -e "s|@prefix@|/usr/|" \
+ -e 's|@exec_prefix@|${prefix}|' \
+ -e "s|@libdir@|\$\{exec_prefix\}/$(get_libdir)/antlr|" \
+ -e 's|@libs@|-r:\$\{libdir\}/antlr.astframe.dll -r:\$\{libdir\}/antlr.runtime.dll|' \
+ -e "s|@VERSION@|${PV}|" \
+ ${FILESDIR}/antlr.pc.in > ${S}/antlr.pc
+
+ if ! use nojava && use script ; then
+ cat > antlr.sh <<-EOF
+ #!/bin/sh
+ ANTLR_JAR=\$(java-config -p antlr)
+ \$(java-config -J) -cp \$ANTLR_JAR antlr.Tool \$*
+ EOF
+ fi
+}
+
+src_install() {
+ exeinto /usr/bin
+ doexe ${S}/scripts/antlr-config
+
+ if ! use nocxx ; then
+ cd ${S}/lib/cpp
+ einstall || die "failed to install C++ files"
+ fi
+
+ if ! use nojava ; then
+ exeinto /usr/bin
+ use script && newexe ${S}/antlr.sh antlr
+
+ java-pkg_dojar ${S}/antlr/antlr.jar
+
+ use source && java-pkg_dosrc ${S}/antlr
+ use doc && java-pkg_dohtml -r doc/*
+ fi
+
+ if use mono ; then
+ cd ${S}/lib
+
+ dodir /usr/$(get_libdir)/antlr/
+ insinto /usr/$(get_libdir)/antlr/
+
+ doins antlr.astframe.dll
+ doins antlr.runtime.dll
+
+ insinto /usr/$(get_libdir)/pkgconfig
+ doins ${S}/antlr.pc
+ fi
+
+ if use python ; then
+ cd ${S}/lib/python
+ distutils_src_install
+ fi
+
+ if use examples ; then
+ find ${S}/examples -iname Makefile\* -exec rm \{\} \;
+
+ dodir /usr/share/doc/${PF}/examples
+ insinto /usr/share/doc/${PF}/examples
+
+ ! use cxx && doins -r ${S}/examples/cpp
+ use java && doins -r ${S}/examples/java
+ use mono && doins -r ${S}/examples/csharp
+ use python && doins -r ${S}/examples/python
+ fi
+
+ newdoc ${S}/README.txt README
+}
diff --git a/dev-java/antlr/files/digest-antlr-2.7.5-r3 b/dev-java/antlr/files/digest-antlr-2.7.5-r3
new file mode 100644
index 000000000000..2199ab9cb02a
--- /dev/null
+++ b/dev-java/antlr/files/digest-antlr-2.7.5-r3
@@ -0,0 +1,3 @@
+MD5 1ef201f29283179c8e5ab618529cac78 antlr-2.7.5.tar.gz 1636304
+RMD160 3fc0e8d32c6e281cce5e39153ddfbbe9cc0aff02 antlr-2.7.5.tar.gz 1636304
+SHA256 744d8f3a8206fbc45a5558d92163d5ef7e5e0cc0700283bb6a617fb1201629f9 antlr-2.7.5.tar.gz 1636304