diff options
author | Patrice Clement <monsieurp@gentoo.org> | 2018-01-02 21:51:17 +0100 |
---|---|---|
committer | Patrice Clement <monsieurp@gentoo.org> | 2018-01-03 11:08:31 +0100 |
commit | 0b5f524923e10fd94a7f5deb80844d8b8acccf81 (patch) | |
tree | ea928f157ae192f86038f938355f25fd60d11e21 /dev-java/lucene | |
parent | dev-java/lucene: clean up old. (diff) | |
download | gentoo-0b5f524923e10fd94a7f5deb80844d8b8acccf81.tar.gz gentoo-0b5f524923e10fd94a7f5deb80844d8b8acccf81.tar.bz2 gentoo-0b5f524923e10fd94a7f5deb80844d8b8acccf81.zip |
dev-java/lucene: EAPI 6 bump.
Commit straight to stable as per IRC discussion with zlogene.
Bug: https://bugs.gentoo.org/642302
Package-Manager: Portage-2.3.13, Repoman-2.3.3
RepoMan-Options: --force
Diffstat (limited to 'dev-java/lucene')
-rw-r--r-- | dev-java/lucene/Manifest | 1 | ||||
-rw-r--r-- | dev-java/lucene/lucene-2.4.1-r2.ebuild | 79 |
2 files changed, 80 insertions, 0 deletions
diff --git a/dev-java/lucene/Manifest b/dev-java/lucene/Manifest index 6a13c955c2c3..ca24d46c1082 100644 --- a/dev-java/lucene/Manifest +++ b/dev-java/lucene/Manifest @@ -1,4 +1,5 @@ DIST lucene-1.4.3-src.tar.gz 768320 BLAKE2B 8017b672b0104be007582a67cff5cb130187afcf9608bec0cb2b6bae9b3ea8c67486b324740c99e4db8f23879dd614a098f778f6b52b429d3dd1906387e9b61e SHA512 426539a4b4a8887485c4301b2127ad4815646d1a81bca877ed2b0e68d886fcaf844449532a080754b79696c0f9e9c5f304be28487e0f9aa11178565a20f29911 DIST lucene-2.4.1-src.tar.gz 5057003 BLAKE2B 3e2a29cfa94b367f1e62f60a2f7b7e195c788048564fb061ade4b1babcb2fd71e36b282049d3816c3faaaa3dacc07f4a7dbdb0504a659ea3ab8e06e247debcba SHA512 cf227eea4aeee904ccf5316ee7f2399864bf28b9c01e044ef27232dd483c3a5f0ecc8836633f44acfa41ffee6bf1c530e756ef45fa77ac1d15e1f83129b7aa5e +DIST lucene-2.4.1.tar.gz 5057003 BLAKE2B 3e2a29cfa94b367f1e62f60a2f7b7e195c788048564fb061ade4b1babcb2fd71e36b282049d3816c3faaaa3dacc07f4a7dbdb0504a659ea3ab8e06e247debcba SHA512 cf227eea4aeee904ccf5316ee7f2399864bf28b9c01e044ef27232dd483c3a5f0ecc8836633f44acfa41ffee6bf1c530e756ef45fa77ac1d15e1f83129b7aa5e DIST lucene-3.5.0-src.tgz 39564076 BLAKE2B 5018f0e07a9df3f2f55c540e94e349e64e2c02c99acf14946e4471e16ace4f17a18e306aca6187028cde4434f0d6b38090442baaddaa79ef12ff34a8461f9e98 SHA512 58846190ed0e8c0747e14cb46bf27255d0e4ee93aa0969cf16140713ce20c8fc3f451353437313f14416c92b7b6825d4ce3416d9c7ce4cb1854f31877c2af275 DIST lucene-3.6.2-src.tgz 32139784 BLAKE2B 48fe88efeae8396e084f827aa66530480f40aee3a2e59c8524420059f004a73be4c1e50c98345ad0ad4808ff8a0a996f9406523bf5c124616657ec91f9797f70 SHA512 e9a08a1b5303c44e4feecc0bb6e7013e4a9420517ae4e98999bd318ec25b5b2ff3b6de8b51db8f68afc0fdc3149829297023a95b103d4f99e7db68deee4c3965 diff --git a/dev-java/lucene/lucene-2.4.1-r2.ebuild b/dev-java/lucene/lucene-2.4.1-r2.ebuild new file mode 100644 index 000000000000..018d8ba1bac9 --- /dev/null +++ b/dev-java/lucene/lucene-2.4.1-r2.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +JAVA_PKG_IUSE="doc source test" +JAVA_PKG_BSFIX_ALL="no" +JAVA_PKG_BSFIX_NAME="build.xml common-build.xml" + +inherit java-pkg-2 java-ant-2 + +DESCRIPTION="High-performance, full-featured text search engine written entirely in Java" +HOMEPAGE="https://lucene.apache.org" +SRC_URI="https://archive.apache.org/dist/${PN}/java/${P}-src.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="2.4" +KEYWORDS="amd64 x86 ~x86-fbsd" + +CDEPEND=" + dev-java/javacc:0" + +DEPEND=" + ${CDEPEND} + >=virtual/jdk-1.6 + test? ( + dev-java/junit:0 + dev-java/ant-core:0 + )" + +RDEPEND=" + ${CDEPEND} + >=virtual/jre-1.6" + +src_prepare() { + default + java-pkg_clean + sed -i -e '/-Xmax/ d' common-build.xml || die + + # Portage marks shese files as bogus for some reason. + find . -type f -name instruction_arrow.png -exec rm -v {} \; || die +} + +src_compile() { + # regenerate javacc files just because we can + # put javacc.jar on ant's classpath here even when <javacc> task + # doesn't use it - it's to fool the <available> test, first time + # it's useful not to have ignoresystemclasses=true... + ANT_TASKS="ant-nodeps javacc" \ + eant \ + -Djavacc.home="${EPREFIX}"/usr/share/javacc/lib \ + javacc + ANT_TASKS="none" \ + eant \ + -Dversion=${PV} \ + jar-core \ + jar-demo \ + $(use_doc javadocs-core javadocs-demo) +} + +src_test() { + java-ant_rewrite-classpath common-build.xml + EANT_GENTOO_CLASSPATH="junit ant-core" \ + ANT_TASKS="ant-junit" \ + eant \ + test-core +} + +src_install() { + einstalldocs + java-pkg_newjar "build/${PN}-core-${PV}.jar" "${PN}-core.jar" + java-pkg_newjar "build/${PN}-demos-${PV}.jar" "${PN}-demos.jar" + + if use doc; then + dodoc -r docs + java-pkg_dohtml -r build/docs/api + fi + use source && java-pkg_dosrc src/java/org +} |