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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Sat Dec 28 19:09:56 2013 UTC (6 years 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-1.9.1.ebuild,v 1.6 2011/12/31 13:57:16 sera Exp $
4
5 # This ebuild only builds the core of Lucene
6 # It does not build any optional component (contributions)
7
8 JAVA_PKG_IUSE="test source doc"
9
10 inherit java-pkg-2 java-ant-2 java-osgi
11
12 DESCRIPTION="High-performance, full-featured text search engine written entirely in Java"
13 HOMEPAGE="http://lucene.apache.org"
14 SRC_URI="mirror://apache/lucene/java/archive/${P}-src.tar.gz"
15 LICENSE="Apache-1.1"
16 SLOT="1.9"
17 KEYWORDS="amd64 ppc x86 ~x86-fbsd"
18 IUSE=""
19
20 DEPEND=">=virtual/jdk-1.4
21 test? ( dev-java/junit dev-java/ant-junit )"
22
23 RDEPEND=">=virtual/jre-1.4"
24
25 src_unpack() {
26 unpack ${A}
27 cd "${S}"
28 rm -rf contrib # we remove entirely the contrib directory
29 epatch "${FILESDIR}/disable-contrib.patch"
30
31 if use test; then
32 mkdir lib
33 java-ant_rewrite-classpath "common-build.xml"
34 fi
35 }
36
37 src_compile() {
38 eant jar-core $(use_doc javadocs)
39 }
40
41 src_test() {
42 java-ant_rewrite-classpath common-build.xml
43 EANT_GENTOO_CLASSPATH="junit ant-core" ANT_TASKS="ant-junit" eant test
44 }
45
46 src_install() {
47 dodoc CHANGES.txt README.txt
48 # WTF is with the jar version below
49 java-osgi_newjar-fromfile "build/lucene-core-1.9.2-dev.jar" \
50 "${FILESDIR}/lucene-manifest" "Apache Lucene"
51
52 use doc && java-pkg_dojavadoc build/docs/api
53 use source && java-pkg_dosrc src/java/org
54 }

  ViewVC Help
Powered by ViewVC 1.1.20