diff options
author | Alistair Bush <ali_bush@gentoo.org> | 2008-03-29 02:20:13 +0000 |
---|---|---|
committer | Alistair Bush <ali_bush@gentoo.org> | 2008-03-29 02:20:13 +0000 |
commit | 41515df2d44dd01868f1b72f1a7644ce06147e52 (patch) | |
tree | 21b90f38ed61c06a8383c7175fa30baf883e18e2 /dev-java/proguard | |
parent | Added a patch to make freedict.eclass ready for eclass-manpages. Thanks, mren... (diff) | |
download | gentoo-2-41515df2d44dd01868f1b72f1a7644ce06147e52.tar.gz gentoo-2-41515df2d44dd01868f1b72f1a7644ce06147e52.tar.bz2 gentoo-2-41515df2d44dd01868f1b72f1a7644ce06147e52.zip |
Version Bump. see #214636
(Portage version: 2.1.4.4)
Diffstat (limited to 'dev-java/proguard')
-rw-r--r-- | dev-java/proguard/ChangeLog | 7 | ||||
-rw-r--r-- | dev-java/proguard/proguard-4.2.ebuild | 92 |
2 files changed, 98 insertions, 1 deletions
diff --git a/dev-java/proguard/ChangeLog b/dev-java/proguard/ChangeLog index 5a07cd0cb19b..304b1ee4b76b 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.11 2008/02/21 11:37:42 fordfrog Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-java/proguard/ChangeLog,v 1.12 2008/03/29 02:20:13 ali_bush Exp $ + +*proguard-4.2 (29 Mar 2008) + + 29 Mar 2008; Alistair Bush <ali_bush@gentoo.org> +proguard-4.2.ebuild: + Version Bump. see #214636. *proguard-4.1 (21 Feb 2008) diff --git a/dev-java/proguard/proguard-4.2.ebuild b/dev-java/proguard/proguard-4.2.ebuild new file mode 100644 index 000000000000..a61d641ff7cc --- /dev/null +++ b/dev-java/proguard/proguard-4.2.ebuild @@ -0,0 +1,92 @@ +# 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.2.ebuild,v 1.1 2008/03/29 02:20:13 ali_bush 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 + + 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}" +} |