diff options
author | Matthew Kennedy <mkennedy@gentoo.org> | 2006-01-11 23:51:00 +0000 |
---|---|---|
committer | Matthew Kennedy <mkennedy@gentoo.org> | 2006-01-11 23:51:00 +0000 |
commit | 6da8fb5372122bea85fb8f4682f704668ff3f553 (patch) | |
tree | 6664ab7441cf2e74d42158a204024710286d1e10 /dev-lisp/abcl | |
parent | Added ~amd64 keyword. (diff) | |
download | gentoo-2-6da8fb5372122bea85fb8f4682f704668ff3f553.tar.gz gentoo-2-6da8fb5372122bea85fb8f4682f704668ff3f553.tar.bz2 gentoo-2-6da8fb5372122bea85fb8f4682f704668ff3f553.zip |
Initial port. Ebuild contributed by Matthew Kennedy <mkennedy@gentoo.org>.
(Portage version: 2.1_pre3-r1)
Diffstat (limited to 'dev-lisp/abcl')
-rw-r--r-- | dev-lisp/abcl/ChangeLog | 10 | ||||
-rw-r--r-- | dev-lisp/abcl/Manifest | 4 | ||||
-rw-r--r-- | dev-lisp/abcl/abcl-0.0.9.ebuild | 71 | ||||
-rw-r--r-- | dev-lisp/abcl/files/digest-abcl-0.0.9 | 1 | ||||
-rw-r--r-- | dev-lisp/abcl/metadata.xml | 5 |
5 files changed, 91 insertions, 0 deletions
diff --git a/dev-lisp/abcl/ChangeLog b/dev-lisp/abcl/ChangeLog new file mode 100644 index 000000000000..dc48828ba0be --- /dev/null +++ b/dev-lisp/abcl/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for dev-lisp/abcl +# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-lisp/abcl/ChangeLog,v 1.1 2006/01/11 23:51:00 mkennedy Exp $ + +*abcl-0.0.9 (11 Jan 2006) + + 11 Jan 2006; Matthew Kennedy <mkennedy@gentoo.org> +metadata.xml, + +abcl-0.0.9.ebuild: + Initial port. Ebuild contributed by Matthew Kennedy <mkennedy@gentoo.org>. + diff --git a/dev-lisp/abcl/Manifest b/dev-lisp/abcl/Manifest new file mode 100644 index 000000000000..f409b3921b3f --- /dev/null +++ b/dev-lisp/abcl/Manifest @@ -0,0 +1,4 @@ +MD5 5a109f6130033ca76828ba1924396f94 ChangeLog 310 +MD5 690618735b053eabfcd06c16f91b8bdc abcl-0.0.9.ebuild 1977 +MD5 5cf99bcf30136a8338d5a128e3bda9c4 files/digest-abcl-0.0.9 62 +MD5 9b65b0341efc8f4b29498aad23315229 metadata.xml 164 diff --git a/dev-lisp/abcl/abcl-0.0.9.ebuild b/dev-lisp/abcl/abcl-0.0.9.ebuild new file mode 100644 index 000000000000..a0f4782f38d9 --- /dev/null +++ b/dev-lisp/abcl/abcl-0.0.9.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2006 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.ebuild,v 1.1 2006/01/11 23:51:00 mkennedy Exp $ + +inherit eutils java-pkg + +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 jikes clisp cmucl" + +RDEPEND=">=virtual/jdk-1.4 + jad? ( dev-java/jad-bin )" + +DEPEND=">=virtual/jdk-1.4 + !cmucl? ( !clisp? ( dev-lisp/sbcl ) ) + cmucl? ( dev-lisp/cmucl ) + clisp? ( dev-lisp/clisp ) + jikes? ( dev-java/jikes )" + +S=${WORKDIR}/${P} + +src_unpack() { + unpack ${A} + local java_compiler="javac" + use jikes && java_compiler="jikes" + cat >${S}/customizations.lisp <<EOF +(in-package #:build-abcl) +(setf +*javac-options* "-g" +*jikes-options* "+D -g" +*jdk* "$(java-config --jdk-home)/" +*java-compiler* "$java_compiler" +*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 +} + +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 + $lisp_compiler $lisp_compiler_args || die +} + +src_install() { + cat >abcl <<EOF +#!/bin/sh +exec \$(java-config --java) -Xmx256M -Xrs -Djava.library.path=/usr/$(get_libdir)/abcl/ -cp \$(java-config -p abcl) org.armedbear.lisp.Main "\$@" +EOF + dobin abcl + insinto /usr/$(get_libdir)/abcl + doins src/org/armedbear/lisp/libabcl.so + java-pkg_dojar abcl.jar + dodoc README COPYING +} diff --git a/dev-lisp/abcl/files/digest-abcl-0.0.9 b/dev-lisp/abcl/files/digest-abcl-0.0.9 new file mode 100644 index 000000000000..a77769a69bb2 --- /dev/null +++ b/dev-lisp/abcl/files/digest-abcl-0.0.9 @@ -0,0 +1 @@ +MD5 232aa470e0fc3c6181d7a2650d5c2348 abcl-0.0.9.tar.gz 592410 diff --git a/dev-lisp/abcl/metadata.xml b/dev-lisp/abcl/metadata.xml new file mode 100644 index 000000000000..f418045b09c8 --- /dev/null +++ b/dev-lisp/abcl/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>common-lisp</herd> +</pkgmetadata> |