blob: 93d0af2f9d889079a228361cfc39ed2817a007e9 (
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
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-misc/jitac/jitac-0.2.0-r1.ebuild,v 1.3 2004/10/16 18:14:38 axxo Exp $
inherit java-pkg
DESCRIPTION="An image to ASCII converter written in Java"
HOMEPAGE="http://www.roqe.org/jitac/"
SRC_URI="http://www.roqe.org/jitac/${P}.src.jar"
LICENSE="as-is"
SLOT="0"
KEYWORDS="~x86 ~sparc"
IUSE="doc"
DEPEND="virtual/jdk
dev-java/jimi"
RDEPEND="virtual/jre
dev-java/jimi"
S=${WORKDIR}
src_unpack() {
cd ${S}
jar -xvf ${DISTDIR}/${A}
}
src_compile() {
cd ${S}
find . -name "*.java" | xargs javac -target 1.2 -classpath $(java-config -p jimi):. || die "failed to compile"
find . -name "*.class" -or -name "*.bdf" -or -name "*.properties" | xargs jar -cf ${PN}.jar || die "failes to ceate jar"
}
src_install() {
java-pkg_dojar ${PN}.jar
echo "#!/bin/sh" > ${PN}
echo "\${JAVA_HOME}/bin/java -classpath \${CLASSPATH}:\$(java-config -p jimi,jitac) org.roqe.jitac.Jitac \$*" >> ${PN}
dobin ${PN}
dodoc org/roqe/jitac/README
use doc && java-pkg_dohtml -r org/roqe/jitac/docs/*
}
|