summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Brinkmann <luckyduck@gentoo.org>2005-01-22 13:01:24 +0000
committerJan Brinkmann <luckyduck@gentoo.org>2005-01-22 13:01:24 +0000
commitdbbe4f118efa4733c33034e828cbfeeb10670afb (patch)
tree166826a201cff88dfa25428a27a371f3c906f487 /dev-java/xmlunit
parentStable on alpha. (diff)
downloadgentoo-2-dbbe4f118efa4733c33034e828cbfeeb10670afb.tar.gz
gentoo-2-dbbe4f118efa4733c33034e828cbfeeb10670afb.tar.bz2
gentoo-2-dbbe4f118efa4733c33034e828cbfeeb10670afb.zip
Initial import. Dependency of various new dev-java packages. fixes #75486.
Diffstat (limited to 'dev-java/xmlunit')
-rw-r--r--dev-java/xmlunit/ChangeLog10
-rw-r--r--dev-java/xmlunit/Manifest3
-rw-r--r--dev-java/xmlunit/files/digest-xmlunit-1.01
-rw-r--r--dev-java/xmlunit/files/xmlunit-1.0-gentoo.patch31
-rw-r--r--dev-java/xmlunit/metadata.xml5
-rw-r--r--dev-java/xmlunit/xmlunit-1.0.ebuild54
6 files changed, 104 insertions, 0 deletions
diff --git a/dev-java/xmlunit/ChangeLog b/dev-java/xmlunit/ChangeLog
new file mode 100644
index 000000000000..e8c32a01b3c0
--- /dev/null
+++ b/dev-java/xmlunit/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for dev-java/xmlunit
+# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/xmlunit/ChangeLog,v 1.1 2005/01/22 13:01:24 luckyduck Exp $
+
+*xmlunit-1.0 (22 Jan 2005)
+
+ 22 Jan 2005; Jan Brinkmann <luckyduck@gentoo.org> +metadata.xml,
+ +files/xmlunit-1.0-gentoo.patch, +xmlunit-1.0.ebuild:
+ Initial import. Dependency of various new dev-java packages. fixes #75486.
+
diff --git a/dev-java/xmlunit/Manifest b/dev-java/xmlunit/Manifest
new file mode 100644
index 000000000000..3bfc8f47e7f9
--- /dev/null
+++ b/dev-java/xmlunit/Manifest
@@ -0,0 +1,3 @@
+MD5 494c4e84b0f548f07aa0efa4be2222fd xmlunit-1.0.ebuild 1221
+MD5 1b3700ac65082963cb2a5c7f75d9272b files/xmlunit-1.0-gentoo.patch 1056
+MD5 63b8d77876f744dcd11d9af97d0663e5 files/digest-xmlunit-1.0 59
diff --git a/dev-java/xmlunit/files/digest-xmlunit-1.0 b/dev-java/xmlunit/files/digest-xmlunit-1.0
new file mode 100644
index 000000000000..c1001b36b993
--- /dev/null
+++ b/dev-java/xmlunit/files/digest-xmlunit-1.0
@@ -0,0 +1 @@
+MD5 4f03206acc9ed18bc6cc23fd38b4fc82 xmlunit1.0.zip 421131
diff --git a/dev-java/xmlunit/files/xmlunit-1.0-gentoo.patch b/dev-java/xmlunit/files/xmlunit-1.0-gentoo.patch
new file mode 100644
index 000000000000..6589f75de598
--- /dev/null
+++ b/dev-java/xmlunit/files/xmlunit-1.0-gentoo.patch
@@ -0,0 +1,31 @@
+--- build.xml.orig 2004-12-23 19:06:16.941491664 +0100
++++ build.xml 2004-12-23 19:56:58.669078784 +0100
+@@ -25,7 +25,7 @@
+
+ <target name="compile" depends="init">
+ <mkdir dir="${out.dir}"/>
+- <javac srcdir="${src.dir}/java:${test.dir}/java" destdir="${out.dir}" debug="on" target="1.2">
++ <javac srcdir="${src.dir}/java:${test.dir}/java" destdir="${out.dir}" debug="off" source="1.3" target="1.3">
+ <classpath>
+ <pathelement location="${xmlxsl.lib}"/>
+ <pathelement location="${junit.lib}"/>
+@@ -96,7 +96,7 @@
+ </target>
+
+ <target name="jar" depends="clean,setDistVersion,compile">
+- <jar jarfile="${lib.dir}/xmlunit${xmlunit.version}.jar"
++ <jar jarfile="${lib.dir}/xmlunit.jar"
+ basedir="${out.dir}"
+ excludes="**/test_*.class"
+ />
+@@ -138,4 +138,9 @@
+ <delete file="${dist.name}-src.tar" />
+ </target>
+
+-</project>
++ <target name="sourcezip">
++ <zip destfile="xmlunit-src.zip">
++ <zipfileset dir="${src.dir}/java" />
++ </zip>
++ </target>
++ </project>
diff --git a/dev-java/xmlunit/metadata.xml b/dev-java/xmlunit/metadata.xml
new file mode 100644
index 000000000000..7303cef96964
--- /dev/null
+++ b/dev-java/xmlunit/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>java</herd>
+</pkgmetadata>
diff --git a/dev-java/xmlunit/xmlunit-1.0.ebuild b/dev-java/xmlunit/xmlunit-1.0.ebuild
new file mode 100644
index 000000000000..bb8634e5f5e5
--- /dev/null
+++ b/dev-java/xmlunit/xmlunit-1.0.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/xmlunit/xmlunit-1.0.ebuild,v 1.1 2005/01/22 13:01:24 luckyduck Exp $
+
+inherit eutils java-pkg
+
+DESCRIPTION="XMLUnit extends JUnit and NUnit to enable unit testing of XML."
+SRC_URI="mirror://sourceforge/${PN}/${P/-/}.zip"
+HOMEPAGE="http://xmlunit.sourceforge.net/"
+LICENSE="BSD"
+SLOT="1"
+KEYWORDS="~x86 ~amd64"
+IUSE="doc jikes junit source"
+DEPEND=">=virtual/jdk-1.3
+ jikes? ( >=dev-java/jikes-1.21 )
+ source?( app-arch/zip )
+ junit? ( dev-java/junit )
+ >=app-arch/unzip-5.50-r1
+ >=dev-java/ant-1.6"
+RDEPEND=">=virtual/jre-1.3"
+
+S=${WORKDIR}/${PN}
+
+src_unpack() {
+ unpack ${A}
+
+ cd ${S}
+ epatch ${FILESDIR}/${P}-gentoo.patch
+
+ cd ${S}/lib
+ rm -f *.jar
+}
+
+src_compile() {
+ local antflags="jar"
+ use doc && antflags="${antflags} docs"
+ use jikes && antflags="${antflags} -Dbuild.compiler=jikes"
+ use junit && antflags="${antflags} test"
+ use source && antflags="${antflags} sourcezip"
+ ant ${antflags} || die "failed to build"
+}
+
+src_install() {
+ java-pkg_dojar lib/${PN}.jar
+ dodoc LICENSE.txt README.txt
+
+ if use source; then
+ dodir /usr/share/doc/${PF}/source
+ cp ${PN}-src.zip ${D}usr/share/doc/${PF}/source
+ fi
+ if use doc; then
+ java-pkg_dohtml -r doc/*
+ fi
+}