/[gentoo-x86]/dev-java/saxpath/saxpath-1.0-r2.ebuild
Gentoo

Contents of /dev-java/saxpath/saxpath-1.0-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.20 - (show annotations) (download)
Sun Aug 10 20:23:30 2014 UTC (5 months, 3 weeks ago) by slyfox
Branch: MAIN
CVS Tags: HEAD
Changes since 1.19: +3 -3 lines
QA: drop trailing '.' from DESCRIPTION

(Portage version: 2.2.11_p9/cvs/Linux x86_64, signed Manifest commit with key 611FF3AA)

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/saxpath/saxpath-1.0-r2.ebuild,v 1.19 2013/07/28 09:34:56 grobian Exp $
4
5 JAVA_PKG_IUSE="doc source test"
6
7 inherit java-pkg-2 java-ant-2
8
9 DESCRIPTION="A Simple API for XPath"
10 HOMEPAGE="http://saxpath.sourceforge.net/"
11 SRC_URI="mirror://sourceforge/saxpath/${P}.tar.gz"
12
13 LICENSE="JDOM"
14 SLOT="0"
15 KEYWORDS="amd64 ~arm ~ia64 ppc ppc64 x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
16
17 RDEPEND=">=virtual/jre-1.4"
18 # doc needs ant-trax
19 # test needs ant-junit
20 DEPEND=">=virtual/jdk-1.4
21 doc? ( dev-java/ant-trax )
22 test? ( dev-java/ant-junit )"
23
24 S=${WORKDIR}/${P}-FCS
25
26 src_unpack() {
27 unpack ${A}
28 cd "${S}"
29
30 rm -v *.jar lib/*.jar || die
31
32 mkdir src/conf
33 cp "${FILESDIR}/MANIFEST.MF" src/conf
34
35 use test && java-ant_rewrite-classpath
36
37 use doc && ANT_TASKS="ant-trax"
38 }
39
40 EANT_BUILD_TARGET="package"
41 EANT_DOC_TARGET="doc javadoc"
42
43 src_test() {
44 ANT_TASKS="ant-junit" eant -Dgentoo.classpath="$(java-pkg_getjar --build-only junit junit.jar)" \
45 test
46 }
47
48 src_install() {
49 java-pkg_dojar build/saxpath.jar
50
51 if use doc; then
52 # installs things other than javadoc too
53 mv build/doc/javadoc build/doc/apidocs || die
54 java-pkg_dohtml -r build/doc/*
55 dosym /usr/share/doc/${PF}/html/{apidocs,api} || die
56 fi
57 use source && java-pkg_dosrc src/java/main/*
58 }

  ViewVC Help
Powered by ViewVC 1.1.20