summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetteri Räty <betelgeuse@gentoo.org>2009-02-11 15:58:31 +0000
committerPetteri Räty <betelgeuse@gentoo.org>2009-02-11 15:58:31 +0000
commitfd39784f885036aef7feb40d4c36ea2753af3ba1 (patch)
tree4b15163d676dea825828fcb6663bcffb0dad956c /dev-java
parentInitial import, bug 250688. (diff)
downloadgentoo-2-fd39784f885036aef7feb40d4c36ea2753af3ba1.tar.gz
gentoo-2-fd39784f885036aef7feb40d4c36ea2753af3ba1.tar.bz2
gentoo-2-fd39784f885036aef7feb40d4c36ea2753af3ba1.zip
Version bump. Fixes bug #257517. Thanks to Mike Weissman <mike@weisso.com> for the work.
(Portage version: 2.2_rc20/cvs/Linux 2.6.28-gentoo-r1 i686)
Diffstat (limited to 'dev-java')
-rw-r--r--dev-java/xstream/ChangeLog10
-rw-r--r--dev-java/xstream/xstream-1.3.1.ebuild85
2 files changed, 93 insertions, 2 deletions
diff --git a/dev-java/xstream/ChangeLog b/dev-java/xstream/ChangeLog
index 58d030a5140c..8dd77ce395c2 100644
--- a/dev-java/xstream/ChangeLog
+++ b/dev-java/xstream/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-java/xstream
-# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/xstream/ChangeLog,v 1.18 2008/10/05 16:53:11 serkan Exp $
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/xstream/ChangeLog,v 1.19 2009/02/11 15:58:31 betelgeuse Exp $
+
+*xstream-1.3.1 (11 Feb 2009)
+
+ 11 Feb 2009; Petteri Räty <betelgeuse@gentoo.org> +xstream-1.3.1.ebuild:
+ Version bump. Fixes bug #257517. Thanks to Mike Weissman <mike@weisso.com>
+ for the work.
*xstream-1.2-r3 (05 Oct 2008)
diff --git a/dev-java/xstream/xstream-1.3.1.ebuild b/dev-java/xstream/xstream-1.3.1.ebuild
new file mode 100644
index 000000000000..4ab86a172b3d
--- /dev/null
+++ b/dev-java/xstream/xstream-1.3.1.ebuild
@@ -0,0 +1,85 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/xstream/xstream-1.3.1.ebuild,v 1.1 2009/02/11 15:58:31 betelgeuse Exp $
+
+EAPI=1
+JAVA_PKG_IUSE="doc java5 source test"
+
+inherit java-pkg-2 java-ant-2
+
+DESCRIPTION="A text-processing Java classes that serialize objects to XML and back again."
+HOMEPAGE="http://xstream.codehaus.org/index.html"
+SRC_URI="http://repository.codehaus.org/com/thoughtworks/${PN}/${PN}-distribution/${PV}/${PN}-distribution-${PV}-src.zip"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~x86"
+
+IUSE=""
+
+COMMON_DEPS="
+ dev-java/cglib:2.1
+ dev-java/dom4j:1
+ dev-java/jdom:1.0
+ dev-java/joda-time:0
+ dev-java/xom:0
+ dev-java/xpp3:0
+ dev-java/xml-commons-external:1.3
+ dev-java/jettison:0
+ java-virtuals/stax-api
+ test? (
+ dev-java/junit:0
+ dev-java/xml-writer:0
+ dev-java/commons-lang:2.1
+ dev-java/jmock:1.0
+ dev-java/jakarta-oro:2.0
+ dev-java/stax:0
+ dev-java/wstx:3.2
+ )"
+
+DEPEND="
+ java5? ( >=virtual/jdk-1.5 )
+ !java5? ( >=virtual/jdk-1.4 )
+ app-arch/unzip
+ ${COMMON_DEPS}"
+RDEPEND="
+ java5? ( >=virtual/jre-1.5 )
+ !java5? ( >=virtual/jre-1.4 )
+ ${COMMON_DEPS}"
+
+S="${WORKDIR}/${P}/${PN}"
+
+JAVA_ANT_REWRITE_CLASSPATH="true"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}/lib"
+ rm -v *.jar || die
+ rm -rf jdk1.3 || die
+}
+
+EANT_GENTOO_CLASSPATH="xpp3,jdom-1.0,xom,dom4j-1,joda-time,cglib-2.1
+xml-commons-external-1.3,jettison,stax-api"
+
+EANT_BUILD_TARGET="benchmark:compile jar"
+EANT_EXTRA_ARGS="-Dversion=${PV}"
+
+src_test(){
+ EANT_GENTOO_CLASSPATH="${EANT_GENTOO_CLASSPATH}
+ junit,jmock-1.0,commons-lang-2.1,xml-writer,wstx-3.2,stax,jakarta-oro-2.0" \
+ ANT_TASKS="ant-junit ant-trax" eant test || die "Tests failed"
+}
+
+src_install(){
+ java-pkg_newjar target/${P}.jar
+ java-pkg_newjar target/${PN}-benchmark-${PV}.jar ${PN}-benchmark.jar
+
+ use doc && java-pkg_dojavadoc target/javadoc
+ use source && java-pkg_dosrc src/java/com
+}
+
+pkg_postinst(){
+ elog "Major Changes from 1.2 See:"
+ elog "http://xstream.codehaus.org/changes.html"
+ elog "to prevent breakage ..."
+}