Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 426382 | Differences between
and this patch

Collapse All | Expand All

(-)/var/portage/dev-java/nekohtml/nekohtml-1.9.6.ebuild (-11 / +15 lines)
Lines 2-7 Link Here
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/nekohtml/nekohtml-1.9.6.ebuild,v 1.6 2012/07/05 19:50:21 sera Exp $
3
# $Header: /var/cvsroot/gentoo-x86/dev-java/nekohtml/nekohtml-1.9.6.ebuild,v 1.6 2012/07/05 19:50:21 sera Exp $
4
4
5
EAPI="4"
6
5
JAVA_PKG_IUSE="doc examples source"
7
JAVA_PKG_IUSE="doc examples source"
6
8
7
inherit java-pkg-2 java-ant-2 eutils
9
inherit java-pkg-2 java-ant-2 eutils
Lines 13-41 Link Here
13
LICENSE="Apache-2.0"
15
LICENSE="Apache-2.0"
14
16
15
SLOT="0"
17
SLOT="0"
16
KEYWORDS="amd64 ppc x86"
18
KEYWORDS="~amd64"
17
IUSE=""
19
IUSE=""
18
20
19
COMMON_DEP=">=dev-java/xerces-2.7"
21
COMMON_DEP=">=dev-java/xerces-2.7"
20
DEPEND=">=virtual/jdk-1.4
22
DEPEND=">=virtual/jdk-1.4
23
	test? ( =dev-java/junit-3.8* )
21
	${COMMON_DEP}"
24
	${COMMON_DEP}"
22
RDEPEND=">=virtual/jre-1.4
25
RDEPEND=">=virtual/jre-1.4
23
	${COMMON_DEP}"
26
	${COMMON_DEP}"
24
27
25
JAVA_ANT_CLASSPATH_TAGS="${JAVA_ANT_CLASSPATH_TAGS} taskdef"
28
JAVA_ANT_REWRITE_CLASSPATH="yes"
26
29
EANT_GENTOO_CLASSPATH="xerces-2"
27
src_unpack() {
28
	unpack ${A}
29
	cd "${S}"
30
	java-ant_rewrite-classpath
31
	rm -v lib/*.jar *.jar || die
32
	java-pkg_jar-from --into lib xerces-2
33
}
34
30
31
#do not generate docs, use bundled
35
EANT_DOC_TARGET=""
32
EANT_DOC_TARGET=""
36
33
34
src_prepare() {
35
	epatch "${FILESDIR}"/${P}-remove-obsolete-xerces-bridges.patch
36
	find . -iname '*.jar' -delete
37
}
38
37
src_test() {
39
src_test() {
38
	EANT_GENTOO_CLASSPATH="ant-core,xerces-2" eant test
40
	ANT_TASKS="ant-junit" \
41
		EANT_GENTOO_CLASSPATH="xerces-2 junit" \
42
		eant test
39
}
43
}
40
44
41
src_install() {
45
src_install() {

Return to bug 426382