bump proguard
authorFelix Bechstein <f@ub0r.de>
Thu, 5 Feb 2009 07:54:35 +0000 (5 08:54 +0100)
committerFelix Bechstein <f@ub0r.de>
Thu, 5 Feb 2009 07:54:35 +0000 (5 08:54 +0100)
dev-java/proguard/Manifest
dev-java/proguard/proguard-4.3.ebuild [new file with mode: 0644]

index 83a8e33..542968e 100644 (file)
@@ -1,3 +1,5 @@
 AUX build.xml 1018 RMD160 2d99298bd2b737a33601984baaaafc230546e469 SHA1 005dcd093e0dc57f0d94b5480b6f5effc1650be4 SHA256 2ff78260db48aba082012630cb496cf4060dcdf88dde7e8dd2be5bf4cd8da242
 DIST proguard4.2.tar.gz 1667147 RMD160 c38aa1ac68c15c00b741f1bdd3573ca2f82a9819 SHA1 9562852ea382b1d0dbbc294f7b6bec563bad21b6 SHA256 cc3ca45f3fa6ca06edb5a855e72f7870af718f2a2fa60a0725007e88242d6196
+DIST proguard4.3.tar.gz 1779783 RMD160 dbae3144880d2f84f4c730375b83ca2a441e37ed SHA1 9dc4b7f4eba6c3e2cc5df34d3d4394a38f2146e5 SHA256 8d97e7acf5a2c8827fdd622439852efdedd897d2e9786efd92aff51f5bd07d86
 EBUILD proguard-4.2-r1.ebuild 3376 RMD160 4d50e28287e1af1679d283564df0cb00ed591d18 SHA1 2e1150606a11cef7b2a6c98bde4e357c4e32d20c SHA256 be76a34a777dbdeaa7823a7f16a3948d24dea06ea6bd30a821a717f2ff82412c
+EBUILD proguard-4.3.ebuild 3385 RMD160 ccad1e35977c9112d9816ca6068eece87da8857f SHA1 19e0a9bdf0f901c2ad7e12e56b2c6d02f42c99f4 SHA256 d227b2fe4d8aef7ce99816693ba254481f2ba0d1facc4c77c33dcecdcb230398
diff --git a/dev-java/proguard/proguard-4.3.ebuild b/dev-java/proguard/proguard-4.3.ebuild
new file mode 100644 (file)
index 0000000..02a50ac
--- /dev/null
@@ -0,0 +1,97 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/proguard/proguard-4.3.ebuild,v 1.1 2009/02/04 20:08:58 serkan 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-wtk-bin )
+               dev-java/ant-core"
+RDEPEND=">=virtual/jre-1.4
+               j2me? ( dev-java/sun-wtk-bin )
+               dev-java/ant-core"
+
+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 || die "Cannot compile 'proguardgui'"
+       cp src/proguard/gui/*.gif build/proguardgui/classes/proguard/gui/
+       cp src/proguard/gui/*.pro build/proguardgui/classes/proguard/gui/
+       cp src/proguard/gui/*.properties build/proguardgui/classes/proguard/gui/
+       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 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-wtk-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 ant-core)
+               use j2me && cp="${cp}:$(java-pkg_getjars sun-wtk-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
+
+       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}"
+}