diff options
author | Petteri Räty <betelgeuse@gentoo.org> | 2008-02-13 14:11:55 +0000 |
---|---|---|
committer | Petteri Räty <betelgeuse@gentoo.org> | 2008-02-13 14:11:55 +0000 |
commit | b7c78829284eb2c7b479147c21dd030747c932dd (patch) | |
tree | b0070c985d82ee8f4721a730c3d228e6e0c46148 /dev-lisp/abcl/abcl-0.0.9-r1.ebuild | |
parent | Initial import. Closing bug #54161. Thanks Tim Cera <timcera@earthlink.net> f... (diff) | |
download | gentoo-2-b7c78829284eb2c7b479147c21dd030747c932dd.tar.gz gentoo-2-b7c78829284eb2c7b479147c21dd030747c932dd.tar.bz2 gentoo-2-b7c78829284eb2c7b479147c21dd030747c932dd.zip |
Migrate to generation 2 java eclasses.
(Portage version: 2.1.4.1)
Diffstat (limited to 'dev-lisp/abcl/abcl-0.0.9-r1.ebuild')
-rw-r--r-- | dev-lisp/abcl/abcl-0.0.9-r1.ebuild | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/dev-lisp/abcl/abcl-0.0.9-r1.ebuild b/dev-lisp/abcl/abcl-0.0.9-r1.ebuild new file mode 100644 index 000000000000..0135d2f377eb --- /dev/null +++ b/dev-lisp/abcl/abcl-0.0.9-r1.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-lisp/abcl/abcl-0.0.9-r1.ebuild,v 1.1 2008/02/13 14:11:55 betelgeuse Exp $ + +inherit eutils java-pkg-2 + +DESCRIPTION="Armed Bear Common Lisp (ABCL) is an implementation of ANSI Common Lisp that runs in a Java virtual machine." +HOMEPAGE="http://armedbear.org/abcl.html" +SRC_URI="http://armedbear.org/${P}.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="jad clisp cmucl" + +RDEPEND=">=virtual/jre-1.4 + jad? ( dev-java/jad-bin )" + +DEPEND=">=virtual/jdk-1.4 + dev-lang/python + !cmucl? ( !clisp? ( dev-lisp/sbcl ) ) + cmucl? ( dev-lisp/cmucl ) + clisp? ( dev-lisp/clisp )" + +src_unpack() { + unpack ${A} + cat > "${S}/customizations.lisp" <<EOF +(in-package #:build-abcl) +(setf +*javac-options* "-g $(java-pkg_javac-args)" +*jikes-options* "+D -g $(java-pkg_javac-args)" +*jdk* "${JAVA_HOME}/" +*java-compiler* "${JAVAC}" +*jar* "jar") +EOF + einfo "Building with the following customizations.lisp:" + cat "${S}/customizations.lisp" + cat >"${S}/build.lisp" <<'EOF' +(progn (load "build-abcl") (funcall (intern "BUILD-ABCL" "BUILD-ABCL") :clean t :full t) #+sbcl (sb-ext:quit) #+clisp (ext:quit) #+cmu (extensions:quit)) +EOF +} + +getutfvars() { +python << EOF +import os +for key,value in os.environ.iteritems(): + try: + value.encode() + except UnicodeDecodeError: + print key +EOF +} + +src_compile() { + local lisp_compiler lisp_compiler_args + if use clisp; then + lisp_compiler="clisp" + lisp_compiler_args="-ansi build.lisp" + elif use cmucl; then + lisp_compiler="lisp" + lisp_compiler_args="-noinit -nositeinit -batch -load build.lisp" + else + lisp_compiler="sbcl" + lisp_compiler_args="--sysinit /dev/null --userinit /dev/null --disable-debugger --load build.lisp" + fi + + einfo "Filtering non ASCII environment variables" + for var in $(getutfvars); do + einfo " ${var}" + unset ${var} + done + $lisp_compiler $lisp_compiler_args || die +} + +src_install() { + java-pkg_dolauncher ${PN} --java_args "-Xmx256M -Xrs" --main org.armedbear.lisp.Main + java-pkg_doso src/org/armedbear/lisp/libabcl.so + java-pkg_dojar abcl.jar + dodoc README || die +} |