diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-java/easymock |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-java/easymock')
-rw-r--r-- | dev-java/easymock/Manifest | 6 | ||||
-rw-r--r-- | dev-java/easymock/easymock-3.3.1.ebuild | 59 | ||||
-rw-r--r-- | dev-java/easymock/files/3.3.1-no-android.patch | 17 | ||||
-rw-r--r-- | dev-java/easymock/metadata.xml | 11 |
4 files changed, 93 insertions, 0 deletions
diff --git a/dev-java/easymock/Manifest b/dev-java/easymock/Manifest new file mode 100644 index 000000000000..7e48510afecc --- /dev/null +++ b/dev-java/easymock/Manifest @@ -0,0 +1,6 @@ +AUX 3.3.1-no-android.patch 685 SHA256 4b3653e6d39c007fb960cd5773638e60ee1b811b7d8126f1c2b404eb216765f1 SHA512 3ead2f05c122e3e8a3eb1d1748b59c15775fee79e28cf01dba193b8b21aae0039d9608300cbca6e9bdbe291ab15db9f56abe8c2503c6667495f61fccbf3d56ff WHIRLPOOL 203c833b98294753786caf4972762d3781eb5a0aa9073911adb9cd6a6566a5d695e54db417cf1824a4c069258fa54c8fb55f39a9749d4d94096c7dce93f25e29 +DIST easymock-3.3.1.zip 1015625 SHA256 06332d947698e615e00baa5441e54f03423912079d81733dc089e57cae138a36 SHA512 0898276df82a99df10e4c91b5b097b6d579914580995b35274ef9d4e0c874266d54c865f96d008becaa210a6307916f6488d0caa205a85caf62920e939becf46 WHIRLPOOL 61e68261374caa1c7a879c28c329e8f3f6a5f067b57bb3c3eb79405b978544e0f3924b5cbe63cdee35964284d3ea602bb039d68461c73869783cf5e555a2d245 +EBUILD easymock-3.3.1.ebuild 1135 SHA256 a67ee882bbde93a1ed31a7092e454fb11072d399a1ec80a334ad1eb8f532484e SHA512 70ee151dbdc102bf01a1f56191992b078e0ca7870509802f9b6bdb58f27dd6392e2ceaa5c812ccc0c2c77571c3fa596561d6e4d5c0eefc4697282874a0e15a00 WHIRLPOOL f72d4a2299217acdb82c14aca04143b8b43c1d754d171d7980939e470bf1e5e8ca942ace7c14ba93e74d62913762b84b839310c3220a238cf6d9cd4535338c55 +MISC ChangeLog 3447 SHA256 9afdf3ee9ef93cee66eec7ed59f0cb32284871f1450d760a41015f7e36ccc7fc SHA512 b7e701abea45ecd819a1b31d46a349fd7ae5ceece65a49f230dfaaef82592788646936c2e98df252be0ebde235b69972fc26c99f031424aae319dafd7bfa8c0b WHIRLPOOL 5985eb45db9269f09fa62b56e777d63f5813613235ac765cee227c8f2b157e2dca8ca8b1e18a3ffd934fd97949e2e249ee79a750231b5580fa540bf5e242d2e5 +MISC ChangeLog-2015 1415 SHA256 ae8d1d101522e90382e644802f2ad5f0e80fe26ab750794f6cc77094e4529b16 SHA512 2731a0abc447e4ffa58be269a3c167c9b3d8f131abe0c0785902324602a6921f8e4b428143adedc4e36b29f2b2cd71f5569ee84ebe381866399221400813a8ef WHIRLPOOL c674fe37cdc8e362399e6cf394f527ae023417b1656b646a964d5c6c59735d0e4e729f7d2c1d7276f738b7bf479aeceb4c7e23614c6523d1161a2daf7cc7b887 +MISC metadata.xml 314 SHA256 7a42a3305e9616f5158b4359fa492af3cd5ed5cea46ae022e8be310a68755bbd SHA512 a9461432a42e98c60f9b88b92e9a2a170f7c7263178c884c67463f204dc315b689b6a02fc713c8313583536ef5554bcdbbac7eb32ba98b52ccded6ed1913581f WHIRLPOOL 5573cd87606a823e8a549de6839abcca1994b53ee849d073a065ec87860639e0006f16c377607a33095528e69ca89186341574777a24c2d9074bfae2f14dbb39 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..ccb754db050d --- /dev/null +++ b/dev-java/easymock/easymock-3.3.1.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +JAVA_PKG_IUSE="doc examples source" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="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 ~arm64 ppc64 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.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..144ebe414735 --- /dev/null +++ b/dev-java/easymock/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>java@gentoo.org</email> + <name>Java</name> + </maintainer> + <upstream> + <remote-id type="sourceforge">easymock</remote-id> + </upstream> +</pkgmetadata> |