# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-java/jasmin-sable/jasmin-sable-1.2.7.ebuild,v 1.7 2005/03/26 00:20:27 luckyduck Exp $ inherit java-pkg DESCRIPTION="Jasmin packaged with CUP and JAS, maintained by the Sable team" HOMEPAGE="http://www.sable.mcgill.ca/software/" SRC_URI="http://www.sable.mcgill.ca/software/jasmin-sable-1.2.7.tar.gz" LICENSE="LGPL-2.1" SLOT="0" KEYWORDS="x86 ~ppc ~amd64" IUSE="doc examples source" DEPEND=">=virtual/jdk-1.3" RDEPEND=">=virtual/jre-1.3" src_compile() { bin/compile_all.sh || die "Failed to compile" # karltk: we may want to split compile_all.sh up if we later on # package CUP and JAS separately. aaby@gentoo.org has some ebuilds # for this in #46267. cd classes jar cf jas.jar jas/ jar cf jasmin.jar jasmin/ jar cf javacup.jar java_cup/ jar cf scm.jar scm/ cd ${S} if use doc ; then javadoc -d doc `find . -name "*.java"` || die "Failed to build docs" fi } src_install() { java-pkg_dojar classes/{jas,jasmin,javacup,scm}.jar dobin ${FILESDIR}/jasmin if use doc; then java-pkg_dohtml -r doc/* dodoc README changes fi if use examples; then dodir /usr/share/doc/${PF}/examples cp -r examples/* ${D}/usr/share/doc/${PF}/examples fi use source && java-pkg_dosrc src/jasmin/* }