diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-java/javacup |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-java/javacup')
-rw-r--r-- | dev-java/javacup/Manifest | 6 | ||||
-rw-r--r-- | dev-java/javacup/files/javacup-0.11b_beta20150326-build-xml-svn.patch | 44 | ||||
-rw-r--r-- | dev-java/javacup/javacup-0.11b_p20151001.ebuild | 89 | ||||
-rw-r--r-- | dev-java/javacup/metadata.xml | 8 |
4 files changed, 147 insertions, 0 deletions
diff --git a/dev-java/javacup/Manifest b/dev-java/javacup/Manifest new file mode 100644 index 000000000000..4970780c07a4 --- /dev/null +++ b/dev-java/javacup/Manifest @@ -0,0 +1,6 @@ +AUX javacup-0.11b_beta20150326-build-xml-svn.patch 1385 SHA256 5f8b468bacc48ee0ba9cbdc07c4d4066286647d8efa2f38ce9c27fc55193547a SHA512 211157370c61995a05ce45e70941d99da9031174fae2b6e4bbacfdd0c402c451009eb5952a8c3cf8a586402aa138e70733dfd46ce9cf6b5fb680edf65657506c WHIRLPOOL 5c736d4114f5557bdf179dd9bacff1eeaaba345dafc354592fc895e61737e9dd023878eb0ebc579098584d912b60df61f49a8018bc874ea62390425b03a15355 +DIST java-cup-src-11b-20151001.tar.gz 313405 SHA256 959189360a8530c9e06cbf8cb99795bb4fcc25a00d774e961c98611c769b8f33 SHA512 70bb6a0e13fe52694980040205fcf5b3e904c4a07e50c7740c55cc3bb481496c5c071377757b94f59807b936b8c4fdde5423d78cc2d12a7ada1870f71cd9f47e WHIRLPOOL cba8a784f156b21ae2a40afe02112b5bded04176bd54b3190f1d210e5603334553f170b02f91f970ade3f68d8d00715f1237dd43476712f4e24c5d0857bf6304 +EBUILD javacup-0.11b_p20151001.ebuild 2835 SHA256 a5ea3d2b187bb0ea525aa8128230138ab54eefcf9da64db2c4ceee3d293634de SHA512 b039022e35780eb43e8c2e6be562a613048c566ae69d1fd5691ae80655396619f5253be7f0e7d5e5c65d6cc9548f58d2c3688ff8aa63605a8deb1f4a556318a7 WHIRLPOOL d60a2c41a70a163d78b19c64d0ba230789b96f487bb528cfd33993367b76b33a14806bfde162c2d99113295ba7bfc3987e56c7b5007ba89fbb984cdbcceaf3af +MISC ChangeLog 5016 SHA256 cf8eef6d29dc8abf2c7bad07c9923596a3a91b1d92fbaa103ed59778c12a99e4 SHA512 754bfc4a3729a3f39fbf96d0f7009421f055b07816066755ed41dd72074892998926d9539004a1836b22f7394662febf19c510b4678177c2e4de35a05198fa43 WHIRLPOOL d7ccfa9530caa7d1825828c1f25611dbd2829fe2b64673851b51d902c072b270a86ea511f4534a4fde26190ed2c9997d5048a633af121ea831a4efb0683970bb +MISC ChangeLog-2015 5236 SHA256 9ba25801546b357dcac6ca1081939a2cef15db3105c529ae9aaf377aa3cac948 SHA512 a2421bf85cb31611dba1286ec0696fdf9061f167810eea07b77caad5de93cbb68cfefbc70d2a6bf7238f3cf7dde4183f346ec3671a201abdae85e3ce63c6759b WHIRLPOOL 4386dcc98e32bd50c1174912fda018f936394e9dabfc3f65afc92aa7f18048e3a5ef9e024885a6ea3481264a0c6c6076d2dd436f609fc0b3cf5a67d36610d6c2 +MISC metadata.xml 236 SHA256 3e778d35b34b5cc1a4dd7ce105fe7d2a99b25fb6dfe24709455da94baa8a0548 SHA512 1755c2590e59060f697294c5ad125b83f2d50e05a71f7091b7de75953941914cd2db3a893bd6154a2c90fa4aff5e313e75e3e174dbba1edd5c112787da5be253 WHIRLPOOL 7967660784d0d28e9a3c3c222c5bf85b3a8b59fd84b61780e4e7cc1aa5d8bd87bee40e4c5c42e646f15d6641fe182340bcbe8be94c785f40e0ac870c7a96e5cc diff --git a/dev-java/javacup/files/javacup-0.11b_beta20150326-build-xml-svn.patch b/dev-java/javacup/files/javacup-0.11b_beta20150326-build-xml-svn.patch new file mode 100644 index 000000000000..d5a14af3587b --- /dev/null +++ b/dev-java/javacup/files/javacup-0.11b_beta20150326-build-xml-svn.patch @@ -0,0 +1,44 @@ +From 1a908a86fa6c253332b673ecc98e4ec8dffcdca2 Mon Sep 17 00:00:00 2001 +From: Sebastian Pipping <sebastian@pipping.org> +Date: Sat, 8 Aug 2015 14:49:02 +0200 +Subject: [PATCH] No longer query subversion revision + +There is not .svn folder shipped anyway +--- + build.xml | 13 +------------ + 1 file changed, 1 insertion(+), 12 deletions(-) + +diff --git a/build.xml b/build.xml +index 33f0c60..860bbb5 100644 +--- a/build.xml ++++ b/build.xml +@@ -18,17 +18,6 @@ + <mkdir dir="${classes}" /> + <mkdir dir="${dist}" /> + <loadfile property="cupversion" srcFile="version.txt"/> +- <exec executable="svn" outputproperty="svnversion"> +- <arg value="info"/> +- <redirector> +- <outputfilterchain> +- <linecontains> +- <contains value="Revision"/> +- </linecontains> +- <deletecharacters chars="Revision: "/> +- </outputfilterchain> +- </redirector> +- </exec> + </target> + + <property environment="env" /> +@@ -67,7 +56,7 @@ + <copy todir="${java}"><fileset dir="${src}"></fileset></copy> + <replace file="${java}/java_cup/version.java" + token="+ version_str" +- value='+ "v0.11b ${cupversion} (SVN rev ${svnversion})"'> ++ value='+ "v0.11b ${cupversion}"'> + </replace> + <javac srcdir="${java}" destdir="${classes}" verbose="off" listfiles="off" debug="on" source="1.5" target="1.5"> + <classpath refid="libraries"/> +-- +2.5.0 + 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..f5904bf6a0f3 --- /dev/null +++ b/dev-java/javacup/javacup-0.11b_p20151001.ebuild @@ -0,0 +1,89 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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 ~arm64 ppc64 x86 ~amd64-fbsd ~x86-fbsd ~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() { + # Annoyingly javacup bundles an older version of itself that will + # break jflex if that has already been built against this newer + # version beforehand. Even more annoyingly, the binary download is + # built with Java 8, which isn't much use to us. We therefore use + # any installed javacup that is newer than the bundled version where + # possible. If this approach turns out to be unworkable then we may + # just have to use the bundled jflex for bootstrapping. + if has_version \>=${CATEGORY}/${PN}-0.11b:${SLOT}; then + # Use PORTAGE_QUIET to suppress a QA warning that is spurious + # thanks to has_version above. This is Portage-specific but + # showing the warning elsewhere isn't the end of the world. + einfo "Bootstrapping with installed javacup ..." + EANT_GENTOO_CLASSPATH_EXTRA+=":$(PORTAGE_QUIET=1 java-pkg_getjars --build-only javacup)" eant + else + einfo "Bootstrapping with bundled javacup ..." + EANT_GENTOO_CLASSPATH_EXTRA+=":${S}/bin/${MY_P:0:-1}.jar" eant + fi + + # 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 +} diff --git a/dev-java/javacup/metadata.xml b/dev-java/javacup/metadata.xml new file mode 100644 index 000000000000..952a4b9b605c --- /dev/null +++ b/dev-java/javacup/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>java@gentoo.org</email> + <name>Java</name> + </maintainer> +</pkgmetadata> |