summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrice Clement <monsieurp@gentoo.org>2015-11-10 15:49:35 +0000
committerPatrice Clement <monsieurp@gentoo.org>2015-11-10 15:50:31 +0000
commit98e40eb024455888029f28413038206403007298 (patch)
treebf0be2cf9e490d459d52b1195d9a514f62302ab6 /dev-java
parentdev-java/jarjar: Keyword for arm. (diff)
downloadgentoo-98e40eb024455888029f28413038206403007298.tar.gz
gentoo-98e40eb024455888029f28413038206403007298.tar.bz2
gentoo-98e40eb024455888029f28413038206403007298.zip
dev-java/jarjar: Housekeeping wrt EAPI 5 compliance.
Package-Manager: portage-2.2.20.1 Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
Diffstat (limited to 'dev-java')
-rw-r--r--dev-java/jarjar/jarjar-1.4.ebuild62
1 files changed, 27 insertions, 35 deletions
diff --git a/dev-java/jarjar/jarjar-1.4.ebuild b/dev-java/jarjar/jarjar-1.4.ebuild
index d193ad2dc35a..81386bc1af1d 100644
--- a/dev-java/jarjar/jarjar-1.4.ebuild
+++ b/dev-java/jarjar/jarjar-1.4.ebuild
@@ -14,56 +14,48 @@ LICENSE="GPL-2"
SLOT="1"
KEYWORDS="amd64 ~arm x86 ppc ppc64 ~amd64-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris"
IUSE=""
+RESTRICT="test"
CDEPEND="
dev-java/asm:4
dev-java/gnu-regexp:1
dev-java/java-getopt:1
dev-java/ant-core:0"
-RDEPEND=">=virtual/jre-1.6
- ${CDEPEND}"
-DEPEND=">=virtual/jdk-1.6
- app-arch/unzip
- ${CDEPEND}"
-RESTRICT='test'
+RDEPEND="
+ ${CDEPEND}
+ >=virtual/jre-1.6"
-# FIXME: tests fail to pass.
-#src_test() {
-# # regenerates this
-# cp -i dist/${P}.jar "${T}" || die
-# cd lib || die
-# java-pkg_jar-from junit
-# cd ..
-# ANT_TASKS="ant-junit" eant test
-# cp "${T}/${P}.jar" dist || die
-#}
+DEPEND="
+ ${CDEPEND}
+ >=virtual/jdk-1.6
+ app-arch/unzip"
-src_unpack() {
- unpack ${A}
-
- cd "${S}" || die
- rm -v src/main/com/tonicsystems/jarjar/JarJarMojo.java || die
+JAVA_ANT_REWRITE_CLASSPATH="yes"
+EANT_BUILD_TARGET="jar-nojarjar"
+EANT_GENTOO_CLASSPATH="
+ asm-4
+ gnu-regexp-1
+ java-getopt-1
+ ant-core
+"
- cd "${S}/lib" || die
- rm -v *.jar || die
+ANT_TASKS="none"
- java-pkg_jar-from asm-4
- java-pkg_jar-from gnu-regexp-1
- java-pkg_jar-from ant-core ant.jar
- java-pkg_jar-from java-getopt-1
-}
+PATCHES=(
+ "${FILESDIR}/0.9-system-jars.patch"
+ "${FILESDIR}/0.9-bootclasspath.patch"
+)
-src_prepare() {
- epatch "${FILESDIR}/0.9-system-jars.patch"
+JAVA_RM_FILES=(
+ src/main/com/tonicsystems/jarjar/JarJarMojo.java
+)
- # bug #191378
- epatch "${FILESDIR}/0.9-bootclasspath.patch"
+java_prepare() {
+ java-pkg_clean
+ epatch "${PATCHES[@]}"
}
-ANT_TASKS="none"
-EANT_BUILD_TARGET="jar-nojarjar"
-
src_install() {
java-pkg_newjar dist/${P}.jar ${PN}.jar
java-pkg_register-ant-task