/[gentoo-x86]/dev-java/lucene/lucene-2.4.0.ebuild
Gentoo

Contents of /dev-java/lucene/lucene-2.4.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Sat Dec 28 19:09:57 2013 UTC (6 years, 1 month ago) by robbat2
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +2 -2 lines
With the archive mirror added to the mirror://apache/ target, we also need to check multiple locations on some distfiles, when upstream had them in one of two locations.

(Portage version: 2.2.7/cvs/Linux x86_64, unsigned Manifest commit)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-java/lucene/lucene-2.4.0.ebuild,v 1.6 2011/12/19 11:35:15 sera Exp $
4
5 JAVA_PKG_IUSE="doc source test"
6 JAVA_PKG_BSFIX_ALL="no"
7 JAVA_PKG_BSFIX_NAME="build.xml common-build.xml"
8
9 inherit java-pkg-2 java-ant-2
10
11 DESCRIPTION="High-performance, full-featured text search engine written entirely in Java"
12 HOMEPAGE="http://lucene.apache.org"
13 # when doing version bump, SRC_URI of the previous version should most probably
14 # be changed to java/archive/ !
15 SRC_URI="mirror://apache/lucene/java/${P}-src.tar.gz"
16 LICENSE="Apache-2.0"
17 SLOT="2.4"
18 KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd"
19 IUSE=""
20 DEPEND=">=virtual/jdk-1.4
21 dev-java/ant-nodeps
22 dev-java/javacc
23 test? ( dev-java/ant-junit =dev-java/junit-3* )"
24 RDEPEND=">=virtual/jdk-1.4"
25
26 src_unpack() {
27 unpack ${A}
28 cd "${S}"
29
30 sed -i -e '/-Xmax/ d' common-build.xml
31 }
32
33 src_compile() {
34 # regenerate javacc files just because we can
35 # put javacc.jar on ant's classpath here even when <javacc> task
36 # doesn't use it - it's to fool the <available> test, first time
37 # it's useful not to have ignoresystemclasses=true...
38 ANT_TASKS="ant-nodeps javacc" eant \
39 -Djavacc.home=/usr/share/javacc/lib javacc
40 ANT_TASKS="none" eant -Dversion=${PV} jar-core jar-demo $(use_doc javadocs-core javadocs-demo)
41 }
42
43 src_test() {
44 java-ant_rewrite-classpath common-build.xml
45 EANT_GENTOO_CLASSPATH="junit ant-core" ANT_TASKS="ant-junit" eant test-core
46 }
47
48 src_install() {
49 dodoc CHANGES.txt README.txt || die
50 java-pkg_newjar build/${PN}-core-${PV}.jar ${PN}-core.jar
51 java-pkg_newjar build/${PN}-demos-${PV}.jar ${PN}-demos.jar
52
53 if use doc; then
54 dohtml -r docs/* || die
55 # for the core and demo subdirs
56 java-pkg_dohtml -r build/docs/api
57 fi
58 use source && java-pkg_dosrc src/java/org
59 }

  ViewVC Help
Powered by ViewVC 1.1.20