summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalph Sennhauser <sera@gentoo.org>2012-07-01 08:17:12 +0000
committerRalph Sennhauser <sera@gentoo.org>2012-07-01 08:17:12 +0000
commitc3b8d25b7cd30e2bab1f91aff0b53c514fd83edf (patch)
tree2a8d4c9db932cb913d5c8bfef8198428ecccaf67 /dev-java
parentFix GTK3 dependency (diff)
downloadgentoo-2-c3b8d25b7cd30e2bab1f91aff0b53c514fd83edf.tar.gz
gentoo-2-c3b8d25b7cd30e2bab1f91aff0b53c514fd83edf.tar.bz2
gentoo-2-c3b8d25b7cd30e2bab1f91aff0b53c514fd83edf.zip
Add missing dep on xml-commons-external. #424293
Bump servlet-api dep to 2.5. (Portage version: 2.1.10.65/cvs/Linux x86_64)
Diffstat (limited to 'dev-java')
-rw-r--r--dev-java/xmlc/ChangeLog10
-rw-r--r--dev-java/xmlc/xmlc-2.3.1-r1.ebuild69
2 files changed, 77 insertions, 2 deletions
diff --git a/dev-java/xmlc/ChangeLog b/dev-java/xmlc/ChangeLog
index 534034420a8d..b8a2efa0786f 100644
--- a/dev-java/xmlc/ChangeLog
+++ b/dev-java/xmlc/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-java/xmlc
-# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/xmlc/ChangeLog,v 1.18 2010/05/24 15:04:53 caster Exp $
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/xmlc/ChangeLog,v 1.19 2012/07/01 08:17:12 sera Exp $
+
+*xmlc-2.3.1-r1 (01 Jul 2012)
+
+ 01 Jul 2012; Ralph Sennhauser <sera@gentoo.org> +xmlc-2.3.1-r1.ebuild:
+ Add missing dep on xml-commons-external. #424293
+ Bump servlet-api dep to 2.5.
24 May 2010; Vlastimil Babka <caster@gentoo.org> -xmlc-2.3.ebuild,
-files/xmlc-2.3-build.xml.patch:
diff --git a/dev-java/xmlc/xmlc-2.3.1-r1.ebuild b/dev-java/xmlc/xmlc-2.3.1-r1.ebuild
new file mode 100644
index 000000000000..cf27cb405e88
--- /dev/null
+++ b/dev-java/xmlc/xmlc-2.3.1-r1.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/xmlc/xmlc-2.3.1-r1.ebuild,v 1.1 2012/07/01 08:17:12 sera Exp $
+
+EAPI="4"
+
+JAVA_PKG_IUSE="doc"
+
+inherit java-pkg-2 java-ant-2
+
+MY_P="${PN}-src-${PV}"
+DESCRIPTION="Open Source Java/XML Presentation Compiler"
+HOMEPAGE="http://xmlc.objectweb.org/"
+SRC_URI="http://download.forge.objectweb.org/${PN}/${MY_P}.zip
+ http://download.us.forge.objectweb.org/${PN}/${MY_P}.zip"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+COMMON_DEP="
+ dev-java/ant-core:0
+ dev-java/asm:3
+ dev-java/gnu-regexp:1
+ dev-java/log4j:0
+ dev-java/nekohtml:0
+ dev-java/xerces:2
+ dev-java/xml-commons-external:1.4
+ dev-java/xml-commons-resolver:0
+ java-virtuals/servlet-api:2.5"
+RDEPEND=">=virtual/jre-1.4
+ ${COMMON_DEP}"
+DEPEND=">=virtual/jdk-1.4
+ app-arch/unzip
+ ${COMMON_DEP}"
+
+S="${WORKDIR}/${MY_P}/"
+
+java_prepare() {
+ find -name '*.jar' -exec rm -v {} + || die
+
+ # get rid of jarjar, and add ant.jar to the taskdef module's classpath
+ epatch "${FILESDIR}/${P}-build.xml.patch"
+}
+
+JAVA_ANT_REWRITE_CLASSPATH="yes"
+
+EANT_BUILD_TARGET="all-libs"
+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"
+
+src_install() {
+ # the rest of jars are included in all-runtime
+ java-pkg_dojar release/lib/{xmlc-all-runtime,xmlc-taskdef}.jar
+ java-pkg_register-ant-task
+
+ newdoc xmlc/modules/xmlc/README.XMLC README || die
+ dodoc xmlc/modules/xmlc/ChangeLog || die
+ dohtml release/release-notes/xmlc-${PV//./-}-release-note.html \
+ xmlc/bugs/bugs.html || die
+
+ # move the generated documentation around
+ if use doc; then
+ mv ${PN}/modules/taskdef/doc ${PN}/modules/${PN}/doc/taskdef || die
+ mv ${PN}/modules/wireless/doc ${PN}/modules/${PN}/doc/wireless || die
+ mv ${PN}/modules/xhtml/doc ${PN}/modules/${PN}/doc/xhtml || die
+ java-pkg_dohtml -r ${PN}/modules/xmlc/doc/* || die "Failed to install documentation"
+ fi
+}