summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@gentoo.org>2015-11-02 23:35:10 +0000
committerJames Le Cuirot <chewi@gentoo.org>2015-11-02 23:40:59 +0000
commit09eb9ee16433338f91f98f0fa00b70df7912bbef (patch)
treef101edc035e68232c61d1cbc887d4a4d8d378727 /dev-java/javacup
parentdev-java/jflex: Rewrite for version bump to 1.6.1 (diff)
downloadgentoo-09eb9ee16433338f91f98f0fa00b70df7912bbef.tar.gz
gentoo-09eb9ee16433338f91f98f0fa00b70df7912bbef.tar.bz2
gentoo-09eb9ee16433338f91f98f0fa00b70df7912bbef.zip
dev-java/javacup: Rewrite for version bump to 0.11b_p20151001
Dropped the beta label as the previous version was not really a beta. No longer has a system-jflex USE flag now that jflex has javacup as a PDEPEND. This is better as users were unlikely to ever set this flag and a system version of javacup will be used automatically when it becomes available. ~arm keyword restored and ~ppc64 keyword temporarily dropped as Java 7 is required now. Package-Manager: portage-2.2.20.1
Diffstat (limited to 'dev-java/javacup')
-rw-r--r--dev-java/javacup/Manifest1
-rw-r--r--dev-java/javacup/javacup-0.11b_p20151001.ebuild75
2 files changed, 76 insertions, 0 deletions
diff --git a/dev-java/javacup/Manifest b/dev-java/javacup/Manifest
index 5d18634502db..314e6743e9f4 100644
--- a/dev-java/javacup/Manifest
+++ b/dev-java/javacup/Manifest
@@ -1,2 +1,3 @@
DIST java-cup-src-11b-20150326.tar.gz 376913 SHA256 3df107f48b9726d1bf6c4061f6a1304b125aa766da211cd17ff85a2d56339825 SHA512 020beda9f019e03b1d35a20b7c10f4d43d5d39e46f3beb0a993fe6471f4c1369440d76b4f88a6161f8169406760720c7811c07396ca0ad7eab5ee9e4b091b733 WHIRLPOOL 54e2b7d53918c0e053c690c0db14e5ab2ddc2454c64f7a531690b9e4fe37e76aee1e9bb3711cc515423cf2d288ca7054a903d331619b1dd0a28f62121555e004
+DIST java-cup-src-11b-20151001.tar.gz 313405 SHA256 959189360a8530c9e06cbf8cb99795bb4fcc25a00d774e961c98611c769b8f33 SHA512 70bb6a0e13fe52694980040205fcf5b3e904c4a07e50c7740c55cc3bb481496c5c071377757b94f59807b936b8c4fdde5423d78cc2d12a7ada1870f71cd9f47e WHIRLPOOL cba8a784f156b21ae2a40afe02112b5bded04176bd54b3190f1d210e5603334553f170b02f91f970ade3f68d8d00715f1237dd43476712f4e24c5d0857bf6304
DIST javacup-0.11a_beta20060608.tar.bz2 285727 SHA256 cb3ad4951d734bd1e5a6ff835018dea26a47564f820ae0a925f9c30f2fb7e1ff SHA512 383172f7d9cb127ad5d1d6de561eaf53b057bf7511f6f8c353fc03860daabb023e11330e0518b9c390e255a643c9c1e609b5fbdfd3c2e92dd68dc2d2354a931f WHIRLPOOL 6480219de3a997eb9a942ce816f9868dc13d06b8c0553521e9cf37fe568265cf752efcd36d9b64ea424d225d4823fce0652c9b0d7e1c853e38cd9f00fb12ce30
diff --git a/dev-java/javacup/javacup-0.11b_p20151001.ebuild b/dev-java/javacup/javacup-0.11b_p20151001.ebuild
new file mode 100644
index 000000000000..ad8742f2b4c4
--- /dev/null
+++ b/dev-java/javacup/javacup-0.11b_p20151001.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+JAVA_PKG_IUSE="doc source"
+
+inherit eutils java-pkg-2 java-ant-2
+
+MY_PV=${PV/_beta/-}
+MY_PV=${MY_PV/_p/-}
+MY_PV=${MY_PV#0.}
+MY_P=java-cup-${MY_PV%-*}
+
+DESCRIPTION="CUP Parser Generator for Java"
+HOMEPAGE="http://www2.cs.tum.edu/projects/cup/"
+SRC_URI="http://www2.cs.tum.edu/projects/cup/releases/java-cup-src-${MY_PV}.tar.gz"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~ppc ~x86 ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+
+DEPEND=">=virtual/jdk-1.7
+ >=dev-java/ant-core-1.7.0:0
+ >=dev-java/jflex-1.6.1:0"
+
+RDEPEND=">=virtual/jre-1.7"
+
+JAVA_ANT_REWRITE_CLASSPATH="yes"
+JAVA_ANT_CLASSPATH_TAGS+=" taskdef"
+
+S="${WORKDIR}"
+
+java_prepare() {
+ # Bizarrely, you can't build from the tarball without this patch.
+ epatch "${FILESDIR}"/${PN}-0.11b_beta20150326-build-xml-svn.patch
+
+ # The JFlex package name has changed to lower case.
+ sed -i "s/JFlex\./jflex./g" build.xml || die
+
+ # Remove the bundled JFlex.
+ rm -v bin/JFlex.jar || die
+}
+
+src_configure() {
+ EANT_GENTOO_CLASSPATH_EXTRA=$(java-pkg_getjars --build-only ant-core,jflex)
+ java-ant-2_src_configure
+}
+
+src_compile() {
+ einfo "Bootstrapping with bundled javacup ..."
+ EANT_GENTOO_CLASSPATH_EXTRA+=":${S}/bin/${MY_P:0:-1}.jar" eant
+
+ # Clean everything except the new jar.
+ rm -rv java/ classes/ || die
+
+ einfo "Recompiling with newly built javacup ..."
+ EANT_GENTOO_CLASSPATH_EXTRA+=":${S}/dist/${MY_P}.jar" eant
+
+ use doc && ejavadoc -sourcepath src/ -d javadoc java_cup
+}
+
+src_install() {
+ java-pkg_newjar dist/${MY_P}.jar
+ java-pkg_newjar dist/${MY_P}-runtime.jar ${PN}-runtime.jar
+ java-pkg_dolauncher ${PN} --jar ${PN}.jar
+ java-pkg_register-ant-task
+
+ dodoc changelog.txt
+ docinto html
+ dodoc manual.html
+
+ use source && java-pkg_dosrc java/*
+ use doc && java-pkg_dojavadoc javadoc
+}