blob: 673e7ed90223748a500dd5bb65201b451839ed96 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/stax/stax-1.2.0.ebuild,v 1.2 2007/07/19 13:34:39 angelos Exp $
JAVA_PKG_IUSE="doc source"
inherit java-pkg-2 java-ant-2
DESCRIPTION="A standard XML processing API that allows you to stream XML data from and to your application."
HOMEPAGE="http://stax.codehaus.org/"
SRC_URI="http://dist.codehaus.org/${PN}/distributions/${PN}-src-${PV}.zip"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND=">=virtual/jre-1.4"
# test? ( dev-java/ant-junit dev-java/ant-trax dev-java/xerces )
DEPEND="
>=virtual/jdk-1.4
app-arch/unzip"
S="${WORKDIR}"
src_unpack(){
unpack ${A}
cd "${S}" || die "cd failed"
epatch "${FILESDIR}/1.2.0-build-version.patch"
}
EANT_BUILD_TARGET="ri_bin_dist"
# A lot of these fail and that seems expected based on upstream
# svn logs
RESTRICT="test"
src_test() {
mkdir lib
java-ant_rewrite-classpath build.xml
ANT_TASKS="ant-junit ant-trax" \
EANT_GENTOO_CLASSPATH="junit,xerces-2" eant test
}
src_install() {
java-pkg_newjar ${S}/build/stax-api-${PV}.jar stax-api.jar
java-pkg_newjar ${S}/build/stax-${PV}-dev.jar stax-dev.jar
if use doc; then
java-pkg_dojavadoc "${S}/build/javadoc"
fi
use source && java-pkg_dosrc src/*
}
|