blob: 237869a8dc151f2d346a6738465244c2cabfd04d (
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-2007 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-r3.ebuild,v 1.4 2007/10/27 13:25:52 angelos Exp $
inherit java-pkg-2
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="amd64 ppc x86"
IUSE="doc"
DEPEND=">=virtual/jdk-1.3
dev-java/sun-jimi"
RDEPEND=">=virtual/jre-1.3
dev-java/sun-jimi"
S=${WORKDIR}
src_unpack() {
jar -xvf "${DISTDIR}"/${A} || die "failed to unpack"
}
src_compile() {
ejavac -classpath $(java-pkg_getjars sun-jimi):. $(find -name *.java)
find . -name "*.class" -or -name "*.bdf" \
-or -name "*.properties" -or -name "README" \
| xargs jar -cf ${PN}.jar || die "failed to create jar"
}
src_install() {
java-pkg_dojar ${PN}.jar
java-pkg_dolauncher ${PN} --main org.roqe.jitac.Jitac
dodoc org/roqe/jitac/README
use doc && java-pkg_dohtml -r org/roqe/jitac/docs/*
}
|