summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Baidakou <the.dmol@gmail.com>2012-08-17 01:32:27 +0300
committerIvan Baidakou <the.dmol@gmail.com>2012-08-17 01:32:27 +0300
commit79f67c8fe6332178107321a105b8b1987b865599 (patch)
tree7ff2fd5fd38817493740dcd3fcd7ebb97b258dac
parentupdate jabref-2.8.1 ebuild: remove old dependencies (fontbox:0, pdfbox:0) (diff)
downloaddmol-79f67c8fe6332178107321a105b8b1987b865599.tar.gz
dmol-79f67c8fe6332178107321a105b8b1987b865599.tar.bz2
dmol-79f67c8fe6332178107321a105b8b1987b865599.zip
proguard-4.8 version bump wrt#431050
-rw-r--r--dev-java/proguard/Manifest3
-rw-r--r--dev-java/proguard/metadata.xml11
-rw-r--r--dev-java/proguard/proguard-4.8.ebuild65
3 files changed, 79 insertions, 0 deletions
diff --git a/dev-java/proguard/Manifest b/dev-java/proguard/Manifest
new file mode 100644
index 0000000..63d754b
--- /dev/null
+++ b/dev-java/proguard/Manifest
@@ -0,0 +1,3 @@
+DIST proguard4.8.tar.gz 1914047 SHA256 84db4aef4235ad312e221ae95485d7848fc468db66699f1b155d89c5036374f6 SHA512 f06c98c784a71fa9e2c137c6bc4c062dfcf2eeaa28653b909b475226cf133fb67821128a3fb6ab0702807cd229330da8b64e810d9078d0b7510083453feffa10 WHIRLPOOL 5372e1100a90a28dd195ae3893adbbf2222e686fead0a8f032777795cb3f0c39c3e4f407bdc8176ac9c42d70c85fade0bae23351595849204cc2753f04a15bb4
+EBUILD proguard-4.8.ebuild 1600 SHA256 24b9d15858d3e54333f70e1617a2887454d5d0fa3e791dfb1ec0fbd3c03626ad SHA512 b463bf864d2dd85ade2b038494081e35bd13a36a7bd0cb3e97fc3d8ae86a122b1380dde0df42d9e8b31478c9c9b7017fe8be2bf99e40a87d62070394cb033c1b WHIRLPOOL 73643dfc38efb1d989512cef73bcd8f31dcf9ec30275b56b169b59d3c724fcb6a7060c11147fec1252f77737f20e25628046485ed1fb74a8a342c572bc86969d
+MISC metadata.xml 367 SHA256 b9f8bbe8ea90792f9da754518f50920afa39adbc31211537415558dda7687e74 SHA512 b3e5194c169096d86be8b0d0e34639dbba0f76e29146de77260a8cfa402b0e396f39e80b73cfc101e55b9aeba637782278cab74d7cff04912e721ed2cfb4b230 WHIRLPOOL 3c3fb92b1ae397d1141bde96b1e4a5a437e740d0ed381ce971e6d412f16e10561c9480b5d57c129928b0247bf59f894de89f34635a93a9e014ef74a029661164
diff --git a/dev-java/proguard/metadata.xml b/dev-java/proguard/metadata.xml
new file mode 100644
index 0000000..efbc3e2
--- /dev/null
+++ b/dev-java/proguard/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>the.dmol@gmail.com</email>
+ </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>
+</pkgmetadata>
diff --git a/dev-java/proguard/proguard-4.8.ebuild b/dev-java/proguard/proguard-4.8.ebuild
new file mode 100644
index 0000000..aa9864a
--- /dev/null
+++ b/dev-java/proguard/proguard-4.8.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+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"
+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
+}