summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Brinkmann <luckyduck@gentoo.org>2005-01-04 21:34:43 +0000
committerJan Brinkmann <luckyduck@gentoo.org>2005-01-04 21:34:43 +0000
commitd859391a091fad7dc5b0129629670739a94cc07c (patch)
treea5e53384a82763ae944cfea90b18e93a0f5274f9 /dev-java
parentfix inherit (Manifest recommit) (diff)
downloadgentoo-2-d859391a091fad7dc5b0129629670739a94cc07c.tar.gz
gentoo-2-d859391a091fad7dc5b0129629670739a94cc07c.tar.bz2
gentoo-2-d859391a091fad7dc5b0129629670739a94cc07c.zip
Initial import.Needed as a indirect dependency of #63290.
Diffstat (limited to 'dev-java')
-rw-r--r--dev-java/jmock/ChangeLog11
-rw-r--r--dev-java/jmock/Manifest4
-rw-r--r--dev-java/jmock/files/digest-jmock-1.0.11
-rw-r--r--dev-java/jmock/files/jmock-1.0.1-buildxml.patch36
-rw-r--r--dev-java/jmock/jmock-1.0.1.ebuild53
-rw-r--r--dev-java/jmock/metadata.xml5
6 files changed, 110 insertions, 0 deletions
diff --git a/dev-java/jmock/ChangeLog b/dev-java/jmock/ChangeLog
new file mode 100644
index 000000000000..a785637ab785
--- /dev/null
+++ b/dev-java/jmock/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for dev-java/jmock
+# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/jmock/ChangeLog,v 1.1 2005/01/04 21:34:43 luckyduck Exp $
+
+*jmock-1.0.1 (04 Jan 2005)
+
+ 04 Jan 2005; Jan Brinkmann <luckyduck@gentoo.org> +metadata.xml,
+ +files/jmock-1.0.1-buildxml.patch, +jmock-1.0.1.ebuild:
+ Initial import. Ebuild submitted by me. Needed as a indirect dependency of
+ #63290.
+
diff --git a/dev-java/jmock/Manifest b/dev-java/jmock/Manifest
new file mode 100644
index 000000000000..b724cd6a26d7
--- /dev/null
+++ b/dev-java/jmock/Manifest
@@ -0,0 +1,4 @@
+MD5 a6ec7d7724fbd068ffb39b5be56134ed metadata.xml 157
+MD5 f3cb924f3379e619702a7465c76d5d4a jmock-1.0.1.ebuild 1189
+MD5 0fd831ae4b7efbc9184522cf832aeb2f files/digest-jmock-1.0.1 64
+MD5 b69ef29942edee112378f7c04e0a0df1 files/jmock-1.0.1-buildxml.patch 1816
diff --git a/dev-java/jmock/files/digest-jmock-1.0.1 b/dev-java/jmock/files/digest-jmock-1.0.1
new file mode 100644
index 000000000000..5fa19cce4674
--- /dev/null
+++ b/dev-java/jmock/files/digest-jmock-1.0.1
@@ -0,0 +1 @@
+MD5 558ae9342df12aa980852e65221dcd95 jmock-1.0.1-src.jar 605139
diff --git a/dev-java/jmock/files/jmock-1.0.1-buildxml.patch b/dev-java/jmock/files/jmock-1.0.1-buildxml.patch
new file mode 100644
index 000000000000..6c479927d418
--- /dev/null
+++ b/dev-java/jmock/files/jmock-1.0.1-buildxml.patch
@@ -0,0 +1,36 @@
+--- build.xml.orig 2005-01-04 21:58:02.972060664 +0100
++++ build.xml 2005-01-04 22:01:24.227465192 +0100
+@@ -22,13 +22,13 @@
+ <property name="core.src.dir" value="${core.dir}/src"/>
+ <property name="core.atest.dir" value="${core.dir}/acceptance-tests"/>
+ <property name="core.build.dir" value="build/core"/>
+- <property name="core.jar" value="${build.dist.bin.dir}/jmock-${version.archive}.jar"/>
++ <property name="core.jar" value="${build.dist.bin.dir}/jmock.jar"/>
+
+ <property name="cglib.dir" value="${extensions.dir}/cglib"/>
+ <property name="cglib.src.dir" value="${cglib.dir}/src"/>
+ <property name="cglib.atest.dir" value="${cglib.dir}/acceptance-tests"/>
+ <property name="cglib.build.dir" value="build/cglib"/>
+- <property name="cglib.jar" value="${build.dist.bin.dir}/jmock-cglib-${version.archive}.jar"/>
++ <property name="cglib.jar" value="${build.dist.bin.dir}/jmock-cglib.jar"/>
+
+ <property name="src.jar" value="${build.dist.src.dir}/jmock-${version.archive}-src.jar"/>
+ <property name="javadoc.jar" value="${build.dist.src.dir}/jmock-${version.archive}-javadoc.jar"/>
+@@ -107,7 +107,7 @@
+ </junit>
+ </target>
+
+- <target name="core.jar" depends="core.test.unit">
++ <target name="core.jar" depends="core.compile">
+ <mkdir dir="${build.dist.bin.dir}"/>
+ <jar basedir="${core.build.dir}" destfile="${core.jar}" excludes="test/**" index="true"/>
+ </target>
+@@ -168,7 +168,7 @@
+ </junit>
+ </target>
+
+- <target name="cglib.jar" depends="cglib.test.unit">
++ <target name="cglib.jar" depends="cglib.compile">
+ <mkdir dir="${build.dist.bin.dir}"/>
+ <jar basedir="${cglib.build.dir}" destfile="${cglib.jar}" excludes="test/**" index="true"/>
+ </target>
diff --git a/dev-java/jmock/jmock-1.0.1.ebuild b/dev-java/jmock/jmock-1.0.1.ebuild
new file mode 100644
index 000000000000..3c606eb56662
--- /dev/null
+++ b/dev-java/jmock/jmock-1.0.1.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/jmock/jmock-1.0.1.ebuild,v 1.1 2005/01/04 21:34:43 luckyduck Exp $
+
+inherit eutils java-pkg
+
+DESCRIPTION="Library for testing Java code using mock objects."
+SRC_URI="http://dist.codehaus.org/${PN}/distributions/${P}-src.jar"
+HOMEPAGE="http://jmock.codehaus.org"
+LICENSE="BSD"
+SLOT="1.0"
+KEYWORDS="~x86 ~amd64"
+IUSE="doc examples jikes"
+DEPEND=">=virtual/jdk-1.4
+ jikes? ( >=dev-java/jikes-1.21 )
+ >=dev-java/ant-core-1.4"
+RDEPEND=">=virtual/jre-1.4
+ >=dev-java/cglib-2"
+
+src_unpack() {
+ jar xf ${DISTDIR}/${A}
+
+ cd ${S}
+ epatch ${FILESDIR}/jmock-1.0.1-buildxml.patch
+
+ cd ${S}/lib
+ rm -f *.jar
+ java-pkg_jar-from cglib-2
+}
+
+src_compile() {
+ local antflags="core.jar cglib.jar"
+ if use doc; then
+ antflags="${antflags} javadoc"
+ fi
+ if use jikes; then
+ antflags="${antflags} -Dbuild.compiler=jikes"
+ fi
+ ant ${antflags} || die "failed to build"
+}
+
+src_install() {
+ java-pkg_dojar lib/*.jar
+ dodoc CHANGELOG VERSION LICENSE.txt
+
+ if use doc; then
+ java-pkg_dohtml -r build/javadoc-${PV}/*
+ fi
+ if use examples; then
+ dodir /usr/share/doc/${PF}/examples
+ cp -r examples/* ${D}/usr/share/doc/${PF}/examples
+ fi
+}
diff --git a/dev-java/jmock/metadata.xml b/dev-java/jmock/metadata.xml
new file mode 100644
index 000000000000..838c00a4a448
--- /dev/null
+++ b/dev-java/jmock/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>