diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-java/easymock/easymock-3.3.1.ebuild | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-java/easymock/easymock-3.3.1.ebuild')
-rw-r--r-- | dev-java/easymock/easymock-3.3.1.ebuild | 59 |
1 files changed, 59 insertions, 0 deletions
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 +} |