blob: 87ca99a7226a22dba32b784580cebef806383bc4 (
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
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/jibx-tools/jibx-tools-1.1.5-r1.ebuild,v 1.2 2009/06/17 13:02:18 fauli Exp $
EAPI="2"
JAVA_PKG_IUSE="source"
inherit java-pkg-2 java-ant-2 versionator
MY_PV=$(replace_all_version_separators '_')
DESCRIPTION="JiBX: Binding XML to Java Code - Generators"
HOMEPAGE="http://jibx.sourceforge.net/"
SRC_URI="mirror://sourceforge/jibx/jibx_${MY_PV}.zip"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~ppc x86"
IUSE=""
COMMON_DEP="
dev-java/bcel:0
java-virtuals/stax-api
~dev-java/jibx-${PV}"
DEPEND=">=virtual/jdk-1.4
app-arch/unzip
${COMMON_DEP}"
RDEPEND=">=virtual/jre-1.4
${COMMON_DEP}"
S="${WORKDIR}/jibx"
java_prepare() {
#http://jira.codehaus.org/browse/JIBX-207
epatch "${FILESDIR}/1.1.5-build.patch"
java-ant_rewrite-classpath "${S}/build/build.xml"
rm -v "${S}"/lib/*.jar || die
}
EANT_FILTER_COMPILER="ecj-3.3"
EANT_BUILD_XML="build/build.xml"
EANT_BUILD_TARGET="jar-tools"
EANT_GENTOO_CLASSPATH="bcel,stax-api,jibx"
src_install() {
java-pkg_register-dependency jibx
java-pkg_dojar "${S}/lib"/jibx-*.jar
use source && java-pkg_dosrc "${S}"/build/src/* "${S}"/build/extras/*
}
|