diff options
author | Thomas Matthijs <axxo@gentoo.org> | 2004-09-21 18:05:24 +0000 |
---|---|---|
committer | Thomas Matthijs <axxo@gentoo.org> | 2004-09-21 18:05:24 +0000 |
commit | 99552e563ee5539553b628466bcf0bd7bb089a61 (patch) | |
tree | fec86f6cdddc491299cc629b7918750efb33bbad /app-misc/jitac/jitac-0.2.0-r1.ebuild | |
parent | initial import, ebuild created by me, as a dep (diff) | |
download | historical-99552e563ee5539553b628466bcf0bd7bb089a61.tar.gz historical-99552e563ee5539553b628466bcf0bd7bb089a61.tar.bz2 historical-99552e563ee5539553b628466bcf0bd7bb089a61.zip |
now builds from source
Diffstat (limited to 'app-misc/jitac/jitac-0.2.0-r1.ebuild')
-rw-r--r-- | app-misc/jitac/jitac-0.2.0-r1.ebuild | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/app-misc/jitac/jitac-0.2.0-r1.ebuild b/app-misc/jitac/jitac-0.2.0-r1.ebuild new file mode 100644 index 000000000000..f1b8af4816a7 --- /dev/null +++ b/app-misc/jitac/jitac-0.2.0-r1.ebuild @@ -0,0 +1,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.1 2004/09/21 18:05:24 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" +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 && dohtml -r org/roqe/jitac/docs/* +} + |