From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 7F513138206 for ; Wed, 3 Jan 2018 10:08:53 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9B337E08EC; Wed, 3 Jan 2018 10:08:52 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6CAD0E08EC for ; Wed, 3 Jan 2018 10:08:52 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 33580335C2E for ; Wed, 3 Jan 2018 10:08:50 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id EBCF21A2 for ; Wed, 3 Jan 2018 10:08:48 +0000 (UTC) From: "Patrice Clement" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Patrice Clement" Message-ID: <1514974115.ac63c743ed18aaaa0ae3fe320b4029a445c54ee0.monsieurp@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-java/lucene/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-java/lucene/lucene-3.5.0-r1.ebuild X-VCS-Directories: dev-java/lucene/ X-VCS-Committer: monsieurp X-VCS-Committer-Name: Patrice Clement X-VCS-Revision: ac63c743ed18aaaa0ae3fe320b4029a445c54ee0 X-VCS-Branch: master Date: Wed, 3 Jan 2018 10:08:48 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 9335597b-4bbf-4163-9e3a-b1f0d4ed38e4 X-Archives-Hash: 9b8d5e30c5008b2b4750a990dc39f0f6 commit: ac63c743ed18aaaa0ae3fe320b4029a445c54ee0 Author: Patrice Clement gentoo org> AuthorDate: Wed Jan 3 09:41:26 2018 +0000 Commit: Patrice Clement gentoo org> CommitDate: Wed Jan 3 10:08:35 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ac63c743 dev-java/lucene: EAPI 6 bump. Bug: https://bugs.gentoo.org/642302 Package-Manager: Portage-2.3.13, Repoman-2.3.3 RepoMan-Options: --force dev-java/lucene/lucene-3.5.0-r1.ebuild | 136 +++++++++++++++++++++++++++++++++ 1 file changed, 136 insertions(+) diff --git a/dev-java/lucene/lucene-3.5.0-r1.ebuild b/dev-java/lucene/lucene-3.5.0-r1.ebuild new file mode 100644 index 00000000000..1c1898386a2 --- /dev/null +++ b/dev-java/lucene/lucene-3.5.0-r1.ebuild @@ -0,0 +1,136 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +JAVA_PKG_IUSE="doc source test contrib" +JAVA_PKG_BSFIX_ALL="no" +JAVA_PKG_BSFIX_NAME="build.xml common-build.xml contrib-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="mirror://apache/lucene/java/${PV}/${P}-src.tgz" + +LICENSE="Apache-2.0" +SLOT="3.5" +KEYWORDS="amd64 x86" + +CDEPEND=" + dev-java/junit:4 + dev-java/ant-junit:0 + dev-java/ant-nodeps:0 + contrib? ( + dev-java/jakarta-regexp:1.4 + dev-java/commons-compress:0 + dev-java/commons-collections:0 + dev-java/commons-digester:0 + dev-java/commons-logging:0 + dev-java/commons-beanutils:1.7 + )" + +DEPEND=" + ${CDEPEND} + >=virtual/jdk-1.6 + test? ( + dev-java/junit:4 + dev-java/ant-core:0 + )" + +RDEPEND=" + ${CDEPEND} + >=virtual/jre-1.6" + +DOCS=( + CHANGES.txt README.txt + NOTICE.txt CHANGES.txt + JRE_VERSION_MIGRATION.txt +) + +# All tests fail with the following error: +# junit.framework.AssertionFailedError: ensure your setUp() calls super.setUp()!!! +RESTRICT="test" + +src_prepare() { + default + java-pkg_clean + sed -i \ + -e '/-Xmax/ d' \ + common-build.xml || die + + # FIXME: contrib builds do not work if junit not included + #java-pkg_jar-from --build-only --into lib \ + # junit-4 junit.jar junit-4.7.jar + java-pkg_jar-from --build-only --into lib \ + ant-core ant.jar ant-1.7.1.jar + java-pkg_jar-from --build-only --into lib \ + ant-junit ant-junit.jar ant-junit-1.7.1.jar + + if use contrib; then + cd contrib/ || die + java-pkg_jar-from --build-only --into queries/lib \ + jakarta-regexp:1.4 jakarta-regexp.jar jakarta-regexpt-1.4.jar + java-pkg_jar-from --build-only --into benchmark/lib \ + commons-compress commons-compress.jar commons-compress-1.1.jar + java-pkg_jar-from --build-only --into benchmark/lib \ + commons-collections commons-collections.jar commons-collections-3.1.jar + java-pkg_jar-from --build-only --into benchmark/lib \ + commons-digester commons-digester.jar commons-digester-1.7.jar + java-pkg_jar-from --build-only --into benchmark/lib \ + commons-logging commons-logging.jar commons-logging-1.0.4.jar + java-pkg_jar-from --build-only --into benchmark/lib \ + commons-beanutils:1.7 commons-beanutils.jar commons-beanutils-1.7.0.jar + fi +} + +src_compile() { + # FIXME: docs do not build if behind a proxy, -autoproxy does not work + java-ant_xml-rewrite -f common-build.xml \ + -c -e javadoc \ + -a failonerror \ + -v "false" + + ANT_TASKS="none" \ + eant -Dversion=${PV} \ + -Dfailonjavadocwarning=false \ + jar-core \ + $(use_doc javadocs-core) + + if use contrib; then + ANT_TASKS="none" \ + eant -Dversion=${PV} \ + -Dfailonjavadocwarning=false \ + build-contrib \ + $(use_doc javadocs-all) + fi +} + +src_test() { + # FIXME: test does not get run, even when selected + java-ant_rewrite-classpath common-build.xml + EANT_GENTOO_CLASSPATH="junit-4 ant-core ant-junit" \ + ANT_TASKS="ant-junit" \ + eant test-core +} + +src_install() { + einstalldocs + java-pkg_newjar build/${PN}-core-${PV}.jar ${PN}-core.jar + + if use contrib; then + local i j + for i in $(find build/contrib -name \*-${PV}.jar); do + j=${i##*/} + java-pkg_newjar $i ${j%%-${PV}.jar}.jar + done + fi + if use doc; then + dodoc -r docs + java-pkg_dohtml -r build/docs/api + fi + if use source; then + java-pkg_dosrc src/java/org + use contrib && java-pkg_dosrc contrib + fi +}