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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Sun Sep 2 00:53:04 2012 UTC (2 years, 1 month ago) by xmw
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +2 -2 lines
ppc stable (bug 424293).

(Portage version: 2.1.11.12/cvs/Linux x86_64)

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

  ViewVC Help
Powered by ViewVC 1.1.20