/[gentoo-x86]/dev-java/jaxb-tools/jaxb-tools-2.1.2.ebuild
Gentoo

Contents of /dev-java/jaxb-tools/jaxb-tools-2.1.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Sun Aug 10 20:17:05 2014 UTC (5 years, 5 months ago) by slyfox
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +3 -3 lines
QA: drop trailing '.' from DESCRIPTION

(Portage version: 2.2.11_p9/cvs/Linux x86_64, signed Manifest commit with key 611FF3AA)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-java/jaxb-tools/jaxb-tools-2.1.2.ebuild,v 1.6 2009/06/23 15:49:50 betelgeuse Exp $
4
5 EAPI="1"
6 JAVA_PKG_IUSE="source"
7
8 inherit java-pkg-2 java-ant-2
9
10 DESCRIPTION="Reference implementation of the JAXB specification"
11 HOMEPAGE="http://jaxb.dev.java.net/"
12 SRC_URI="https://jaxb.dev.java.net/${PV}/JAXB2_src_20070125.jar"
13
14 LICENSE="CDDL"
15 SLOT="2"
16 KEYWORDS="amd64 ppc x86 ~x86-fbsd"
17 IUSE=""
18
19 COMMON_DEP="dev-java/codemodel:2
20 dev-java/iso-relax:0
21 dev-java/istack-commons-runtime:0
22 dev-java/istack-commons-tools:0
23 dev-java/jaxb:2
24 dev-java/jsr173:0
25 dev-java/msv:0
26 dev-java/relaxng-datatype:0
27 dev-java/rngom:0
28 dev-java/sun-dtdparser:0
29 dev-java/sun-jaf:0
30 dev-java/txw2-runtime:0
31 dev-java/xml-commons-resolver:0
32 dev-java/xsdlib:0
33 dev-java/xsom:0"
34 DEPEND=">=virtual/jdk-1.5
35 ${COMMON_DEP}"
36 RDEPEND=">=virtual/jre-1.5
37 ${COMMON_DEP}"
38
39 S="${WORKDIR}/jaxb-ri-20070125"
40
41 src_unpack() {
42
43 cd "${WORKDIR}"
44 echo "A" | java -jar "${DISTDIR}/${A}" -console > /dev/null || die "unpack failed"
45
46 cd "${S}/lib"
47 rm -v *.jar || die
48
49 java-pkg_jarfrom --build-only ant-core
50 java-pkg_jarfrom codemodel-2
51 java-pkg_jarfrom iso-relax
52 java-pkg_jarfrom istack-commons-runtime
53 java-pkg_jarfrom istack-commons-tools
54 java-pkg_jarfrom jaxb-2
55 java-pkg_jarfrom jsr173
56 java-pkg_jarfrom msv
57 java-pkg_jarfrom relaxng-datatype
58 java-pkg_jarfrom rngom
59 java-pkg_jarfrom sun-dtdparser
60 java-pkg_jarfrom sun-jaf
61 java-pkg_jarfrom txw2-runtime
62 java-pkg_jarfrom xml-commons-resolver
63 java-pkg_jarfrom xsdlib
64 java-pkg_jarfrom xsom
65 ln -s $(java-config --tools) || die
66
67 cd "${S}/src/com/sun/"
68 rm -rf codemodel # in dev-java/codemodel
69 rm -rf xml # in dev-java/jaxb
70
71 cd "${S}"
72 # Their build.xml does not do everything we want
73 cp -v "${FILESDIR}/build.xml-${PV}" build.xml || die "cp failed"
74
75 find src -name '*.java' -exec \
76 sed -i \
77 -e 's,com.sun.org.apache.xml.internal.resolver,org.apache.xml.resolver,g' \
78 {} \;
79
80 }
81
82 src_install() {
83 java-pkg_dojar jaxb-tools.jar
84 java-pkg_dolauncher "xjc-${SLOT}" \
85 --main com.sun.tools.xjc.Driver
86
87 use source && java-pkg_dosrc src/*
88
89 }

  ViewVC Help
Powered by ViewVC 1.1.20