From 76235a1d7120c4570fa270a85173fb6ddaa8b38e Mon Sep 17 00:00:00 2001 From: Patrice Clement Date: Thu, 1 Oct 2015 08:30:39 +0000 Subject: [PATCH] dev-java/jflex: Clean up old. Package-Manager: portage-2.2.18 Signed-off-by: Patrice Clement --- dev-java/jflex/Manifest | 3 - .../jflex/files/jflex-1.4.1-build.xml.patch | 30 ---- dev-java/jflex/files/jflex-1.5.0-build.xml | 149 ------------------ dev-java/jflex/jflex-1.4.3-r1.ebuild | 72 --------- dev-java/jflex/jflex-1.4.3-r2.ebuild | 72 --------- dev-java/jflex/jflex-1.4.3-r3.ebuild | 82 ---------- dev-java/jflex/jflex-1.5.0.ebuild | 78 --------- dev-java/jflex/jflex-1.5.1.ebuild | 88 ----------- dev-java/jflex/jflex-1.6.0-r1.ebuild | 90 ----------- dev-java/jflex/jflex-1.6.0.ebuild | 90 ----------- 10 files changed, 754 deletions(-) delete mode 100644 dev-java/jflex/files/jflex-1.4.1-build.xml.patch delete mode 100644 dev-java/jflex/files/jflex-1.5.0-build.xml delete mode 100644 dev-java/jflex/jflex-1.4.3-r1.ebuild delete mode 100644 dev-java/jflex/jflex-1.4.3-r2.ebuild delete mode 100644 dev-java/jflex/jflex-1.4.3-r3.ebuild delete mode 100644 dev-java/jflex/jflex-1.5.0.ebuild delete mode 100644 dev-java/jflex/jflex-1.5.1.ebuild delete mode 100644 dev-java/jflex/jflex-1.6.0-r1.ebuild delete mode 100644 dev-java/jflex/jflex-1.6.0.ebuild diff --git a/dev-java/jflex/Manifest b/dev-java/jflex/Manifest index 439770adbc5c..5a41a586d2dd 100644 --- a/dev-java/jflex/Manifest +++ b/dev-java/jflex/Manifest @@ -1,4 +1 @@ -DIST jflex-1.4.3.tar.gz 1214420 SHA256 6ccdcf15fe9f1d863d538e8b1cfd428b8628a645d247adc40071d1ae70ede2f2 SHA512 901106ea5a9108ba6016da55093801fbaee50f8f8fb45f290cae3bb989663838e83a4d8484bc633b9acf2c085c83304a47d9348255d106117dace3d5f44ea835 WHIRLPOOL 709c130037be6491ea1a9d6301dcc4acc643c9d1127d11a0dccb9d7339fda7fe06ba159100c3f4ad34d7b34c6b5336f2328f6bdf7ee8cdf87e752e371120ff8d -DIST jflex-1.5.0.tar.gz 2827866 SHA256 76b11d00fe94f79331a74045c7aaea292a80cb311a6840d0dd53209e81d4cb64 SHA512 5d46d3339a8e435228e8dab55ac52bbb40b4b39ea9c28963c5d02298f0ed8a7e8a66573003f165badb4c3939d6bd88852343d886d3b6c2bd78d17320201c3137 WHIRLPOOL 22d44cc90bf09666f0139c83cde2f9330ed12e2dd3313573d948527d2a0d420b71512a764c5579a94d4d30f4a573180bec2c08c37c3e3c81f079a018bee1a3b1 -DIST jflex-1.5.1.tar.gz 2764584 SHA256 3b24ed6ace401e70d71f82a65179a4eb958756f43ed4c647ce75f340f644becd SHA512 e0bb95fd70add73b662c34ff5821f9822bf1e982bd669bc4497bf210555ccd455b1d216391864e9983a4f90d430e0f8b57667c0f0623a8dfb0ff1ef97b2f5572 WHIRLPOOL 123668156410891a9a4c755cd7fbb4464c88b57c00d01ed4d4679c6b5b66e3d355b7006356937c54cc7a14a4b9bd7619912bd0186fc5b8a19294406fa432008b DIST jflex-1.6.0.tar.gz 3035885 SHA256 0774da0ee2d01fc9274179de4243e0d229c01b5cf0fbb78952fb7fdc4672190c SHA512 16ce4a89f75ce5f3da02433ff66d39ed4db567b4cf7469997dd2617b82e52d589bb17ec3a2f36b4d00a62233e48820bc2e043dcc9ae3c01f1eeca323c0166eba WHIRLPOOL 4d9e7e8c3a0da66d860b895699d5b50e29f781f1cf18cab436f545b1fb007297ca9433694ce3808452c5d9340eddc978c2b32019b5a8d5d8c6cb0558543ea18e diff --git a/dev-java/jflex/files/jflex-1.4.1-build.xml.patch b/dev-java/jflex/files/jflex-1.4.1-build.xml.patch deleted file mode 100644 index 8353cbe52a76..000000000000 --- a/dev-java/jflex/files/jflex-1.4.1-build.xml.patch +++ /dev/null @@ -1,30 +0,0 @@ ---- build.xml 2009-01-31 16:14:57.000000000 +0200 -+++ build.xml.fixed 2009-01-31 16:17:14.000000000 +0200 -@@ -35,7 +35,7 @@ - - - -- -+ - - - -@@ -69,7 +69,7 @@ - - - -- -+ - - - -@@ -79,7 +79,8 @@ - - - - diff --git a/dev-java/jflex/files/jflex-1.5.0-build.xml b/dev-java/jflex/files/jflex-1.5.0-build.xml deleted file mode 100644 index 9ac1be49a7d6..000000000000 --- a/dev-java/jflex/files/jflex-1.5.0-build.xml +++ /dev/null @@ -1,149 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/dev-java/jflex/jflex-1.4.3-r1.ebuild b/dev-java/jflex/jflex-1.4.3-r1.ebuild deleted file mode 100644 index ef42be61a7b6..000000000000 --- a/dev-java/jflex/jflex-1.4.3-r1.ebuild +++ /dev/null @@ -1,72 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -# Currently, this package uses an included JFlex.jar file to bootstrap. -# Upstream was contacted and this bootstrap is really needed. The only way to avoid it would be to use a supplied pre-compiled .scanner file. - -EAPI="5" - -JAVA_PKG_IUSE="source" - -inherit java-pkg-2 java-ant-2 - -DESCRIPTION="JFlex is a lexical analyzer generator for Java" -SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" -HOMEPAGE="http://www.jflex.de/" -LICENSE="GPL-2" -SLOT="1.4" -KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-fbsd ~ppc-macos ~x64-macos ~x86-macos" -RDEPEND=">=virtual/jre-1.4 - vim-syntax? ( || ( app-editors/vim app-editors/gvim ) ) - >=dev-java/ant-core-1.7.0 - >=dev-java/javacup-0.11a_beta20060608:0" - -DEPEND=">=virtual/jdk-1.4 - dev-java/junit:0 - >=dev-java/javacup-0.11a_beta20060608:0" - -IUSE="doc source vim-syntax" - -src_unpack() { - unpack "${P}.tar.gz" - cd "${S}/src" - - mkdir "${S}/tools" - cp "${S}/lib/JFlex.jar" "${S}/tools/JFlex.jar" - rm -rf java_cup "${S}/lib/JFlex.jar" - - java-ant_rewrite-classpath -} - -src_compile() { - ANT_TASKS="javacup" - jflex_cp="$(java-pkg_getjars --build-only junit):$(java-pkg_getjars ant-core,javacup)" - cd "${S}/src" - eant realclean - eant -Dgentoo.classpath="${jflex_cp}" jar - - rm "${S}/tools/JFlex.jar" - cp "${S}/lib/JFlex.jar" "${S}/tools/" - rm "${S}/lib/JFlex.jar" - - eant realclean - einfo "Recompiling using the newly generated JFlex library" - eant -Dgentoo.classpath="${jflex_cp}" jar -} - -src_install() { - java-pkg_dojar lib/JFlex.jar - java-pkg_dolauncher "${PF}" --main JFlex.Main - java-pkg_register-ant-task - - dodoc doc/manual.pdf doc/manual.ps.gz src/changelog - dohtml -r doc/* - - use source && java-pkg_dosrc src/JFlex - - if use vim-syntax; then - insinto /usr/share/vim/vimfiles/syntax - doins "${S}/lib/jflex.vim" - fi -} diff --git a/dev-java/jflex/jflex-1.4.3-r2.ebuild b/dev-java/jflex/jflex-1.4.3-r2.ebuild deleted file mode 100644 index 027d1625482e..000000000000 --- a/dev-java/jflex/jflex-1.4.3-r2.ebuild +++ /dev/null @@ -1,72 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -# Currently, this package uses an included JFlex.jar file to bootstrap. -# Upstream was contacted and this bootstrap is really needed. The only way to avoid it would be to use a supplied pre-compiled .scanner file. - -EAPI="3" - -JAVA_PKG_IUSE="source" - -inherit java-pkg-2 java-ant-2 - -DESCRIPTION="JFlex is a lexical analyzer generator for Java" -SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" -HOMEPAGE="http://www.jflex.de/" -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="amd64 ppc ppc64 x86 ~amd64-fbsd ~ppc-macos ~x64-macos ~x86-macos" -RDEPEND=">=virtual/jre-1.4 - vim-syntax? ( || ( app-editors/vim app-editors/gvim ) ) - >=dev-java/ant-core-1.7.0 - >=dev-java/javacup-0.11a_beta20060608:0" - -DEPEND=">=virtual/jdk-1.4 - dev-java/junit:0 - >=dev-java/javacup-0.11a_beta20060608:0" - -IUSE="doc source vim-syntax" - -src_unpack() { - unpack "${P}.tar.gz" - cd "${S}/src" - - mkdir "${S}/tools" - cp "${S}/lib/JFlex.jar" "${S}/tools/JFlex.jar" - rm -rf java_cup "${S}/lib/JFlex.jar" - - java-ant_rewrite-classpath -} - -src_compile() { - ANT_TASKS="javacup" - jflex_cp="$(java-pkg_getjars --build-only junit):$(java-pkg_getjars ant-core,javacup)" - cd "${S}/src" - eant realclean - eant -Dgentoo.classpath="${jflex_cp}" jar - - rm "${S}/tools/JFlex.jar" - cp "${S}/lib/JFlex.jar" "${S}/tools/" - rm "${S}/lib/JFlex.jar" - - eant realclean - einfo "Recompiling using the newly generated JFlex library" - eant -Dgentoo.classpath="${jflex_cp}" jar -} - -src_install() { - java-pkg_dojar lib/JFlex.jar - java-pkg_dolauncher "${PN}" --main JFlex.Main - java-pkg_register-ant-task - - dodoc doc/manual.pdf doc/manual.ps.gz src/changelog - dohtml -r doc/* - - use source && java-pkg_dosrc src/JFlex - - if use vim-syntax; then - insinto /usr/share/vim/vimfiles/syntax - doins "${S}/lib/jflex.vim" - fi -} diff --git a/dev-java/jflex/jflex-1.4.3-r3.ebuild b/dev-java/jflex/jflex-1.4.3-r3.ebuild deleted file mode 100644 index d6d3b2733d0e..000000000000 --- a/dev-java/jflex/jflex-1.4.3-r3.ebuild +++ /dev/null @@ -1,82 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -# Currently, this package uses an included JFlex.jar file to bootstrap. -# Upstream was contacted and this bootstrap is really needed. The only way to avoid it would be to use a supplied pre-compiled .scanner file. - -EAPI="5" - -JAVA_PKG_IUSE="source" - -inherit java-pkg-2 java-ant-2 - -DESCRIPTION="JFlex is a lexical analyzer generator for Java" -SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" -HOMEPAGE="http://www.jflex.de/" -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-fbsd ~ppc-macos ~x64-macos ~x86-macos" - -CDEPEND="dev-java/junit:0 - dev-java/javacup:0 - dev-java/ant-core:0" - -#RDEPEND=">=virtual/jre-1.6 -RDEPEND=">=virtual/jre-1.6 - vim-syntax? ( - || ( - app-editors/vim app-editors/gvim - ) - ) - ${CDEPEND}" - -#DEPEND=">=virtual/jdk-1.6 -DEPEND=">=virtual/jdk-1.6 - ${CDEPEND}" - -IUSE="doc source vim-syntax" - -src_unpack() { - unpack "${P}.tar.gz" - cd "${S}/src" || die - - mkdir "${S}/tools" || die - - cp "${S}/lib/JFlex.jar" "${S}/tools/JFlex.jar" || die - rm -rf java_cup "${S}/lib/JFlex.jar" || die - - java-ant_rewrite-classpath -} - -src_compile() { - ANT_TASKS="javacup" - local jflex_cp="$(java-pkg_getjars --build-only junit):$(java-pkg_getjars ant-core,javacup)" - cd "${S}/src" || die - eant realclean || die - eant -Dgentoo.classpath="${jflex_cp}" jar || die - - rm "${S}/tools/JFlex.jar" || die - cp "${S}/lib/JFlex.jar" "${S}/tools/" || die - rm "${S}/lib/JFlex.jar" || die - - eant realclean || die - einfo "Recompiling using the newly generated JFlex library" || die - eant -Dgentoo.classpath="${jflex_cp}" jar || die -} - -src_install() { - java-pkg_dojar lib/JFlex.jar - java-pkg_dolauncher "${PN}" --main JFlex.Main - java-pkg_register-ant-task - - dodoc doc/manual.pdf doc/manual.ps.gz src/changelog - dohtml -r doc/* - - use source && java-pkg_dosrc src/JFlex - - if use vim-syntax; then - insinto /usr/share/vim/vimfiles/syntax - doins "${S}/lib/jflex.vim" - fi -} diff --git a/dev-java/jflex/jflex-1.5.0.ebuild b/dev-java/jflex/jflex-1.5.0.ebuild deleted file mode 100644 index 73016544dafa..000000000000 --- a/dev-java/jflex/jflex-1.5.0.ebuild +++ /dev/null @@ -1,78 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI="5" - -JAVA_PKG_IUSE="doc source examples" - -inherit java-pkg-2 java-ant-2 - -DESCRIPTION="JFlex is a lexical analyzer generator for Java" -HOMEPAGE="http://www.jflex.de/" -SRC_URI="http://${PN}.de/${P}.tar.gz" - -LICENSE="BSD" -SLOT="1.5" -KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-fbsd ~ppc-macos ~x64-macos ~x86-macos" - -RDEPEND=">=virtual/jre-1.5 - vim-syntax? ( || ( app-editors/vim app-editors/gvim ) ) - >=dev-java/ant-core-1.7.0 - >=dev-java/javacup-0.11a_beta20060608:0" - -DEPEND=">=virtual/jdk-1.5 - dev-java/junit:0 - >=dev-java/javacup-0.11a_beta20060608:0" - -IUSE="${JAVA_PKG_IUSE} source vim-syntax" - -java_prepare() { - cp "${FILESDIR}"/"${P}"-build.xml "${S}"/build.xml -} - -# TODO: Try to avoid using bundled jar (See bug #498874) -# -# Currently, this package uses an included JFlex.jar file to bootstrap. -# Upstream was contacted and this bootstrap is really needed. The only way to -# avoid it would be to use a supplied pre-compiled .scanner file. - -EANT_GENTOO_CLASSPATH="ant-core" -EANT_GENTOO_CLASSPATH_EXTRA="lib/${P}.jar" -JAVA_ANT_REWRITE_CLASSPATH="true" -WANT_ANT_TASKS="javacup" - -src_compile() { - java-pkg-2_src_compile - - # Compile another time, using our generated jar; for sanity. - cp build/${P}.jar ${EANT_GENTOO_CLASSPATH_EXTRA} - java-pkg-2_src_compile -} - -# EANT_TEST_GENTOO_CLASSPATH doesn't support EANT_GENTOO_CLASSPATH_EXTRA yet. -RESTRICT="test" - -src_test() { - java-pkg-2_src_test -} - -src_install() { - java-pkg_newjar build/${P}.jar ${PN}.jar - java-pkg_dolauncher "${P}" --main jflex.Main - java-pkg_register-ant-task - - if use doc ; then - dodoc doc/manual.pdf changelog.md - dohtml -r doc/* - java-pkg_dojavadoc javadoc - fi - - use examples && java-pkg_doexamples examples - use source && java-pkg_dosrc src/main - - if use vim-syntax; then - insinto /usr/share/vim/vimfiles/syntax - doins "${S}/lib/jflex.vim" - fi -} diff --git a/dev-java/jflex/jflex-1.5.1.ebuild b/dev-java/jflex/jflex-1.5.1.ebuild deleted file mode 100644 index ea44f064676f..000000000000 --- a/dev-java/jflex/jflex-1.5.1.ebuild +++ /dev/null @@ -1,88 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI="5" - -JAVA_PKG_IUSE="doc source examples" - -inherit java-pkg-2 java-ant-2 - -DESCRIPTION="JFlex is a lexical analyzer generator for Java" -HOMEPAGE="http://www.jflex.de/" -SRC_URI="http://${PN}.de/${P}.tar.gz" - -LICENSE="BSD" -SLOT="1.5" -KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-fbsd ~ppc-macos ~x64-macos ~x86-macos" - -RDEPEND=">=virtual/jre-1.5 - vim-syntax? ( || ( app-editors/vim app-editors/gvim ) ) - >=dev-java/ant-core-1.7.0 - >=dev-java/javacup-0.11a_beta20060608:0" - -DEPEND=">=virtual/jdk-1.5 - dev-java/junit:0 - >=dev-java/javacup-0.11a_beta20060608:0" - -IUSE="${JAVA_PKG_IUSE} source vim-syntax" - -java_prepare() { - # use a more convenient version number - sed -i s:"\(name=\"version\" value=\"\)[^\"]*\"":"\1${PV}\"":g build.xml - # fix bootstrapping - sed -i s:"\(name=\"bootstrap.version\" value=\"\)[^\"]*\"":"\1${PV}\"":g \ - build.xml - # add javadoc capability to build.xml - sed -i s,"\(\)",\ -"\n \n \n \n\1",g \ - build.xml -} - -# TODO: Try to avoid using bundled jar (See bug #498874) -# -# Currently, this package uses an included JFlex.jar file to bootstrap. -# Upstream was contacted and this bootstrap is really needed. The only way to -# avoid it would be to use a supplied pre-compiled .scanner file. - -EANT_GENTOO_CLASSPATH="ant-core" -EANT_GENTOO_CLASSPATH_EXTRA="lib/${P}.jar" -JAVA_ANT_REWRITE_CLASSPATH="true" -WANT_ANT_TASKS="javacup" - -src_compile() { - java-pkg-2_src_compile - - # Compile another time, using our generated jar; for sanity. - cp build/${P}.jar ${EANT_GENTOO_CLASSPATH_EXTRA} - java-pkg-2_src_compile -} - -# EANT_TEST_GENTOO_CLASSPATH doesn't support EANT_GENTOO_CLASSPATH_EXTRA yet. -RESTRICT="test" - -src_test() { - java-pkg-2_src_test -} - -src_install() { - java-pkg_newjar build/${P}.jar ${PN}.jar - java-pkg_dolauncher "${P}" --main jflex.Main - java-pkg_register-ant-task - - if use doc ; then - dodoc doc/manual.pdf changelog.md - dohtml -r doc/* - java-pkg_dojavadoc javadoc - fi - - use examples && java-pkg_doexamples examples - use source && java-pkg_dosrc src/main - - if use vim-syntax; then - insinto /usr/share/vim/vimfiles/syntax - doins "${S}/lib/jflex.vim" - fi -} diff --git a/dev-java/jflex/jflex-1.6.0-r1.ebuild b/dev-java/jflex/jflex-1.6.0-r1.ebuild deleted file mode 100644 index 826102a7c174..000000000000 --- a/dev-java/jflex/jflex-1.6.0-r1.ebuild +++ /dev/null @@ -1,90 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI="5" - -JAVA_PKG_IUSE="doc source examples" - -inherit java-pkg-2 java-ant-2 - -DESCRIPTION="JFlex is a lexical analyzer generator for Java" -HOMEPAGE="http://www.jflex.de/" -SRC_URI="http://${PN}.de/${P}.tar.gz" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-fbsd ~ppc-macos ~x64-macos ~x86-macos" - -CDEPEND="dev-java/ant-core:0 - >=dev-java/javacup-0.11b_beta20150326:0 - dev-java/junit:0" - -RDEPEND=">=virtual/jre-1.6 - vim-syntax? ( || ( app-editors/vim app-editors/gvim ) ) - ${CDEPEND}" - -DEPEND=">=virtual/jdk-1.6 - ${CDEPEND}" - -IUSE="${JAVA_PKG_IUSE} source vim-syntax" - -java_prepare() { - # use a more convenient version number - sed -i s:"\(name=\"version\" value=\"\)[^\"]*\"":"\1${PV}\"":g build.xml - # fix bootstrapping - sed -i s:"\(name=\"bootstrap.version\" value=\"\)[^\"]*\"":"\1${PV}\"":g \ - build.xml - # add javadoc capability to build.xml - sed -i s,"\(\)",\ -"\n \n \n \n\1",g \ - build.xml -} - -# TODO: Try to avoid using bundled jar (See bug #498874) -# -# Currently, this package uses an included JFlex.jar file to bootstrap. -# Upstream was contacted and this bootstrap is really needed. The only way to -# avoid it would be to use a supplied pre-compiled .scanner file. - -EANT_GENTOO_CLASSPATH="ant-core" -EANT_GENTOO_CLASSPATH_EXTRA="lib/${P}.jar" -JAVA_ANT_REWRITE_CLASSPATH="true" -WANT_ANT_TASKS="javacup" - -src_compile() { - java-pkg-2_src_compile - - # Compile another time, using our generated jar; for sanity. - cp build/${P}.jar ${EANT_GENTOO_CLASSPATH_EXTRA} - java-pkg-2_src_compile -} - -# EANT_TEST_GENTOO_CLASSPATH doesn't support EANT_GENTOO_CLASSPATH_EXTRA yet. -RESTRICT="test" - -src_test() { - java-pkg-2_src_test -} - -src_install() { - java-pkg_newjar build/${P}.jar ${PN}.jar - java-pkg_dolauncher "${PN}" --main jflex.Main - java-pkg_register-ant-task - - if use doc ; then - dodoc doc/manual.pdf changelog.md - dohtml -r doc/* - java-pkg_dojavadoc javadoc - fi - - use examples && java-pkg_doexamples examples - use source && java-pkg_dosrc src/main - - if use vim-syntax; then - insinto /usr/share/vim/vimfiles/syntax - doins "${S}/lib/${PN}.vim" - fi -} diff --git a/dev-java/jflex/jflex-1.6.0.ebuild b/dev-java/jflex/jflex-1.6.0.ebuild deleted file mode 100644 index d23a6cee6dee..000000000000 --- a/dev-java/jflex/jflex-1.6.0.ebuild +++ /dev/null @@ -1,90 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI="5" - -JAVA_PKG_IUSE="doc source examples" - -inherit java-pkg-2 java-ant-2 - -DESCRIPTION="JFlex is a lexical analyzer generator for Java" -HOMEPAGE="http://www.jflex.de/" -SRC_URI="http://${PN}.de/${P}.tar.gz" - -LICENSE="BSD" -SLOT="1.6" -KEYWORDS="amd64 ~ppc ppc64 x86 ~amd64-fbsd ~ppc-macos ~x64-macos ~x86-macos" - -CDEPEND="dev-java/ant-core:0 - >=dev-java/javacup-0.11a_beta20060608:0 - dev-java/junit:0" - -RDEPEND=">=virtual/jre-1.5 - vim-syntax? ( || ( app-editors/vim app-editors/gvim ) ) - ${CDEPEND}" - -DEPEND=">=virtual/jdk-1.5 - ${CDEPEND}" - -IUSE="${JAVA_PKG_IUSE} source vim-syntax" - -java_prepare() { - # use a more convenient version number - sed -i s:"\(name=\"version\" value=\"\)[^\"]*\"":"\1${PV}\"":g build.xml - # fix bootstrapping - sed -i s:"\(name=\"bootstrap.version\" value=\"\)[^\"]*\"":"\1${PV}\"":g \ - build.xml - # add javadoc capability to build.xml - sed -i s,"\(\)",\ -"\n \n \n \n\1",g \ - build.xml -} - -# TODO: Try to avoid using bundled jar (See bug #498874) -# -# Currently, this package uses an included JFlex.jar file to bootstrap. -# Upstream was contacted and this bootstrap is really needed. The only way to -# avoid it would be to use a supplied pre-compiled .scanner file. - -EANT_GENTOO_CLASSPATH="ant-core" -EANT_GENTOO_CLASSPATH_EXTRA="lib/${P}.jar" -JAVA_ANT_REWRITE_CLASSPATH="true" -WANT_ANT_TASKS="javacup" - -src_compile() { - java-pkg-2_src_compile - - # Compile another time, using our generated jar; for sanity. - cp build/${P}.jar ${EANT_GENTOO_CLASSPATH_EXTRA} - java-pkg-2_src_compile -} - -# EANT_TEST_GENTOO_CLASSPATH doesn't support EANT_GENTOO_CLASSPATH_EXTRA yet. -RESTRICT="test" - -src_test() { - java-pkg-2_src_test -} - -src_install() { - java-pkg_newjar build/${P}.jar ${PN}.jar - java-pkg_dolauncher "${PN}-${SLOT}" --main jflex.Main - java-pkg_register-ant-task - - if use doc ; then - dodoc doc/manual.pdf changelog.md - dohtml -r doc/* - java-pkg_dojavadoc javadoc - fi - - use examples && java-pkg_doexamples examples - use source && java-pkg_dosrc src/main - - if use vim-syntax; then - insinto /usr/share/vim/vimfiles/syntax - doins "${S}/lib/jflex.vim" - fi -} -- 2.26.2