blob: 4d50d3726c9280d3734579dcb9c1ac167e6379df (
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
55
56
57
58
59
60
61
62
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="4"
JAVA_PKG_IUSE="doc source"
inherit eutils java-pkg-2 java-ant-2
MY_P="xmlbeans-${PV}"
DESCRIPTION="An XML-Java binding tool"
HOMEPAGE="http://xmlbeans.apache.org/"
SRC_URI="http://archive.apache.org/dist/xmlbeans/source/${MY_P}-src.zip"
LICENSE="Apache-2.0"
SLOT="2"
KEYWORDS="~amd64"
IUSE=""
COMMON_DEP="dev-java/piccolo:0
dev-java/annogen:0
>=dev-java/ant-core-1.6.2
dev-java/saxon:9"
RDEPEND=">=virtual/jre-1.6
${COMMON_DEP}"
DEPEND=">=virtual/jdk-1.6
${COMMON_DEP}"
S="${WORKDIR}/${MY_P}"
JAVA_ANT_REWRITE_CLASSPATH="true"
JAVA_PKG_BSFIX_ALL="no"
EANT_BUILD_TARGET="deploy"
EANT_DOC_TARGET="docs"
EANT_GENTOO_CLASSPATH="piccolo,annogen,ant-core,saxon-9"
EANT_EXTRA_ARGS="-Dpiccolo.classes.notRequired=true -Djam.classes.notRequired=true \
-Dpiccolo_package_name=com.bluecast.xml -Dsaxon9.jar.exists=true"
java_prepare() {
#preserve the self xml-beans jar, which is required for building the package itself
#egg-chicken problem?
mv external/lib/oldxbean.jar "${T}/"
find . -iname '*.jar' -exec rm -v {} +
find external/lib -iname '*.zip' -exec rm -v {} +
mv "${T}/oldxbean.jar" external/lib/
epatch "${FILESDIR}"/${P}-build.xml.patch
epatch "${FILESDIR}"/${P}-piccolo.patch
epatch "${FILESDIR}"/${P}-jam.patch
}
src_install() {
java-pkg_dojar build/lib/xbean*.jar
dodoc NOTICE.txt README.txt
if use doc; then
java-pkg_dojavadoc build/docs/reference
java-pkg_dohtml -r docs
fi
use source && java-pkg_dosrc src/*
}
|