blob: 42b8a66673f48fc0a52e80806d78f0d39b902ada (
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-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="4"
JAVA_PKG_IUSE="doc source"
inherit java-pkg-2 java-ant-2
MY_PV="beta2a"
DESCRIPTION="JiBX binding and code from schema generator"
HOMEPAGE="http://jibx.sourceforge.net/xsd2jibx/"
SRC_URI="mirror://sourceforge/jibx/${PN}-${MY_PV}.zip"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x64-solaris"
IUSE=""
COMMON_DEP="dev-java/commons-logging:0
dev-java/xpp3:0
dev-java/jaxme:0
dev-java/jibx:0
dev-java/commons-lang:2.1"
DEPEND=">=virtual/jdk-1.4
app-arch/unzip
${COMMON_DEP}"
RDEPEND=">=virtual/jre-1.4
${COMMON_DEP}"
S="${WORKDIR}/${PN}"
java_prepare() {
cp "${FILESDIR}/build.xml" .
# patch from freemind authors, freemind won't build without it
# they sent upstream (that's how I found it) which said he's preparing
# complete rewrite. It only adds non-abstract functionality.
epatch "${FILESDIR}/${P}-freemind.patch"
cd "${S}/lib"
rm -v *.jar || die
java-pkg_jar-from commons-logging,xpp3,jaxme,jibx,commons-lang-2.1
}
EANT_ANT_TASKS="jibx"
EANT_EXTRA_ARGS="-Djibxhome=${EPREFIX}/usr/share/jibx/"
src_install() {
java-pkg_dojar lib/${PN}.jar
dohtml -r docs/*
use doc && java-pkg_dojavadoc api
use source && java-pkg_dosrc src/main/org
}
|