summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVlastimil Babka <caster@gentoo.org>2007-05-26 19:09:41 +0000
committerVlastimil Babka <caster@gentoo.org>2007-05-26 19:09:41 +0000
commit19c9f035b84ba7c4f9c897625f9cecc14e4b10a6 (patch)
treec6d4b5af1be40d3c155de6c67ed5d2e9f586b998 /dev-java
parentNew package for serializer.jar from xalan, now used by both xalan and xerces ... (diff)
downloadgentoo-2-19c9f035b84ba7c4f9c897625f9cecc14e4b10a6.tar.gz
gentoo-2-19c9f035b84ba7c4f9c897625f9cecc14e4b10a6.tar.bz2
gentoo-2-19c9f035b84ba7c4f9c897625f9cecc14e4b10a6.zip
Revbump to use new external xalan-serializer. Bug #156258.
(Portage version: 2.1.2.8)
Diffstat (limited to 'dev-java')
-rw-r--r--dev-java/xalan/ChangeLog8
-rw-r--r--dev-java/xalan/files/digest-xalan-2.7.0-r4 (renamed from dev-java/xalan/files/digest-xalan-2.7.0-r2)0
-rw-r--r--dev-java/xalan/xalan-2.7.0-r2.ebuild53
-rw-r--r--dev-java/xalan/xalan-2.7.0-r4.ebuild76
4 files changed, 83 insertions, 54 deletions
diff --git a/dev-java/xalan/ChangeLog b/dev-java/xalan/ChangeLog
index 20d4b6e29dba..3a635602c24f 100644
--- a/dev-java/xalan/ChangeLog
+++ b/dev-java/xalan/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-java/xalan
# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/xalan/ChangeLog,v 1.71 2007/05/13 19:51:14 armin76 Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-java/xalan/ChangeLog,v 1.72 2007/05/26 19:09:41 caster Exp $
+
+*xalan-2.7.0-r4 (26 May 2007)
+
+ 26 May 2007; Vlastimil Babka <caster@gentoo.org> -xalan-2.7.0-r2.ebuild,
+ +xalan-2.7.0-r4.ebuild:
+ Revbump to use new external xalan-serializer. Bug #156258.
13 May 2007; Raúl Porcel <armin76@gentoo.org> xalan-2.7.0-r3.ebuild:
x86 stable wrt bug 177567
diff --git a/dev-java/xalan/files/digest-xalan-2.7.0-r2 b/dev-java/xalan/files/digest-xalan-2.7.0-r4
index ac01d5350285..ac01d5350285 100644
--- a/dev-java/xalan/files/digest-xalan-2.7.0-r2
+++ b/dev-java/xalan/files/digest-xalan-2.7.0-r4
diff --git a/dev-java/xalan/xalan-2.7.0-r2.ebuild b/dev-java/xalan/xalan-2.7.0-r2.ebuild
deleted file mode 100644
index 98a083e7a761..000000000000
--- a/dev-java/xalan/xalan-2.7.0-r2.ebuild
+++ /dev/null
@@ -1,53 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/xalan/xalan-2.7.0-r2.ebuild,v 1.13 2007/05/08 13:32:34 caster Exp $
-
-inherit java-pkg-2 java-ant-2 eutils versionator
-
-MY_PN="${PN}-j"
-MY_PV="$(replace_all_version_separators _)"
-MY_P="${MY_PN}_${MY_PV}"
-DESCRIPTION="XSLT processor"
-HOMEPAGE="http://xml.apache.org/xalan-j/index.html"
-SRC_URI="mirror://apache/xml/${MY_PN}/source/${MY_P}-src.tar.gz"
-LICENSE="Apache-1.1"
-SLOT="0"
-KEYWORDS="amd64 ~ia64 ppc ppc64 x86 ~x86-fbsd"
-IUSE="doc source"
-COMMON_DEP="
- dev-java/javacup
- dev-java/bcel
- =dev-java/jakarta-regexp-1.3*
- >=dev-java/xerces-2.7
- =dev-java/xml-commons-external-1.3*"
-RDEPEND=">=virtual/jre-1.4
- ${COMMON_DEP}"
-DEPEND=">=virtual/jdk-1.4
- >=dev-java/ant-core-1.5.2
- source? ( app-arch/zip )
- ${COMMON_DEP}"
-
-S="${WORKDIR}/${MY_P}"
-
-src_unpack() {
- unpack ${A}
- cd ${S}/lib
- rm -f *.jar
- java-pkg_jar-from xml-commons-external-1.3 xml-apis.jar
- java-pkg_jar-from xerces-2 xercesImpl.jar
- java-pkg_jar-from javacup javacup.jar java_cup.jar
- java-pkg_jar-from javacup javacup.jar runtime.jar
- java-pkg_jar-from bcel bcel.jar BCEL.jar
- java-pkg_jar-from jakarta-regexp-1.3 jakarta-regexp.jar regexp.jar
-}
-
-src_compile() {
- eant jar $(use_doc javadocs -Dbuild.apidocs=build/docs/api)
-}
-
-src_install() {
- java-pkg_dojar build/*.jar
- java-pkg_dolauncher ${PN} --main org.apache.xalan.xslt.Process
- use doc && java-pkg_dohtml -r build/docs/*
- use source && java-pkg_dosrc src/*
-}
diff --git a/dev-java/xalan/xalan-2.7.0-r4.ebuild b/dev-java/xalan/xalan-2.7.0-r4.ebuild
new file mode 100644
index 000000000000..01ca4cb0836f
--- /dev/null
+++ b/dev-java/xalan/xalan-2.7.0-r4.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/xalan/xalan-2.7.0-r4.ebuild,v 1.1 2007/05/26 19:09:41 caster Exp $
+
+JAVA_PKG_IUSE="doc source"
+
+inherit java-pkg-2 java-ant-2 eutils versionator
+
+MY_PN="${PN}-j"
+MY_PV="$(replace_all_version_separators _)"
+MY_P="${MY_PN}_${MY_PV}"
+DESCRIPTION="Apache's XSLT processor for transforming XML documents into HTML, text, or other XML document types."
+HOMEPAGE="http://xml.apache.org/xalan-j/index.html"
+SRC_URI="mirror://apache/xml/${MY_PN}/source/${MY_P}-src.tar.gz"
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~x86 ~x86-fbsd"
+IUSE="doc source"
+COMMON_DEP="
+ dev-java/javacup
+ dev-java/bcel
+ =dev-java/jakarta-regexp-1.3*
+ >=dev-java/xerces-2.7.1
+ =dev-java/xml-commons-external-1.3*
+ ~dev-java/xalan-serializer-${PV}"
+RDEPEND=">=virtual/jre-1.4
+ ${COMMON_DEP}"
+DEPEND=">=virtual/jdk-1.4
+ ${COMMON_DEP}"
+
+S="${WORKDIR}/${MY_P}"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ # disable building of serializer.jar
+ sed -i -e 's/depends="prepare,serializer.jar"/depends="prepare"/' \
+ build.xml || die "sed build.xml failed"
+
+ # remove bundled jars
+ rm -f lib/*.jar tools/*.jar
+ cd lib
+ java-pkg_jar-from xml-commons-external-1.3 xml-apis.jar
+ java-pkg_jar-from xerces-2 xercesImpl.jar
+ java-pkg_jar-from javacup javacup.jar java_cup.jar
+ java-pkg_jar-from javacup javacup.jar runtime.jar
+ java-pkg_jar-from bcel bcel.jar BCEL.jar
+ java-pkg_jar-from jakarta-regexp-1.3 jakarta-regexp.jar regexp.jar
+
+ cd "${S}"
+ mkdir build && cd build
+ java-pkg_jar-from xalan-serializer serializer.jar
+}
+
+# When version bumping Xalan make sure that the installed jar
+# does not bunled .class files from dependencies
+src_compile() {
+ eant jar $(use_doc javadocs -Dbuild.apidocs=build/docs/api) \
+ -Dxsltc.bcel_jar.not_needed=true \
+ -Dxsltc.runtime_jar.not_needed=true \
+ -Dxsltc.regexp_jar.not_needed=true
+}
+
+src_install() {
+ java-pkg_dojar build/${PN}.jar
+ # installs symlinks to the file in /usr/share/xalan-serializer
+ java-pkg_dojar build/serializer.jar
+ # and records it to package.env as if it belongs to this one's
+ # classpath, for maximum possible backward compatibility
+ java-pkg_regjar $(java-pkg_getjar xalan-serializer serializer.jar)
+
+ java-pkg_dolauncher ${PN} --main org.apache.xalan.xslt.Process
+ use doc && java-pkg_dojavadoc build/docs/api
+ use source && java-pkg_dosrc src/org
+}