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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Sun Aug 10 20:22:30 2014 UTC (5 years, 5 months ago) by slyfox
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +3 -3 lines
QA: drop trailing '.' from DESCRIPTION

(Portage version: 2.2.11_p9/cvs/Linux x86_64, signed Manifest commit with key 611FF3AA)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-java/proguard/proguard-4.5.ebuild,v 1.4 2011/12/16 08:36:15 naota Exp $
4
5 EAPI="2"
6 JAVA_PKG_IUSE="doc examples source"
7
8 inherit java-pkg-2 java-ant-2
9
10 DESCRIPTION="Free Java class file shrinker, optimizer, and obfuscator"
11 HOMEPAGE="http://proguard.sourceforge.net/"
12 MY_P=${P/-/}
13 MY_P=${MY_P/_/}
14 SRC_URI="mirror://sourceforge/proguard/${MY_P}.tar.gz"
15
16 LICENSE="GPL-2-with-linking-exception"
17 SLOT="0"
18 KEYWORDS="amd64 x86 ~x86-fbsd"
19 IUSE="ant j2me"
20
21 DEPEND=">=virtual/jdk-1.4
22 j2me? ( >=dev-java/sun-j2me-bin-2.2:0 )"
23 RDEPEND=">=virtual/jre-1.4
24 >=dev-java/ant-core-1.7:0
25 j2me? ( >=dev-java/sun-j2me-bin-2.2:0 )"
26
27 S=${WORKDIR}/${MY_P}
28
29 java_prepare() {
30 find "${S}" -name "*.jar" | xargs rm -v
31 }
32
33 EANT_BUILD_XML="build/build.xml"
34 EANT_BUILD_TARGET="basic"
35 EANT_DOC_TARGET=""
36
37 src_compile() {
38 local j2mearg antarg
39
40 use ant && antarg="-Dant.jar=$(java-pkg_getjar ant-core ant.jar)"
41 use j2me && j2mearg="-Dwtk.jar=$(java-pkg_getjar sun-j2me-bin kenv.zip)"
42
43 java-pkg-2_src_compile \
44 $(use ant && echo anttask ${antarg}) \
45 $(use j2me && echo wtkplugin ${j2mearg})
46
47 if use doc; then
48 mkdir javadoc || die
49 javadoc -d javadoc -sourcepath src -classpath $${cp} -subpackages proguard || die "Cannot compile javadoc"
50 fi
51 }
52
53 src_install() {
54 java-pkg_dojar lib/*
55 java-pkg_dolauncher ${PN} --main proguard.ProGuard
56 java-pkg_dolauncher ${PN}gui --main proguard.gui.ProGuardGUI
57 java-pkg_dolauncher ${PN}_retrace --main proguard.retrace.ReTrace
58
59 if use doc; then
60 dohtml -r docs/*
61 java-pkg_dojavadoc javadoc
62 fi
63
64 use examples && java-pkg_doexamples examples
65 }

  ViewVC Help
Powered by ViewVC 1.1.20