summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Nichols <nichoj@gentoo.org>2006-07-20 23:45:26 +0000
committerJoshua Nichols <nichoj@gentoo.org>2006-07-20 23:45:26 +0000
commit6182973e1a25a0582bf677c395179dd4c1eaabf0 (patch)
tree9ffcf7fe20682cd78d8b48e172329d861f1928e6 /dev-java/javacup/javacup-0.10k-r1.ebuild
parentRevision bump to use new Java system. (diff)
downloadgentoo-2-6182973e1a25a0582bf677c395179dd4c1eaabf0.tar.gz
gentoo-2-6182973e1a25a0582bf677c395179dd4c1eaabf0.tar.bz2
gentoo-2-6182973e1a25a0582bf677c395179dd4c1eaabf0.zip
Revision bump to use new Java system.
(Portage version: 2.1.1_pre2-r4)
Diffstat (limited to 'dev-java/javacup/javacup-0.10k-r1.ebuild')
-rw-r--r--dev-java/javacup/javacup-0.10k-r1.ebuild37
1 files changed, 37 insertions, 0 deletions
diff --git a/dev-java/javacup/javacup-0.10k-r1.ebuild b/dev-java/javacup/javacup-0.10k-r1.ebuild
new file mode 100644
index 000000000000..97ca8e413e2b
--- /dev/null
+++ b/dev-java/javacup/javacup-0.10k-r1.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/javacup/javacup-0.10k-r1.ebuild,v 1.1 2006/07/20 23:45:26 nichoj Exp $
+
+inherit java-pkg-2
+
+DESCRIPTION="CUP Parser Generator for Java"
+
+HOMEPAGE="http://www.cs.princeton.edu/~appel/modern/java/CUP/"
+SRC_URI="http://www.cs.princeton.edu/~appel/modern/java/CUP/java_cup_v10k.tar.gz"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="source"
+DEPEND=">=virtual/jdk-1.3
+ source? ( app-arch/zip )"
+RDEPEND=">=virtual/jre-1.3"
+
+S=${WORKDIR}
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ find . -name "*.class" -exec rm -f {} \;
+}
+
+src_compile() {
+ ejavac java_cup/*.java java_cup/runtime/*.java
+ find java_cup -name "*.class" | xargs jar -cvf ${PN}.jar
+}
+
+src_install() {
+ java-pkg_dojar ${PN}.jar
+ dodoc CHANGELOG README
+ dohtml manual.html
+ use source && java-pkg_dosrc java_cup
+}