blob: de49d776a3083ab9b3d7b90c434abed7bd834e51 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# 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
MY_PN=${PN/-}
MY_P=${MY_PN}-${PV}
DESCRIPTION="Mock Objects for interfaces in JUnit tests by generating them on the fly"
HOMEPAGE="http://www.easymock.org/"
SRC_URI="mirror://sourceforge/easymock/EasyMock%20Class%20Extension/${PV}/${MY_P}.zip"
LICENSE="|| ( MIT Apache-2.0 )"
SLOT="3.2"
KEYWORDS="amd64 x86"
IUSE=""
CDEPEND="dev-java/easymock:${SLOT}"
DEPEND=">=virtual/jdk-1.5
app-arch/unzip
${CDEPEND}"
RDEPEND=">=virtual/jre-1.5
${CDEPEND}"
S="${WORKDIR}/${MY_PN}-${PV}"
JAVA_GENTOO_CLASSPATH="easymock-${SLOT}"
JAVA_SRC_DIR="src"
src_unpack() {
default
cd "${S}" || die
unzip ${MY_P}-sources.jar -d src/ || die
if use examples; then
unzip ${MY_P}-samples.jar -d examples/ || die
fi
}
src_install() {
java-pkg-simple_src_install
use examples && java-pkg_doexamples examples
}
|