diff options
Diffstat (limited to 'dev-lisp/kawa/kawa-1.7.ebuild')
-rw-r--r-- | dev-lisp/kawa/kawa-1.7.ebuild | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/dev-lisp/kawa/kawa-1.7.ebuild b/dev-lisp/kawa/kawa-1.7.ebuild new file mode 100644 index 000000000000..3f9e174d5ece --- /dev/null +++ b/dev-lisp/kawa/kawa-1.7.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2004 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-lisp/kawa/kawa-1.7.ebuild,v 1.1 2004/05/13 21:21:09 mkennedy Exp $ + +DESCRIPTION="Kawa, the Java-based Scheme system" +SRC_URI="ftp://ftp.gnu.org/pub/gnu/kawa/${P}.tar.gz" +HOMEPAGE="http://www.gnu.org/software/kawa/" +DEPEND="virtual/jdk" +RDEPEND="virtual/jre" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="x86" + +src_compile() { + export PATH=${PATH}:${JDK_HOME}/bin + which javac + ./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/ + 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 <<EOF +KAWALIB=/usr/share/kawa/lib/kawa-${PV}.jar +EOF +} |