summaryrefslogtreecommitdiff
blob: a5a8a3010e4c823ab963a45a084244295ca60d76 (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-2004 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.5 2005/07/16 18:57:09 axxo 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 ~sparc ~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}
}