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

Contents of /dev-java/lucene/lucene-2.3.2-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Mon Mar 10 16:56:51 2014 UTC (5 years, 10 months ago) by johu
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +2 -2 lines
x86 stable, bug #315557

(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key F3CFD2BD)

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

  ViewVC Help
Powered by ViewVC 1.1.20