blob: 70c22cc721bca79c9f4d821481638ed813d31369 (
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
|
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/kxml/kxml-2.3.0.ebuild,v 1.1 2013/10/15 23:18:17 tomwij Exp $
EAPI="5"
JAVA_PKG_IUSE="doc examples source"
inherit eutils java-pkg-2 java-ant-2
DESCRIPTION="Small XML pull parser for constrained environments such as Applets, Personal Java or MIDP devices."
HOMEPAGE="http://${PN}.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${PN}2-src-${PV}.zip"
LICENSE="MIT"
SLOT="2"
KEYWORDS="~amd64"
CDEPEND="dev-java/xpp3:0"
DEPEND=">=virtual/jdk-1.4
${CDEPEND}
app-arch/unzip"
RDEPEND=">=virtual/jre-1.4
${CDEPEND}"
S="${WORKDIR}"
java_prepare() {
cp "${FILESDIR}"/${P}-build.xml build.xml || die
find . -name '*.class' -print -delete || die
find . -name '*.jar' -print -delete || die
}
EANT_BUILD_TARGET="build_jar"
JAVA_ANT_REWRITE_CLASSPATH="true"
EANT_GENTOO_CLASSPATH="xpp3"
src_install() {
java-pkg_newjar dist/${PN}2-${PV}.jar ${PN}.jar
java-pkg_newjar dist/${PN}2-min-${PV}.jar ${PN}-min.jar
use source && java-pkg_dosrc src/org
use doc && java-pkg_dojavadoc www/kxml2/javadoc
use examples && java-pkg_doexamples samples
}
|