/[gentoo-x86]/dev-java/xmlc/xmlc-2.3.1.ebuild
Gentoo

Contents of /dev-java/xmlc/xmlc-2.3.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Sat May 22 05:16:22 2010 UTC (4 years, 6 months ago) by ken69267
Branch: MAIN
Changes since 1.4: +2 -2 lines
amd64 stable, bug #308239
(Portage version: 2.2_rc67/cvs/Linux x86_64)

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-java/xmlc/xmlc-2.3.1.ebuild,v 1.4 2010/05/13 16:15:17 josejx Exp $
4
5 EAPI="2"
6 JAVA_PKG_IUSE="doc"
7
8 inherit java-pkg-2 java-ant-2
9
10 MY_P="${PN}-src-${PV}"
11 DESCRIPTION="Open Source Java/XML Presentation Compiler"
12 HOMEPAGE="http://xmlc.objectweb.org/"
13 SRC_URI="http://download.forge.objectweb.org/${PN}/${MY_P}.zip
14 http://download.us.forge.objectweb.org/${PN}/${MY_P}.zip"
15
16 COMMON_DEP="dev-java/xerces:2
17 dev-java/gnu-regexp:1
18 java-virtuals/servlet-api:2.3
19 dev-java/log4j:0
20 dev-java/xml-commons-resolver:0
21 dev-java/nekohtml:0
22 dev-java/asm:3
23 dev-java/ant-core:0"
24 RDEPEND=">=virtual/jre-1.4
25 ${COMMON_DEP}"
26 DEPEND=">=virtual/jdk-1.4
27 app-arch/unzip
28 ${COMMON_DEP}"
29 LICENSE="LGPL-2.1"
30 SLOT="0"
31 KEYWORDS="amd64 ppc x86"
32 IUSE=""
33
34 S="${WORKDIR}/${MY_P}/"
35
36 java_prepare() {
37 # get rid of jarjar, and add ant.jar to the taskdef module's classpath
38 epatch "${FILESDIR}/${P}-build.xml.patch"
39
40 cd "${S}"/release/build-lib/ || die
41 rm -v *.jar || die
42
43 java-pkg_jar-from xerces-2,gnu-regexp-1,log4j,nekohtml,asm-3
44 java-pkg_jar-from xml-commons-resolver xml-commons-resolver.jar resolver.jar
45 java-pkg_jar-from --virtual servlet-api-2.3 servlet.jar
46 java-pkg_jar-from ant-core ant.jar
47 }
48
49 EANT_BUILD_TARGET="all-libs"
50
51 src_install() {
52 # the rest of jars are included in all-runtime
53 java-pkg_dojar release/lib/{xmlc-all-runtime,xmlc-taskdef}.jar
54 java-pkg_register-ant-task
55
56 newdoc xmlc/modules/xmlc/README.XMLC README || die
57 dodoc xmlc/modules/xmlc/ChangeLog || die
58 dohtml release/release-notes/xmlc-${PV//./-}-release-note.html \
59 xmlc/bugs/bugs.html || die
60
61 # move the generated documentation around
62 if use doc; then
63 mv ${PN}/modules/taskdef/doc ${PN}/modules/${PN}/doc/taskdef || die
64 mv ${PN}/modules/wireless/doc ${PN}/modules/${PN}/doc/wireless || die
65 mv ${PN}/modules/xhtml/doc ${PN}/modules/${PN}/doc/xhtml || die
66 java-pkg_dohtml -r ${PN}/modules/xmlc/doc/* || die "Failed to install documentation"
67 fi
68 }

  ViewVC Help
Powered by ViewVC 1.1.20