# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-java/makeme/makeme-0.02-r2.ebuild,v 1.12 2005/07/15 20:51:30 axxo Exp $ inherit java-pkg eutils DESCRIPTION="Make utility written in Java" SRC_URI="mirror://sourceforge/makeme/makeme-0.02.tar.gz" HOMEPAGE="http://makeme.sf.net" RDEPEND=">=virtual/jre-1.4 >=dev-java/antlr-2.7.1-r1" DEPEND=">=virtual/jdk-1.4 ${RDEPEND} jikes? ( >=dev-java/jikes-1.13 )" LICENSE="GPL-2" SLOT="0" KEYWORDS="x86 ~ppc ~sparc amd64" IUSE="jikes" src_unpack() { unpack ${A} cd ${S} epatch ${FILESDIR}/${PF}-gentoo.diff } src_compile() { if ! use jikes; then sed -e 's!jikes!javac!' -i Makefile fi make build || die "Compile failed" make install || die "Create Jar failed" } src_install() { java-pkg_dojar makeme.jar cp ${FILESDIR}/makeme.sh ${S}/makeme dobin ${S}/makeme doman doc/makeme.1 }