blob: a13c8f0e9aa6f11de2a678327502fdacba1593c6 (
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
JAVA_PKG_IUSE="source"
inherit java-pkg-2 java-ant-2
MY_PN="google-gin"
MY_P="${MY_PN}-${PV}"
GIN_COMMIT="d62089f5b6ea33d842ab4646b51583c65a8be36b"
DESCRIPTION="Google Gin (GWT INjection)"
HOMEPAGE="https://gwtplus.github.io/google-gin/"
SRC_URI="https://github.com/gwtplus/google-gin/archive/${GIN_COMMIT}.zip -> ${MY_P}.zip"
RESTRICT="mirror"
SLOT="2.1"
LICENSE="Apache-2.0"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
IUSE=""
CDEPEND="
dev-java/aopalliance:1
dev-java/javax-inject:0
dev-java/gwt:2.8
dev-java/validation-api:1.0
"
RDEPEND="
${CDEPEND}
>=virtual/jre-1.8:*"
DEPEND="
${CDEPEND}
>=virtual/jdk-1.8:*"
BDEPEND="app-arch/unzip"
JAVA_ANT_REWRITE_CLASSPATH="yes"
EANT_BUILD_XML="build.xml"
EANT_GENTOO_CLASSPATH="
aopalliance-1
javax-inject
gwt-2.8
validation-api-1.0
"
S="${WORKDIR}/${MY_PN}-${GIN_COMMIT}"
JAVA_RM_FILES=(
trunk/lib/aopalliance.jar
trunk/lib/javax.inject.jar
lib/aopalliance.jar
lib/javax.inject.jar
)
src_compile() {
local EANT_BUILD_TARGET="compile"
GWT_HOME="${ESYSROOT}/usr/share/gwt-2.8/lib" \
java-pkg-2_src_compile
EANT_BUILD_TARGET="jars"
GWT_HOME="${ESYSROOT}/usr/share/gwt-2.8/lib" \
java-pkg-2_src_compile
}
src_test() {
GWT_HOME="${ESYSROOT}/usr/share/gwt-2.8/lib" \
ant test || die
}
src_install() {
java-pkg_newjar \
out/dist/${P}-src.jar ${PN}-src.jar
java-pkg_newjar \
out/dist/${P}.jar ${PN}.jar
java-pkg_dojar \
lib/*.jar
}
|