blob: 20eb6b6db20e7dc33c42aa15334d0b05869305a0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/jarwizard/jarwizard-2.34.ebuild,v 1.6 2006/10/05 14:43:03 gustavoz Exp $
inherit java-pkg
DESCRIPTION="Takes the hassle out of creating executable JAR files for your Java programs"
SRC_URI="mirror://sourceforge/jarwizard/${PN}_${PV/./}_src.zip"
HOMEPAGE="http://www.geocities.com/chir_geo/jarc/"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="x86 ~alpha ~ppc"
IUSE="jikes"
DEPEND=">=virtual/jdk-1.3
app-arch/unzip
jikes? ( >=dev-java/jikes-1.16 )"
RDEPEND=">=virtual/jre-1.3"
S="${WORKDIR}/${PN}"
src_compile() {
if use jikes ; then
jikes -O -source 1.3 *.java
else
javac -g:none -target 1.3 -source 1.3 *.java
fi
}
src_install() {
echo "Manifest-Version: 1.0" > manifest
echo "Main-Class: JarWizard" >> manifest
jar cfm ${PN}.jar manifest *.class *.properties org gui
java-pkg_dojar ${PN}.jar
echo "#!/bin/sh" > ${PN}
echo "java -cp \$(java-config -p ${PN}) JarWizard" >> ${PN}
dobin ${PN}
}
|