# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-scheme/kawa/kawa-1.8.ebuild,v 1.1 2006/05/12 05:01:04 mkennedy Exp $ inherit java-pkg eutils DESCRIPTION="Kawa, the Java-based Scheme system" HOMEPAGE="http://www.gnu.org/software/kawa/" SRC_URI="ftp://ftp.gnu.org/pub/gnu/kawa/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND="dev-java/ant-core" src_compile() { ./configure \ --host=${CHOST} \ --prefix=/usr \ --infodir=/usr/share/info \ --mandir=/usr/share/man || die "./configure failed" make || die } src_install () { make DESTDIR=${D} install || die rm -rf ${D}/usr/share/kawa/ ${D}/usr/share/java/ java-pkg_dojar kawa-${PV}.jar dodoc COPYING TODO README NEWS doinfo doc/kawa.info* dodir /usr/bin cat >${D}/usr/bin/kawa <<'EOF' #!/bin/sh exec `java-config --java` -classpath `java-config -p kawa` kawa.repl "$@" EOF dodir /etc/env.d/ cat >>${D}/etc/env.d/50kawa <