diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /dev-java/javacup | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'dev-java/javacup')
-rw-r--r-- | dev-java/javacup/Manifest | 2 | ||||
-rw-r--r-- | dev-java/javacup/files/javacup-0.11b_beta20150326-build-xml-svn.patch | 44 | ||||
-rw-r--r-- | dev-java/javacup/files/javacup-0.11b_beta20150326-build-xml.patch | 26 | ||||
-rw-r--r-- | dev-java/javacup/javacup-0.11a_beta20060608.ebuild | 56 | ||||
-rw-r--r-- | dev-java/javacup/javacup-0.11b_beta20150326.ebuild | 72 | ||||
-rw-r--r-- | dev-java/javacup/metadata.xml | 11 |
6 files changed, 211 insertions, 0 deletions
diff --git a/dev-java/javacup/Manifest b/dev-java/javacup/Manifest new file mode 100644 index 000000000000..5d18634502db --- /dev/null +++ b/dev-java/javacup/Manifest @@ -0,0 +1,2 @@ +DIST java-cup-src-11b-20150326.tar.gz 376913 SHA256 3df107f48b9726d1bf6c4061f6a1304b125aa766da211cd17ff85a2d56339825 SHA512 020beda9f019e03b1d35a20b7c10f4d43d5d39e46f3beb0a993fe6471f4c1369440d76b4f88a6161f8169406760720c7811c07396ca0ad7eab5ee9e4b091b733 WHIRLPOOL 54e2b7d53918c0e053c690c0db14e5ab2ddc2454c64f7a531690b9e4fe37e76aee1e9bb3711cc515423cf2d288ca7054a903d331619b1dd0a28f62121555e004 +DIST javacup-0.11a_beta20060608.tar.bz2 285727 SHA256 cb3ad4951d734bd1e5a6ff835018dea26a47564f820ae0a925f9c30f2fb7e1ff SHA512 383172f7d9cb127ad5d1d6de561eaf53b057bf7511f6f8c353fc03860daabb023e11330e0518b9c390e255a643c9c1e609b5fbdfd3c2e92dd68dc2d2354a931f WHIRLPOOL 6480219de3a997eb9a942ce816f9868dc13d06b8c0553521e9cf37fe568265cf752efcd36d9b64ea424d225d4823fce0652c9b0d7e1c853e38cd9f00fb12ce30 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/files/javacup-0.11b_beta20150326-build-xml.patch b/dev-java/javacup/files/javacup-0.11b_beta20150326-build-xml.patch new file mode 100644 index 000000000000..5aa346303dc0 --- /dev/null +++ b/dev-java/javacup/files/javacup-0.11b_beta20150326-build-xml.patch @@ -0,0 +1,26 @@ +From 1488926a5731b17a577a1fd161eb95b88458a09b Mon Sep 17 00:00:00 2001 +From: Sebastian Pipping <sebastian@pipping.org> +Date: Fri, 7 Aug 2015 21:42:29 +0200 +Subject: [PATCH] Bundled JFlex.jar also contains java_cup/runtime/Scanner, our + replacement does not + +--- + build.xml | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/build.xml b/build.xml +index 33f0c60..89c9793 100644 +--- a/build.xml ++++ b/build.xml +@@ -53,7 +53,7 @@ + </target> + + <taskdef name="cup" classname="java_cup.anttask.CUPTask" classpath="${bin}/java-cup-11.jar" /> +- <taskdef name="jflex" classname="JFlex.anttask.JFlexTask" classpath="${bin}/JFlex.jar" /> ++ <taskdef name="jflex" classname="JFlex.anttask.JFlexTask" classpath="${bin}/JFlex.jar:${bin}/java-cup-11.jar" /> + + <target name="cup" depends="init"> + <cup srcfile="${cup}/parser.cup" interface="on" destdir="${java}" parser="parser" symbols="sym" quiet="false" nonterms="true"/> +-- +2.5.0 + 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..0c8a13fa7066 --- /dev/null +++ b/dev-java/javacup/javacup-0.11a_beta20060608.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +JAVA_PKG_IUSE="source doc" + +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 ~arm ppc ppc64 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" +IUSE="userland_BSD" + +# find for bug #214664 +DEPEND=">=virtual/jdk-1.4 + !userland_BSD? ( >=sys-apps/findutils-4.4 )" +RDEPEND=">=virtual/jre-1.4 + >=dev-java/ant-core-1.7.0" + +src_unpack() { + unpack ${A} + cd "${S}" + find . -name "*.class" -delete || die + java-ant_rewrite-classpath +} + +src_compile() { + 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 +} diff --git a/dev-java/javacup/javacup-0.11b_beta20150326.ebuild b/dev-java/javacup/javacup-0.11b_beta20150326.ebuild new file mode 100644 index 000000000000..46cd7d62372e --- /dev/null +++ b/dev-java/javacup/javacup-0.11b_beta20150326.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +JAVA_PKG_IUSE="source doc" + +inherit eutils 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 + +MY_PV=${PV/_beta/-} +MY_PV=${MY_PV##0.} +SRC_URI="http://www2.cs.tum.edu/projects/cup/releases/java-cup-src-${MY_PV}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~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" +IUSE="userland_BSD system-jflex" + +# find for bug #214664 +DEPEND=">=virtual/jdk-1.5 + system-jflex? ( dev-java/jflex:0 ) + !userland_BSD? ( >=sys-apps/findutils-4.4 ) + >=dev-java/ant-core-1.7.0:0" +RDEPEND=">=virtual/jre-1.5" + +S="${WORKDIR}" + +src_prepare() { + epatch "${FILESDIR}"/${P}-build-xml.patch + epatch "${FILESDIR}"/${P}-build-xml-svn.patch + + find . -name '*.class' -delete || die + + if use system-jflex; then # break the circular dependency + rm bin/JFlex.jar || die + java-pkg_jar-from --build-only jflex JFlex.jar bin/JFlex.jar + fi + + java-ant_rewrite-classpath +} + +src_compile() { + local classpath="$(java-pkg_getjars --build-only ant-core)" + + eant -Dgentoo.classpath="${classpath}" + rm bin/java-cup-11.jar || die + cp dist/java-cup-11b.jar bin/java-cup-11.jar || die + eant clean + + einfo "Recompiling with newly generated javacup" + eant -Dgentoo.classpath="${classpath}" + use doc && javadoc -sourcepath src/ java_cup -d javadoc +} + +src_install() { + java-pkg_newjar dist/java-cup-11b.jar + java-pkg_newjar dist/java-cup-11b-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 +} diff --git a/dev-java/javacup/metadata.xml b/dev-java/javacup/metadata.xml new file mode 100644 index 000000000000..3364029ae5a8 --- /dev/null +++ b/dev-java/javacup/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>java</herd> + <use> + <flag name="system-jflex"> + Build against system <pkg>dev-java/jflex</pkg> rather than the bundled one. + Disabling this flag allows breaking the circular dependency when necessary. + </flag> + </use> +</pkgmetadata> |