diff options
author | Serkan Kaba <serkan@gentoo.org> | 2009-02-04 20:08:58 +0000 |
---|---|---|
committer | Serkan Kaba <serkan@gentoo.org> | 2009-02-04 20:08:58 +0000 |
commit | a2b082d8e2ed9ed45d5ad4adfab8f9cba76399e7 (patch) | |
tree | 3bcb31b44d9666b7af3c81edc952e72216c50057 /dev-java | |
parent | Mask sys-apps/sandbox-1.3.3 until bug #256953 is resolved. (diff) | |
download | gentoo-2-a2b082d8e2ed9ed45d5ad4adfab8f9cba76399e7.tar.gz gentoo-2-a2b082d8e2ed9ed45d5ad4adfab8f9cba76399e7.tar.bz2 gentoo-2-a2b082d8e2ed9ed45d5ad4adfab8f9cba76399e7.zip |
Version bump. Add missing dependency on ant-core.
(Portage version: 2.2_rc23/cvs/Linux x86_64)
Diffstat (limited to 'dev-java')
-rw-r--r-- | dev-java/proguard/ChangeLog | 9 | ||||
-rw-r--r-- | dev-java/proguard/proguard-4.3.ebuild | 97 |
2 files changed, 104 insertions, 2 deletions
diff --git a/dev-java/proguard/ChangeLog b/dev-java/proguard/ChangeLog index 2b22e2baf467..97e7cf1d1679 100644 --- a/dev-java/proguard/ChangeLog +++ b/dev-java/proguard/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-java/proguard -# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-java/proguard/ChangeLog,v 1.14 2008/10/22 01:27:23 fordfrog Exp $ +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/proguard/ChangeLog,v 1.15 2009/02/04 20:08:58 serkan Exp $ + +*proguard-4.3 (04 Feb 2009) + + 04 Feb 2009; Serkan Kaba <serkan@gentoo.org> +proguard-4.3.ebuild: + Version bump. Add missing dependency on ant-core. *proguard-4.2-r1 (22 Oct 2008) diff --git a/dev-java/proguard/proguard-4.3.ebuild b/dev-java/proguard/proguard-4.3.ebuild new file mode 100644 index 000000000000..4067dd22034a --- /dev/null +++ b/dev-java/proguard/proguard-4.3.ebuild @@ -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-j2me-bin ) + dev-java/ant-core" +RDEPEND=">=virtual/jre-1.4 + j2me? ( dev-java/sun-j2me-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-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 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 + + 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}" +} |