Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 426384
Collapse All | Expand All

(-)/var/portage/dev-java/jaxen/jaxen-1.1.1.ebuild (-22 / +16 lines)
Lines 1-19 Link Here
1
# Copyright 1999-2012 Gentoo Foundation
1
# Copyright 1999-2012 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
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 $
3
# $Header:  $
4
4
5
EAPI=4
5
JAVA_PKG_IUSE="doc examples source test"
6
JAVA_PKG_IUSE="doc examples source test"
6
7
7
inherit java-pkg-2 eutils java-ant-2
8
inherit java-pkg-2 java-ant-2
8
9
9
MY_P=${P/_beta/-beta-}
10
DESCRIPTION="A Java XPath Engine"
10
DESCRIPTION="A Java XPath Engine"
11
HOMEPAGE="http://jaxen.org/"
11
HOMEPAGE="http://jaxen.codehaus.org/"
12
SRC_URI="http://dist.codehaus.org/${PN}/distributions/${MY_P}-src.tar.gz"
12
SRC_URI="http://dist.codehaus.org/${PN}/distributions/${P}-src.tar.gz"
13
13
14
LICENSE="jaxen"
14
LICENSE="jaxen"
15
SLOT="1.1"
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"
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"
17
IUSE="doc source test"
18
18
19
COMMON_DEP="~dev-java/jdom-1.0
19
COMMON_DEP="~dev-java/jdom-1.0
Lines 26-55 Link Here
26
	test? ( dev-java/ant-junit =dev-java/junit-3* )
26
	test? ( dev-java/ant-junit =dev-java/junit-3* )
27
	${COMMON_DEP}"
27
	${COMMON_DEP}"
28
28
29
S="${WORKDIR}/${MY_P}"
29
S="${WORKDIR}/${P}"
30
30
31
src_unpack() {
31
JAVA_ANT_REWRITE_CLASSPATH="yes"
32
	unpack ${A}
32
EANT_GENTOO_CLASSPATH="dom4j-1,jdom-1.0,xom"
33
EANT_TEST_EXTRA_ARGS="-DJunit.present=true"
33
34
34
	cd "${S}"
35
java_prepare() {
35
	java-ant_ignore-system-classes
36
	cp -v "${FILESDIR}"/${P}_maven1-build.xml build.xml || die
37
}
36
38
37
	mkdir -p "${S}/target/lib"
39
src_test() {
38
	cd "${S}/target/lib"
40
	java-pkg-2_src_test
39
	java-pkg_jar-from dom4j-1
40
	java-pkg_jar-from jdom-1.0
41
	java-pkg_jar-from xom
42
}
41
}
43
42
44
src_install() {
43
src_install() {
45
	java-pkg_newjar target/${MY_P}.jar
44
	java-pkg_newjar target/${P}.jar
46
45
47
	use doc && java-pkg_dojavadoc dist/docs/api
46
	use doc && java-pkg_dojavadoc dist/docs/api
48
	use examples && java-pkg_doexamples src/java/samples
47
	use examples && java-pkg_doexamples src/java/samples
49
	use source && java-pkg_dosrc src/java/main/*
48
	use source && java-pkg_dosrc src/java/main/*
50
}
49
}
51
52
src_test() {
53
	java-pkg_jar-from --into target/lib junit
54
	ANT_TASKS="ant-junit" eant test -DJunit.present=true
55
}

Return to bug 426384