/[gentoo-x86]/dev-java/proguard/proguard-5.2.1.ebuild
Gentoo

Contents of /dev-java/proguard/proguard-5.2.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sat Apr 4 21:20:52 2015 UTC (4 years, 10 months ago) by chewi
Branch: MAIN
CVS Tags: HEAD
Version bump. Remove j2me support because we're going to remove
sun-j2me-bin. Also remove unused build.xml file.

(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 9C6D7DE4)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
4
5 EAPI=5
6
7 JAVA_PKG_IUSE="doc source"
8
9 inherit java-pkg-2 java-ant-2
10
11 DESCRIPTION="Free Java class file shrinker, optimizer, and obfuscator"
12 HOMEPAGE="http://proguard.sourceforge.net/"
13 MY_P=${P/-/}
14 MY_P=${MY_P/_/}
15 SRC_URI="mirror://sourceforge/proguard/${MY_P}.tar.gz"
16
17 LICENSE="GPL-2-with-linking-exception"
18 SLOT="0"
19 KEYWORDS="~amd64 ~x86 ~x86-fbsd"
20 IUSE="ant examples"
21
22 DEPEND=">=virtual/jdk-1.5"
23 RDEPEND=">=virtual/jre-1.5
24 >=dev-java/ant-core-1.7:0"
25
26 S=${WORKDIR}/${MY_P}
27
28 JAVA_ANT_REWRITE_CLASSPATH="true"
29 EANT_BUILD_XML="buildscripts/build.xml"
30 EANT_BUILD_TARGET="basic"
31 EANT_DOC_TARGET=""
32
33 java_prepare() {
34 find -name "*.jar" -delete || die
35 }
36
37 src_compile() {
38 local anttask=""
39
40 if use ant; then
41 anttask="anttask"
42 EANT_GENTOO_CLASSPATH="ant-core"
43 fi
44
45 java-pkg-2_src_compile ${anttask}
46
47 if use doc; then
48 local EXCLUDE="proguard.gradle:proguard.wtk"
49 use ant || EXCLUDE+=":proguard.ant"
50
51 local CP="$([[ -n ${EANT_GENTOO_CLASSPATH} ]] && java-pkg_getjars ${EANT_GENTOO_CLASSPATH})"
52 ejavadoc -d javadoc -sourcepath src -classpath "${CP}" -subpackages proguard -exclude "${EXCLUDE}"
53 fi
54 }
55
56 src_install() {
57 java-pkg_dojar lib/*.jar
58 java-pkg_dolauncher ${PN} --main proguard.ProGuard
59 java-pkg_dolauncher ${PN}gui --main proguard.gui.ProGuardGUI
60 java-pkg_dolauncher ${PN}_retrace --main proguard.retrace.ReTrace
61
62 if use doc; then
63 dohtml -r docs/*
64 java-pkg_dojavadoc javadoc
65 fi
66
67 use examples && java-pkg_doexamples examples
68 use source && java-pkg_dosrc src/*
69 }

  ViewVC Help
Powered by ViewVC 1.1.20