summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlistair Bush <ali_bush@gentoo.org>2007-07-01 09:36:45 +0000
committerAlistair Bush <ali_bush@gentoo.org>2007-07-01 09:36:45 +0000
commita7b5de990f54464fcff9d352cd295b87341689e0 (patch)
tree6b4b132f370a1509c67e122ade4f05bfa1d32f72 /dev-java/javacup
parentFix up dbus deps wrt bug 183696 (diff)
downloadgentoo-2-a7b5de990f54464fcff9d352cd295b87341689e0.tar.gz
gentoo-2-a7b5de990f54464fcff9d352cd295b87341689e0.tar.bz2
gentoo-2-a7b5de990f54464fcff9d352cd295b87341689e0.zip
Adding new version of javacup. Thanks to all the great work from elvanor <elvanor2007@gmail.com> with cleanup and fixes from Caster <caster@gentoo.org>
(Portage version: 2.1.3_rc6)
Diffstat (limited to 'dev-java/javacup')
-rw-r--r--dev-java/javacup/files/digest-javacup-0.11a_beta200606083
-rw-r--r--dev-java/javacup/javacup-0.11a_beta20060608.ebuild59
2 files changed, 62 insertions, 0 deletions
diff --git a/dev-java/javacup/files/digest-javacup-0.11a_beta20060608 b/dev-java/javacup/files/digest-javacup-0.11a_beta20060608
new file mode 100644
index 000000000000..d4fb8297b0cd
--- /dev/null
+++ b/dev-java/javacup/files/digest-javacup-0.11a_beta20060608
@@ -0,0 +1,3 @@
+MD5 c44a3359c0ad473bdcb1f350425e6feb javacup-0.11a_beta20060608.tar.bz2 285727
+RMD160 232a13874313242eb8b904267c528ca6111031f8 javacup-0.11a_beta20060608.tar.bz2 285727
+SHA256 cb3ad4951d734bd1e5a6ff835018dea26a47564f820ae0a925f9c30f2fb7e1ff javacup-0.11a_beta20060608.tar.bz2 285727
diff --git a/dev-java/javacup/javacup-0.11a_beta20060608.ebuild b/dev-java/javacup/javacup-0.11a_beta20060608.ebuild
new file mode 100644
index 000000000000..6125c19a46f4
--- /dev/null
+++ b/dev-java/javacup/javacup-0.11a_beta20060608.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/javacup/javacup-0.11a_beta20060608.ebuild,v 1.1 2007/07/01 09:36:45 ali_bush Exp $
+
+JAVA_PKG_IUSE="source doc"
+WANT_SPLIT_ANT="true"
+
+inherit java-pkg-2 java-ant-2
+
+DESCRIPTION="CUP Parser Generator for Java"
+
+HOMEPAGE="http://www2.cs.tum.edu/projects/cup/"
+
+# We cannot put the actual SRC_URI because it causes conflicts with Gentoo mirroring system
+# No better URI is available, waiting until it hits actual Gentoo mirrors
+
+#SRC_URI="https://www2.in.tum.de/WebSVN/dl.php?repname=CUP&path=/develop/&rev=0&isdir=1"
+SRC_URI="mirror://gentoo/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~x86 ~x86-fbsd"
+IUSE=""
+
+DEPEND=">=virtual/jdk-1.4"
+RDEPEND=">=virtual/jre-1.4
+ >=dev-java/ant-core-1.7.0"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ find . -name "*.class" -exec rm -f {} \;
+ java-ant_rewrite-classpath
+}
+
+src_compile() {
+ ANT_TASKS="none"
+ eant -Dgentoo.classpath="$(java-pkg_getjars ant-core)"
+ rm bin/java-cup-11.jar
+ cp dist/java-cup-11a.jar bin/java-cup-11.jar
+ eant clean
+ einfo "Recompiling with newly generated javacup"
+ eant -Dgentoo.classpath="$(java-pkg_getjars ant-core)"
+ use doc && javadoc -sourcepath src/ java_cup -d javadoc
+}
+
+src_install() {
+ java-pkg_newjar dist/java-cup-11a.jar
+ java-pkg_newjar dist/java-cup-11a-runtime.jar ${PN}-runtime.jar
+ java-pkg_register-ant-task
+
+ dodoc changelog.txt || die
+ dohtml manual.html || die
+ use source && java-pkg_dosrc java/*
+ use doc && java-pkg_dojavadoc javadoc
+}
+
+
+