summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVlastimil Babka <caster@gentoo.org>2007-01-07 16:34:52 +0000
committerVlastimil Babka <caster@gentoo.org>2007-01-07 16:34:52 +0000
commit4d9a6f0a6437beb7173f511b8085f78dea096f9b (patch)
treef63d999a896d53ba3181251eb6df8a436184e338 /dev-java/mockobjects/mockobjects-0.09-r2.ebuild
parentfixed the bum cp command, closing bug #160683 (diff)
downloadgentoo-2-4d9a6f0a6437beb7173f511b8085f78dea096f9b.tar.gz
gentoo-2-4d9a6f0a6437beb7173f511b8085f78dea096f9b.tar.bz2
gentoo-2-4d9a6f0a6437beb7173f511b8085f78dea096f9b.zip
Revbump to migrate to gen-2 eclasses and to fix bug #119080 with a patch for compatibility with junit-3.8.2. Updated build.xml patch also disables autodetection of j2ee.jar because it can break and we don't install mockobjects-j2ee.jar anyway.
(Portage version: 2.1.2_rc4-r5)
Diffstat (limited to 'dev-java/mockobjects/mockobjects-0.09-r2.ebuild')
-rw-r--r--dev-java/mockobjects/mockobjects-0.09-r2.ebuild56
1 files changed, 56 insertions, 0 deletions
diff --git a/dev-java/mockobjects/mockobjects-0.09-r2.ebuild b/dev-java/mockobjects/mockobjects-0.09-r2.ebuild
new file mode 100644
index 000000000000..5a629f45fd59
--- /dev/null
+++ b/dev-java/mockobjects/mockobjects-0.09-r2.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/mockobjects/mockobjects-0.09-r2.ebuild,v 1.1 2007/01/07 16:34:52 caster Exp $
+
+inherit eutils java-pkg-2 java-ant-2
+
+DESCRIPTION="Test-first development process for building object-oriented software"
+HOMEPAGE="http://mockobjects.sf.net"
+SRC_URI="http://dev.gentoo.org/~karltk/java/distfiles/mockobjects-java-${PV}-gentoo.tar.bz2"
+
+LICENSE="Apache-1.1"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="doc source test"
+
+CDEPEND="=dev-java/junit-3.8*"
+# limiting to 1.4 jdk because there's some jdk-specific tests in build.xml that end with 1.4
+# also there's bug #119080
+# feel free to fix that and investigate workingness with 1.5+
+DEPEND="${CDEPEND}
+ =virtual/jdk-1.4*
+ !test? ( dev-java/ant-core )
+ test? ( dev-java/ant )
+ source? ( app-arch/zip )"
+RDEPEND="${CDEPEND}
+ >=virtual/jre-1.4"
+
+S="${WORKDIR}/mockobjects-java-${PV}"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch ${FILESDIR}/${P}-gentoo.patch
+ epatch ${FILESDIR}/${P}-junit.patch
+
+ mkdir -p out/jdk/classes
+
+ cd lib
+ java-pkg_jar-from junit
+}
+
+src_test() {
+ # doesn't seem any tests get actually run, why?
+ eant junit
+}
+
+src_install() {
+ java-pkg_newjar out/${PN}-alt-jdk1.4-${PV}.jar ${PN}-alt-jdk1.4.jar
+ java-pkg_newjar out/${PN}-jdk1.4-${PV}.jar ${PN}-jdk1.4.jar
+ java-pkg_newjar out/${PN}-core-${PV}.jar ${PN}-core.jar
+ dodoc doc/README
+
+ use doc && java-pkg_dojavadoc out/doc/javadoc
+ use source && java-pkg_dosrc ${S}/src/*
+}