blob: eb54b057f18e9e48fa649e77e8f1f58f27b4a750 (
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
39
40
41
42
43
44
45
46
47
48
49
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-misc/openjnlp/openjnlp-0.7.1-r1.ebuild,v 1.4 2005/01/01 15:18:11 eradicator Exp $
inherit java-pkg
DESCRIPTION="An open-source implementation of the JNLP"
HOMEPAGE="http://openjnlp.nanode.org/"
SRC_URI="mirror://sourceforge/openjnlp/OpenJNLP-src-rel_ver-${PV//./-}.zip"
LICENSE="MPL-1.1"
SLOT="0"
KEYWORDS="~x86"
IUSE=""
DEPEND="virtual/jdk
app-arch/unzip
>=dev-java/ant-1.6
dev-java/sax
dev-java/jnlp-bin
dev-java/nanoxml"
RDEPEND="virtual/jre"
S=${WORKDIR}/OpenJNLP-src-rel_ver-${PV//./-}
src_unpack() {
unpack ${A}
cd ${S}/jars
java-pkg_jar-from jnlp-bin
java-pkg_jar-from sax
java-pkg_jar-from nanoxml nanoxml.jar nanoxml-2.2.jar
java-pkg_jar-from nanoxml nanoxml-sax.jar nanoxml-sax-2.2.jar
}
src_compile() {
cd ${S}/targets
ant build -lib ../jars/MRJToolkitStubs.zip || die "failed to build"
}
src_install() {
cd ${S}/build/apps/unix/OpenJNLP-0.7.1/
java-pkg_dojar lib/*.jar
echo "#!/bin/sh" > ${PN}
echo "\${JAVA_HOME}/bin/java -cp \$(java-config --classpath=openjnlp) org.nanode.app.OpenJNLP \$*" >> ${PN}
dodoc {History,ReadMe}.txt
dobin ${PN}
}
|