summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiroslav Šulc <fordfrog@gentoo.org>2008-02-21 11:37:42 +0000
committerMiroslav Šulc <fordfrog@gentoo.org>2008-02-21 11:37:42 +0000
commitd1a45a0fd368232338e2a5ba175ea0aaf8b5a1e6 (patch)
treec3e54693551b345dd99641f195e480686e74a345 /dev-java/proguard
parentversion bump (diff)
downloadhistorical-d1a45a0fd368232338e2a5ba175ea0aaf8b5a1e6.tar.gz
historical-d1a45a0fd368232338e2a5ba175ea0aaf8b5a1e6.tar.bz2
historical-d1a45a0fd368232338e2a5ba175ea0aaf8b5a1e6.zip
Version bump
Package-Manager: portage-2.1.4.4
Diffstat (limited to 'dev-java/proguard')
-rw-r--r--dev-java/proguard/ChangeLog9
-rw-r--r--dev-java/proguard/Manifest4
-rw-r--r--dev-java/proguard/proguard-4.1.ebuild93
3 files changed, 103 insertions, 3 deletions
diff --git a/dev-java/proguard/ChangeLog b/dev-java/proguard/ChangeLog
index d4e2c5a2e0e9..5a07cd0cb19b 100644
--- a/dev-java/proguard/ChangeLog
+++ b/dev-java/proguard/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-java/proguard
-# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/proguard/ChangeLog,v 1.10 2007/11/13 00:07:28 betelgeuse Exp $
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/proguard/ChangeLog,v 1.11 2008/02/21 11:37:42 fordfrog Exp $
+
+*proguard-4.1 (21 Feb 2008)
+
+ 21 Feb 2008; Miroslav Šulc <fordfrog@gentoo.org> +proguard-4.1.ebuild:
+ Version bump
12 Nov 2007; Petteri Räty <betelgeuse@gentoo.org> -proguard-3.8.ebuild,
-proguard-3.9.ebuild:
diff --git a/dev-java/proguard/Manifest b/dev-java/proguard/Manifest
index 60713ed4473f..108bbae9bbdc 100644
--- a/dev-java/proguard/Manifest
+++ b/dev-java/proguard/Manifest
@@ -1,5 +1,7 @@
AUX build.xml 1018 RMD160 2d99298bd2b737a33601984baaaafc230546e469 SHA1 005dcd093e0dc57f0d94b5480b6f5effc1650be4 SHA256 2ff78260db48aba082012630cb496cf4060dcdf88dde7e8dd2be5bf4cd8da242
DIST proguard3.10.tar.gz 1263018 RMD160 219c40c4eafc337cfdfce4c8d81f435845d0d350 SHA1 255768b05d9a5c5cee698482f18dce7ff5ff1f96 SHA256 c330c82431be38df6e5393694015b94bf81181f81064d929e5713cb0b75060ad
+DIST proguard4.1.tar.gz 1651195 RMD160 a56916316b6811dec3e29aab1c4a799e4052dbf6 SHA1 860201ceb4f23136ef7546353a0b3e514996e224 SHA256 048af8aa942f63718f1f1e6473caa7af69f6fe05b9ba9442df928efe0f715ec8
EBUILD proguard-3.10.ebuild 1423 RMD160 13748a159c97a05147bbc52cbce877d2a1c0b3c9 SHA1 2f557c005937b8fa7387103d282ac8381949d213 SHA256 235f5a034d2b1eb0c31f585432f38055d82a99afb42f9f6aa3b1350cb71172b1
-MISC ChangeLog 1466 RMD160 fc74ef35cefd118fe9a0b637b57cc33fae9f7bba SHA1 6ab4cda1812ddb99b7ddf31af048e16b4fbd0ef2 SHA256 272e3ce84da91f57dd75357105fa27dc1e601f7cee5551f5b3e47320f4d927b8
+EBUILD proguard-4.1.ebuild 3191 RMD160 4a4062eff8b21d57fd7627cd26d954bf754b6be7 SHA1 66e3016fc7182befdea57b5b84e4cca5b6536b30 SHA256 373b7440dcc108420aad4139bf0dfa31302ec81d050bd3c3e15b636e1c1f55ea
+MISC ChangeLog 1583 RMD160 c3aeddaf17b151f603dca3f3b56699330fceb89d SHA1 d665624b3c11ca59dfcb275a88caf701cd3b1a48 SHA256 9f9814585651517d10ac6aa7349da6e36c58a1c2fcaae9174701b1b692d9dc15
MISC metadata.xml 158 RMD160 94cf6dcaf672d8ae3f8958288e448ab2d7da1c80 SHA1 023da9fae1586e478d196e34edf238b7747bb84f SHA256 1432f3cd35ba44f6867c38d841ce078e018172e75cc47bad2c59aa8336c48fc8
diff --git a/dev-java/proguard/proguard-4.1.ebuild b/dev-java/proguard/proguard-4.1.ebuild
new file mode 100644
index 000000000000..585fe9266aab
--- /dev/null
+++ b/dev-java/proguard/proguard-4.1.ebuild
@@ -0,0 +1,93 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/proguard/proguard-4.1.ebuild,v 1.1 2008/02/21 11:37:42 fordfrog Exp $
+
+JAVA_PKG_IUSE="doc source"
+inherit java-pkg-2 java-ant-2
+
+DESCRIPTION="Free Java class file shrinker, optimizer, and obfuscator."
+HOMEPAGE="http://proguard.sourceforge.net/"
+MY_P=${P/-/}
+MY_P=${MY_P/_/}
+SRC_URI="mirror://sourceforge/proguard/${MY_P}.tar.gz"
+
+LICENSE="GPL-2-with-linking-exception"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="examples j2me"
+
+DEPEND=">=virtual/jdk-1.4
+ j2me? ( dev-java/sun-j2me-bin )"
+RDEPEND=">=virtual/jre-1.4
+ j2me? ( dev-java/sun-j2me-bin )"
+
+S=${WORKDIR}/${MY_P}
+
+src_unpack() {
+ unpack ${A}
+ find "${S}" -name "*.jar" | xargs rm -v
+}
+
+src_compile() {
+ # create jars
+ mkdir dist
+
+ einfo "Compiling ${PN}.jar"
+ mkdir -p build/proguard/classes
+ ejavac -sourcepath src -d build/proguard/classes src/proguard/ProGuard.java || die "Cannot compile 'proguard'"
+ jar -cf "${S}"/dist/${PN}.jar -C build/proguard/classes proguard || die "Cannot create ${PN}.jar"
+
+ einfo "Compiling ${PN}gui.jar"
+ mkdir -p build/proguardgui/classes
+ ejavac -sourcepath src -d build/proguardgui/classes src/proguard/gui/ProGuardGUI.java || "Cannot compile 'proguardgui'"
+ jar -cf "${S}"/dist/${PN}gui.jar -C build/proguardgui/classes proguard || die "Cannot create ${PN}gui.jar"
+
+ einfo "Compiling retrace.jar"
+ mkdir -p build/retrace/classes
+ ejavac -sourcepath src -d build/retrace/classes src/proguard/retrace/ReTrace.java || die "Cannot compile 'retrace'"
+ jar -cf "${S}"/dist/retrace.jar -C build/retrace/classes proguard || die "Cannot create retrace.jar"
+
+ einfo "Compiling ${PN}-ant.jar"
+ mkdir -p build/ant/classes
+ ejavac -sourcepath src -classpath $(java-pkg_getjars --build-only ant-core) \
+ -d build/ant/classes src/proguard/ant/ProGuardTask.java || die "Cannot compile 'proguard-ant'"
+ jar -cf "${S}"/dist/${PN}-ant.jar -C build/ant/classes proguard || die "Cannot create ${PN}-ant.jar"
+
+ if use j2me ; then
+ einfo "Compiling ${PN}-wtk.jar"
+ mkdir -p build/wtk/classes
+ ejavac -sourcepath src -classpath $(java-pkg_getjars sun-j2me-bin) \
+ -d build/wtk/classes src/proguard/wtk/ProGuardObfuscator.java || die "Cannot compile 'proguard-wtk'"
+ jar -cf "${S}"/dist/${PN}-wtk.jar -C build/wtk/classes proguard || die "Cannot create ${PN}-wtk.jar"
+ fi
+
+ # generate javadoc
+ if use doc ; then
+ mkdir javadoc
+ local cp=$(java-pkg_getjars --build-only ant-core)
+ use j2me && cp="${cp}:$(java-pkg_getjars sun-j2me-bin)"
+ javadoc -d javadoc -sourcepath src -classpath $${cp} -subpackages proguard || die "Cannot compile javadoc"
+ fi
+}
+
+src_install() {
+ java-pkg_dojar dist/*
+ java-pkg_dolauncher ${PN} --main proguard.ProGuard
+ java-pkg_dolauncher ${PN}gui --main proguard.gui.ProGuardGUI
+ java-pkg_dolauncher ${PN}_retrace --main proguard.retrace.ReTrace
+ java-pkg_register-ant-task
+
+ if use doc; then
+ dohtml -r docs/*
+ java-pkg_dojavadoc javadoc
+ fi
+
+ if use examples; then
+ dohtml -r examples
+ fi
+}
+
+pkg_postinst() {
+ elog "Please see http://proguard.sourceforge.net/GPL_exception.html"
+ elog "for linking exception information about ${PN}"
+}