/[gentoo-x86]/dev-java/jaxen/jaxen-1.1.1.ebuild
Gentoo

Contents of /dev-java/jaxen/jaxen-1.1.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Tue Jan 1 19:14:29 2013 UTC (19 months, 2 weeks ago) by ulm
Branch: MAIN
Changes since 1.9: +3 -3 lines
Update LICENSE, jaxen is replaced by the JDOM license template.

(Portage version: 2.1.11.38/cvs/Linux x86_64, signed Manifest commit with key E7BE08CA7DC6EA25)

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/jaxen/jaxen-1.1.1.ebuild,v 1.9 2012/04/15 18:41:39 vapier Exp $
4
5 JAVA_PKG_IUSE="doc examples source test"
6
7 inherit java-pkg-2 eutils java-ant-2
8
9 MY_P=${P/_beta/-beta-}
10 DESCRIPTION="A Java XPath Engine"
11 HOMEPAGE="http://jaxen.org/"
12 SRC_URI="http://dist.codehaus.org/${PN}/distributions/${MY_P}-src.tar.gz"
13
14 LICENSE="JDOM"
15 SLOT="1.1"
16 KEYWORDS="amd64 ~ia64 ppc ppc64 x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x86-solaris"
17 IUSE="doc source test"
18
19 COMMON_DEP="~dev-java/jdom-1.0
20 =dev-java/dom4j-1*
21 dev-java/xom"
22 RDEPEND=">=virtual/jre-1.4
23 ${COMMON_DEP}"
24
25 DEPEND=">=virtual/jdk-1.4
26 test? ( dev-java/ant-junit =dev-java/junit-3* )
27 ${COMMON_DEP}"
28
29 S="${WORKDIR}/${MY_P}"
30
31 src_unpack() {
32 unpack ${A}
33
34 cd "${S}"
35 java-ant_ignore-system-classes
36
37 mkdir -p "${S}/target/lib"
38 cd "${S}/target/lib"
39 java-pkg_jar-from dom4j-1
40 java-pkg_jar-from jdom-1.0
41 java-pkg_jar-from xom
42 }
43
44 src_install() {
45 java-pkg_newjar target/${MY_P}.jar
46
47 use doc && java-pkg_dojavadoc dist/docs/api
48 use examples && java-pkg_doexamples src/java/samples
49 use source && java-pkg_dosrc src/java/main/*
50 }
51
52 src_test() {
53 java-pkg_jar-from --into target/lib junit
54 ANT_TASKS="ant-junit" eant test -DJunit.present=true
55 }

  ViewVC Help
Powered by ViewVC 1.1.20