diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /dev-java/easymock | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'dev-java/easymock')
-rw-r--r-- | dev-java/easymock/Manifest | 2 | ||||
-rw-r--r-- | dev-java/easymock/easymock-3.2-r1.ebuild | 56 | ||||
-rw-r--r-- | dev-java/easymock/easymock-3.3.1.ebuild | 60 | ||||
-rw-r--r-- | dev-java/easymock/files/3.2-no-android.patch | 17 | ||||
-rw-r--r-- | dev-java/easymock/files/3.3.1-no-android.patch | 17 | ||||
-rw-r--r-- | dev-java/easymock/metadata.xml | 8 |
6 files changed, 160 insertions, 0 deletions
diff --git a/dev-java/easymock/Manifest b/dev-java/easymock/Manifest new file mode 100644 index 000000000000..ad46f066ffe6 --- /dev/null +++ b/dev-java/easymock/Manifest @@ -0,0 +1,2 @@ +DIST easymock-3.2.zip 970922 SHA256 3ada340522b94d549a887774d42aaea008fb0aabc6f7e649ad6d23399bc7b80c SHA512 472b0f7183f48dcbd60996a78a69f3be0c9c5762856bf827d9a721b3ff03fca2fb68d3baae970a1de3eee0f293d02b3d9dba3c5634575ba395200e67f767ba3b WHIRLPOOL 5bf9dc61bf4716b88d72cbf80553b2629f7e55ffcd00821e74d8fcdb58160d1a494008d75f39a17ef2319c0bb913ae666f7c7e7d45394f6ad69d032d9e125442 +DIST easymock-3.3.1.zip 1015625 SHA256 06332d947698e615e00baa5441e54f03423912079d81733dc089e57cae138a36 SHA512 0898276df82a99df10e4c91b5b097b6d579914580995b35274ef9d4e0c874266d54c865f96d008becaa210a6307916f6488d0caa205a85caf62920e939becf46 WHIRLPOOL 61e68261374caa1c7a879c28c329e8f3f6a5f067b57bb3c3eb79405b978544e0f3924b5cbe63cdee35964284d3ea602bb039d68461c73869783cf5e555a2d245 diff --git a/dev-java/easymock/easymock-3.2-r1.ebuild b/dev-java/easymock/easymock-3.2-r1.ebuild new file mode 100644 index 000000000000..4f1e6c5b48dd --- /dev/null +++ b/dev-java/easymock/easymock-3.2-r1.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +JAVA_PKG_IUSE="doc examples source" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="Provides Mock Objects for interfaces in JUnit tests by generating them on the fly" +HOMEPAGE="http://www.easymock.org/" +SRC_URI="mirror://sourceforge/${PN}/EasyMock/${PV}/${P}.zip" + +LICENSE="|| ( MIT Apache-2.0 )" +SLOT="3.2" +KEYWORDS="amd64 x86" +IUSE="" + +CDEPEND="dev-java/junit:4 + dev-java/objenesis:0 + dev-java/cglib:3" + +DEPEND=">=virtual/jdk-1.6 + app-arch/unzip + ${CDEPEND}" + +RDEPEND=">=virtual/jre-1.6 + ${CDEPEND}" + +S="${WORKDIR}/${P}" + +JAVA_GENTOO_CLASSPATH="junit-4,objenesis,cglib-3" +JAVA_SRC_DIR="src" + +src_unpack() { + default + + cd "${S}" || die + unzip ${P}-sources.jar -d src/ || die + + if use examples; then + unzip ${P}-samples.jar -d examples/ || die + fi +} + +java_prepare() { + epatch "${FILESDIR}"/${PV}-no-android.patch + rm src/org/easymock/internal/AndroidClassProxyFactory.java || die +} + +src_install() { + java-pkg-simple_src_install + + use examples && java-pkg_doexamples examples +} diff --git a/dev-java/easymock/easymock-3.3.1.ebuild b/dev-java/easymock/easymock-3.3.1.ebuild new file mode 100644 index 000000000000..9625ed75b284 --- /dev/null +++ b/dev-java/easymock/easymock-3.3.1.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +JAVA_PKG_IUSE="doc examples source" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="Provides Mock Objects for interfaces in JUnit tests by generating them on the fly" +HOMEPAGE="http://www.easymock.org/" +SRC_URI="mirror://sourceforge/${PN}/EasyMock/${PV}/${P}.zip" + +LICENSE="|| ( MIT Apache-2.0 )" +SLOT="3.2" +KEYWORDS="~amd64 ~x86" +IUSE="" + +COMMON_DEPEND=" + dev-java/junit:4 + dev-java/objenesis:0 + dev-java/cglib:3 +" + +DEPEND=">=virtual/jdk-1.6 + app-arch/unzip + ${COMMON_DEPEND}" + +RDEPEND=">=virtual/jre-1.6 + ${COMMON_DEPEND}" + +S="${WORKDIR}/${P}" + +JAVA_GENTOO_CLASSPATH="junit-4,objenesis,cglib-3" +JAVA_SRC_DIR="src" + +src_unpack() { + default + + cd "${S}" || die + unzip ${P}-sources.jar -d src/ || die + + if use examples; then + unzip ${P}-samples.jar -d examples/ || die + fi +} + +java_prepare() { + epatch "${FILESDIR}"/${PV}-no-android.patch + rm src/org/easymock/internal/AndroidClassProxyFactory.java || die +} + +src_install() { + java-pkg-simple_src_install + + if use examples; then + java-pkg_doexamples examples + fi +} diff --git a/dev-java/easymock/files/3.2-no-android.patch b/dev-java/easymock/files/3.2-no-android.patch new file mode 100644 index 000000000000..18c4a00dc45f --- /dev/null +++ b/dev-java/easymock/files/3.2-no-android.patch @@ -0,0 +1,17 @@ +diff --git a/src/org/easymock/internal/MocksControl.java b/src/org/easymock/internal/MocksControl.java +index e709dc4..cd9d5a9 100644 +--- a/src/org/easymock/internal/MocksControl.java ++++ b/src/org/easymock/internal/MocksControl.java +@@ -137,12 +137,6 @@ public class MocksControl implements IMocksControl, IExpectationSetters<Object>, + return cached; + } + +- // ///CLOVER:OFF +- if (AndroidSupport.isAndroid()) { +- return classProxyFactory = new AndroidClassProxyFactory(); +- } +- // ///CLOVER:ON +- + try { + return classProxyFactory = new ClassProxyFactory(); + } catch (final NoClassDefFoundError e) { diff --git a/dev-java/easymock/files/3.3.1-no-android.patch b/dev-java/easymock/files/3.3.1-no-android.patch new file mode 100644 index 000000000000..18c4a00dc45f --- /dev/null +++ b/dev-java/easymock/files/3.3.1-no-android.patch @@ -0,0 +1,17 @@ +diff --git a/src/org/easymock/internal/MocksControl.java b/src/org/easymock/internal/MocksControl.java +index e709dc4..cd9d5a9 100644 +--- a/src/org/easymock/internal/MocksControl.java ++++ b/src/org/easymock/internal/MocksControl.java +@@ -137,12 +137,6 @@ public class MocksControl implements IMocksControl, IExpectationSetters<Object>, + return cached; + } + +- // ///CLOVER:OFF +- if (AndroidSupport.isAndroid()) { +- return classProxyFactory = new AndroidClassProxyFactory(); +- } +- // ///CLOVER:ON +- + try { + return classProxyFactory = new ClassProxyFactory(); + } catch (final NoClassDefFoundError e) { diff --git a/dev-java/easymock/metadata.xml b/dev-java/easymock/metadata.xml new file mode 100644 index 000000000000..5a7239683c94 --- /dev/null +++ b/dev-java/easymock/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>java</herd> + <upstream> + <remote-id type="sourceforge">easymock</remote-id> + </upstream> +</pkgmetadata> |