summaryrefslogtreecommitdiff
path: root/dev-java/proguard
diff options
context:
space:
mode:
Diffstat (limited to 'dev-java/proguard')
-rw-r--r--dev-java/proguard/Manifest11
-rw-r--r--dev-java/proguard/metadata.xml15
-rw-r--r--dev-java/proguard/proguard-4.5.ebuild64
-rw-r--r--dev-java/proguard/proguard-4.7.ebuild64
-rw-r--r--dev-java/proguard/proguard-4.8.ebuild64
-rw-r--r--dev-java/proguard/proguard-5.2.1.ebuild68
6 files changed, 286 insertions, 0 deletions
diff --git a/dev-java/proguard/Manifest b/dev-java/proguard/Manifest
new file mode 100644
index 000000000000..b03517be0cae
--- /dev/null
+++ b/dev-java/proguard/Manifest
@@ -0,0 +1,11 @@
+DIST proguard4.5.tar.gz 1827325 SHA256 ccd621c0560817c252d999c66e1c975f307758e928104c14be02ec311e107e4e SHA512 bf1d9c29a4b3e1ba8062632b0f7f97e8f8d3dd2fbfbdc4bbbe98fa76151721fa45b22a1d99890654c557f3a1b87b45038d4882c0cb192b907ec2c65f4e7429fa WHIRLPOOL 0783643bd69f8d972d7a469300fb61f1e06868ee434d1eaf4769bd71d0b9f4d56ef348906857cfdc8b5e20deae6596bb1c7ba9c10cd593b40715e49381fce61d
+DIST proguard4.7.tar.gz 1902321 SHA256 ea2c245257d59957ce8dee9476b9595ac99c0a9c5194d739a3a800af5fac99e7 SHA512 cbf3e5ddb11a37af169cd563ffc04e554b925e99ff4f3797626e286ac40554577f2715050b46f5d1a9599de97cb62090b39798ea0aa006273d91cf8217e9e60b WHIRLPOOL 55723ae601ea02ffa27644977499c3c81b3491534a90506884b3eb68ccab87e8e1191d15fd3729871e4276b65f0f8e24a54a05b2527e27f5f906fef00227dba1
+DIST proguard4.8.tar.gz 1914047 SHA256 84db4aef4235ad312e221ae95485d7848fc468db66699f1b155d89c5036374f6 SHA512 f06c98c784a71fa9e2c137c6bc4c062dfcf2eeaa28653b909b475226cf133fb67821128a3fb6ab0702807cd229330da8b64e810d9078d0b7510083453feffa10 WHIRLPOOL 5372e1100a90a28dd195ae3893adbbf2222e686fead0a8f032777795cb3f0c39c3e4f407bdc8176ac9c42d70c85fade0bae23351595849204cc2753f04a15bb4
+DIST proguard5.2.1.tar.gz 2160584 SHA256 162fb2816212c6a7a195884a01ff826920919e97f57914a5b00bdf7641fc00f6 SHA512 7c2735860d689f9002e40e7a5304eb61f8fb8abc1da36ea62fa32541cdf2e655bb2d27814e2b8137d29a1ab02a57c57961491612ea8e735788fdea719e6239be WHIRLPOOL 841a3a35a47b0252734270ed1da0c5d046a18ca159a446ebbe18405c4508d4bca1c245e1ec89c475aa62f0adc646ee1f99583b2e7943db6ec70568328f5f53f8
+EBUILD proguard-4.5.ebuild 1599 SHA256 9135091ce11ca01005f1c5f20cb6d5b51eabb85939d986171589bef9fe73c713 SHA512 2229c1315356dd711481f5dad218cc87184658caf2cfd79f350c4c22a076567c1e94c990a7100f4c52006e309afdbdf471c98838176ddcd3c8f1d5321cbbbe35 WHIRLPOOL 70f4b18edb06a91966b0340592512ed027e085d67920d38864a179555a11a65e1a9e499d4984aa2a3accbf88653abc81aec5ecf31f747aa54fc0dbe9d5d3cb4c
+EBUILD proguard-4.7.ebuild 1601 SHA256 6a22ec2cf6ed421abcb6512c5448ac4dc4dc24725c7745f04df35d2e578bf65b SHA512 2a4edffb0e4de3322c5bb302d0a3084997ca89f75f49cea897c6ca0c22f7176c5c3653f898ac9bc1a52f6fdbbc59556f9c2ae00d34eb41b3dc7c7ff3f40d192d WHIRLPOOL 9fb7451f0a380f3c7b1f1d4ee96b19b515037e42426ed31adb7d6236b3532d2a6638c023be6f60704191a86d266ba3a06941e1a401cf534e799d26ccbc35fbf6
+EBUILD proguard-4.8.ebuild 1595 SHA256 5212098996eb87c9dd8283fb0221a4d5a8359aaa66e91dfe03990aea90c4ac22 SHA512 cbd5029257f5e2484dfdaa279f13bbfa458084b40c74c8366c02b17da589443d60badf5f4ec8dea947ef8f7ad3236bd1da3bb41b36298a95053690cf366135e6 WHIRLPOOL 8de7d38a9e92cfbb59eda284df519ad995349ce22bb2e78aea58cd69135512a477756791e79f8a943136ca02322742e591bfb71003bcd2171f5cfedf4b1d6253
+EBUILD proguard-5.2.1.ebuild 1592 SHA256 cc3c8cfcb57af81d6a0472e8952f7bc8dee73c2fdcc6653993df3e3e18d3a3f2 SHA512 92b4199a3c734e1a3870d470a59d087421217bc304d07aa686e3e226c0950e8a586b08849126335d393f88b985daca1f1f1e40042d96daff73e80e618b480664 WHIRLPOOL f955417adf858ab8460d292f7fb6924c9fb184049d8506d61ac35e82a7fe01e53791a0ed19843dde6fdf71a9ff7e2395b4524414dc2a5f635e03af6c6575f705
+MISC ChangeLog 2582 SHA256 9809a06dab1bb08d4d3449db0d93fa5d635d85f8b67bbc7d8c3731852134ece9 SHA512 3d02a7097d475ff86012bfd860445934943b3f7b572d25837c5f40c57f56811707e7b3c2e1c17c16da026b82dd55244f20163a63b8569f572b93289f1cd5546d WHIRLPOOL 9cda6278ef6b7cd79426eaa207cea77197579b637080e6bcc53070c1f57e8ae65b7be057356261262944bfe4b3f62cfe49346663e1763f724391a72f55836c18
+MISC ChangeLog-2015 4167 SHA256 e33a27c87d3134ce867a1ecc1833c99dd08652c40c3dc348048e6103d257fae8 SHA512 7b7b401ac14df7582feef32d795ac6ce39d0d7eb6965f5cf5156e8d984246012199bc0249c7d544062fc904e231b349e7da028919e23de18f03a920612238855 WHIRLPOOL 3bbc52c51b7ffe805e1397ef030658faa144f5de357f29589f9f1ddf350ee39b38e1ce143e1e9eb80ff95e7f59814ba5a532b71a2705dd36a102b5ab051d00c2
+MISC metadata.xml 470 SHA256 2dd74426c758b7afa07b10fc4b64bb4a6abf97d2210d8d500a90f0340399ec86 SHA512 41a6f95762fe034432e6c02a20bf37a25f27e8a3edfc8b07d4506115526865e22a594582ca1d7ddc2f22ccc8b1fea59f66edb5209cab5f0c38553dc0f70a96f9 WHIRLPOOL a4cbd6072ac0ae619dbe31e2e66412fe22dd7dc1b3ab623a7e917a10027d4bb129f3f59c350dd5f7fa84d0d248c2a9f86bcd50412c2ba63532968ea1e6f7b0e4
diff --git a/dev-java/proguard/metadata.xml b/dev-java/proguard/metadata.xml
new file mode 100644
index 000000000000..e626ba121626
--- /dev/null
+++ b/dev-java/proguard/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>java@gentoo.org</email>
+ <name>Java</name>
+ </maintainer>
+ <use>
+ <flag name="ant">Ant task for using ProGuard in build.xml scripts</flag>
+ <flag name="j2me">Adds support for J2ME Wireless Toolkit</flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">proguard</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-java/proguard/proguard-4.5.ebuild b/dev-java/proguard/proguard-4.5.ebuild
new file mode 100644
index 000000000000..5591f87e982d
--- /dev/null
+++ b/dev-java/proguard/proguard-4.5.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="2"
+JAVA_PKG_IUSE="doc examples 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 ~x86-fbsd"
+IUSE="ant j2me"
+
+DEPEND=">=virtual/jdk-1.4
+ j2me? ( >=dev-java/sun-j2me-bin-2.2:0 )"
+RDEPEND=">=virtual/jre-1.4
+ >=dev-java/ant-core-1.7:0
+ j2me? ( >=dev-java/sun-j2me-bin-2.2:0 )"
+
+S=${WORKDIR}/${MY_P}
+
+java_prepare() {
+ find "${S}" -name "*.jar" | xargs rm -v
+}
+
+EANT_BUILD_XML="build/build.xml"
+EANT_BUILD_TARGET="basic"
+EANT_DOC_TARGET=""
+
+src_compile() {
+ local j2mearg antarg
+
+ use ant && antarg="-Dant.jar=$(java-pkg_getjar ant-core ant.jar)"
+ use j2me && j2mearg="-Dwtk.jar=$(java-pkg_getjar sun-j2me-bin kenv.zip)"
+
+ java-pkg-2_src_compile \
+ $(use ant && echo anttask ${antarg}) \
+ $(use j2me && echo wtkplugin ${j2mearg})
+
+ if use doc; then
+ mkdir javadoc || die
+ javadoc -d javadoc -sourcepath src -classpath $${cp} -subpackages proguard || die "Cannot compile javadoc"
+ fi
+}
+
+src_install() {
+ java-pkg_dojar lib/*
+ 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
+
+ use examples && java-pkg_doexamples examples
+}
diff --git a/dev-java/proguard/proguard-4.7.ebuild b/dev-java/proguard/proguard-4.7.ebuild
new file mode 100644
index 000000000000..439692179911
--- /dev/null
+++ b/dev-java/proguard/proguard-4.7.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="2"
+JAVA_PKG_IUSE="doc examples 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 ~x86-fbsd"
+IUSE="ant j2me"
+
+DEPEND=">=virtual/jdk-1.4
+ j2me? ( >=dev-java/sun-j2me-bin-2.2:0 )"
+RDEPEND=">=virtual/jre-1.4
+ >=dev-java/ant-core-1.7:0
+ j2me? ( >=dev-java/sun-j2me-bin-2.2:0 )"
+
+S=${WORKDIR}/${MY_P}
+
+java_prepare() {
+ find "${S}" -name "*.jar" | xargs rm -v
+}
+
+EANT_BUILD_XML="build/build.xml"
+EANT_BUILD_TARGET="basic"
+EANT_DOC_TARGET=""
+
+src_compile() {
+ local j2mearg antarg
+
+ use ant && antarg="-Dant.jar=$(java-pkg_getjar ant-core ant.jar)"
+ use j2me && j2mearg="-Dwtk.jar=$(java-pkg_getjar sun-j2me-bin kenv.zip)"
+
+ java-pkg-2_src_compile \
+ $(use ant && echo anttask ${antarg}) \
+ $(use j2me && echo wtkplugin ${j2mearg})
+
+ if use doc; then
+ mkdir javadoc || die
+ javadoc -d javadoc -sourcepath src -classpath $${cp} -subpackages proguard || die "Cannot compile javadoc"
+ fi
+}
+
+src_install() {
+ java-pkg_dojar lib/*
+ 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
+
+ use examples && java-pkg_doexamples examples
+}
diff --git a/dev-java/proguard/proguard-4.8.ebuild b/dev-java/proguard/proguard-4.8.ebuild
new file mode 100644
index 000000000000..5a91d3ffce7d
--- /dev/null
+++ b/dev-java/proguard/proguard-4.8.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="4"
+JAVA_PKG_IUSE="doc examples 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 ~x86-fbsd"
+IUSE="ant j2me"
+
+DEPEND=">=virtual/jdk-1.4
+ j2me? ( >=dev-java/sun-j2me-bin-2.2:0 )"
+RDEPEND=">=virtual/jre-1.4
+ >=dev-java/ant-core-1.7:0
+ j2me? ( >=dev-java/sun-j2me-bin-2.2:0 )"
+
+S=${WORKDIR}/${MY_P}
+
+java_prepare() {
+ find "${S}" -name "*.jar" -delete
+}
+
+EANT_BUILD_XML="build/build.xml"
+EANT_BUILD_TARGET="basic"
+EANT_DOC_TARGET=""
+
+src_compile() {
+ local j2mearg antarg
+
+ use ant && antarg="-Dant.jar=$(java-pkg_getjar ant-core ant.jar)"
+ use j2me && j2mearg="-Dwtk.jar=$(java-pkg_getjar sun-j2me-bin kenv.zip)"
+
+ java-pkg-2_src_compile \
+ $(use ant && echo anttask ${antarg}) \
+ $(use j2me && echo wtkplugin ${j2mearg})
+
+ if use doc; then
+ mkdir javadoc || die
+ javadoc -d javadoc -sourcepath src -classpath $${cp} -subpackages proguard || die "Cannot compile javadoc"
+ fi
+}
+
+src_install() {
+ java-pkg_dojar lib/*
+ 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
+
+ use examples && java-pkg_doexamples examples
+}
diff --git a/dev-java/proguard/proguard-5.2.1.ebuild b/dev-java/proguard/proguard-5.2.1.ebuild
new file mode 100644
index 000000000000..c7e674619b0d
--- /dev/null
+++ b/dev-java/proguard/proguard-5.2.1.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+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 ~x86-fbsd"
+IUSE="ant examples"
+
+DEPEND=">=virtual/jdk-1.5"
+RDEPEND=">=virtual/jre-1.5
+ >=dev-java/ant-core-1.7:0"
+
+S=${WORKDIR}/${MY_P}
+
+JAVA_ANT_REWRITE_CLASSPATH="true"
+EANT_BUILD_XML="buildscripts/build.xml"
+EANT_BUILD_TARGET="basic"
+EANT_DOC_TARGET=""
+
+java_prepare() {
+ find -name "*.jar" -delete || die
+}
+
+src_compile() {
+ local anttask=""
+
+ if use ant; then
+ anttask="anttask"
+ EANT_GENTOO_CLASSPATH="ant-core"
+ fi
+
+ java-pkg-2_src_compile ${anttask}
+
+ if use doc; then
+ local EXCLUDE="proguard.gradle:proguard.wtk"
+ use ant || EXCLUDE+=":proguard.ant"
+
+ local CP="$([[ -n ${EANT_GENTOO_CLASSPATH} ]] && java-pkg_getjars ${EANT_GENTOO_CLASSPATH})"
+ ejavadoc -d javadoc -sourcepath src -classpath "${CP}" -subpackages proguard -exclude "${EXCLUDE}"
+ fi
+}
+
+src_install() {
+ java-pkg_dojar lib/*.jar
+ 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
+
+ use examples && java-pkg_doexamples examples
+ use source && java-pkg_dosrc src/*
+}