blob: 11181139262d0f4e81bd561055e27f2341286de6 (
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
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-misc/jdictionary/jdictionary-1.8-r1.ebuild,v 1.3 2005/01/01 15:08:12 eradicator Exp $
inherit java-pkg
DESCRIPTION="A online Java-based dictionary"
HOMEPAGE="http://jdictionary.sourceforge.net/"
SRC_URI="mirror://sourceforge/jdictionary/jdictionary-${PV/./_}.zip"
IUSE=""
SLOT="0"
LICENSE="LGPL-2.1"
KEYWORDS="~x86 ~ppc ~sparc ~amd64"
RDEPEND=">=virtual/jdk-1.3"
DEPEND="app-arch/unzip"
S=${WORKDIR}/${PN}
src_compile(){
mkdir compiled
javac -classpath . `find . -name \*.java` -d compiled
# resources are not included in sources :-/
jar xf ${PN}.jar
cp -r resources compiled
jar cf ${PN}.jar -C compiled .
}
src_install() {
java-pkg_dojar ${PN}.jar
echo "#!/bin/sh" > ${PN}
echo "\$(java-config -J) -classpath \$(java-config -p ${PN}) info.jdictionary.JDictionary '\$*'" >> ${PN}
dobin ${PN}
}
|