blob: ac8c6ee0ff753ac1cebc572ee4f3bc20224395c8 (
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
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/jibx/jibx-1.1.5-r1.ebuild,v 1.6 2012/10/19 08:28:54 ottxor Exp $
EAPI="4"
JAVA_PKG_IUSE="doc source"
inherit java-pkg-2 java-ant-2 versionator
MY_PV=$(replace_all_version_separators '_')
DESCRIPTION="JiBX: Binding XML to Java Code"
HOMEPAGE="http://jibx.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${PN}_${MY_PV}.zip"
LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 ppc x86 ~x64-macos ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x64-solaris"
IUSE=""
COMMON_DEP="dev-java/dom4j:1
dev-java/ant-core:0
dev-java/bcel:0
java-virtuals/stax-api
dev-java/xpp3:0"
DEPEND=">=virtual/jdk-1.4
app-arch/unzip
${COMMON_DEP}"
RDEPEND=">=virtual/jre-1.4
${COMMON_DEP}"
S="${WORKDIR}/${PN}"
java_prepare() {
cd lib || die
rm -v *.jar || die
java-pkg_jar-from ant-core,bcel,dom4j-1,stax-api,xpp3
}
EANT_BUILD_XML="build/build.xml"
EANT_BUILD_TARGET="small-jars"
src_install() {
java-pkg_dojar "${S}"/lib/${PN}*.jar
dodoc changes.txt docs/binding.dtd docs/binding.xsd
dohtml readme.html
use doc && {
java-pkg_dohtml -r docs/*
cp -R starter "${ED}/usr/share/doc/${PF}"
cp -R tutorial "${ED}/usr/share/doc/${PF}"
}
use source && java-pkg_dosrc build/src/* build/extras/*
}
|