Migrate to generation 2 java eclasses.
authorPetteri Räty <betelgeuse@gentoo.org>
Wed, 13 Feb 2008 14:11:55 +0000 (14:11 +0000)
committerPetteri Räty <betelgeuse@gentoo.org>
Wed, 13 Feb 2008 14:11:55 +0000 (14:11 +0000)
Package-Manager: portage-2.1.4.1

dev-lisp/abcl/ChangeLog
dev-lisp/abcl/Manifest
dev-lisp/abcl/abcl-0.0.9-r1.ebuild [new file with mode: 0644]

index c2a80a4dfc64ea4b4c6a1e106a37807126564995..d77d609f05dec8725c78cd02bb117ae60473d09f 100644 (file)
@@ -1,6 +1,11 @@
 # ChangeLog for dev-lisp/abcl
-# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lisp/abcl/ChangeLog,v 1.3 2007/02/22 01:18:43 peper Exp $
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-lisp/abcl/ChangeLog,v 1.4 2008/02/13 14:11:55 betelgeuse Exp $
+
+*abcl-0.0.9-r1 (13 Feb 2008)
+
+  13 Feb 2008; Petteri Räty <betelgeuse@gentoo.org> +abcl-0.0.9-r1.ebuild:
+  Migrate to generation 2 java eclasses.
 
   22 Feb 2007; Piotr Jaroszyński <peper@gentoo.org> ChangeLog:
   Transition to Manifest2.
index 98fc61e0331ff9e392f22dc6378a29ac89106495..4d905c59dc0d8920e25fabdd0e365ff8e32115a9 100644 (file)
@@ -1,4 +1,15 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
 DIST abcl-0.0.9.tar.gz 592410 RMD160 58e158733665865009d414c1a99d2aec90cf59c1 SHA1 114f8f0049fd7820bdab524f6c83a0ef2831c149 SHA256 ee634443a4a77b2bb9324fa4ff900b15aea5081042fde039045b535d28a8049b
+EBUILD abcl-0.0.9-r1.ebuild 2156 RMD160 2846de49ad86d10bddcaa4109ba4dd9a55cd6193 SHA1 2a74060e772ede5279ce7e14e574063def34f406 SHA256 09d6161f74518025adc70a5efc7b017383d2861c48f8426730a45686886d58bc
 EBUILD abcl-0.0.9.ebuild 2072 RMD160 7d66e0fc97d24ee0eb4e78f589ec2ec0b636c073 SHA1 48a81ccb102e8c3b1cf52915a27b4998a8fa71b4 SHA256 0aa618e3312fea61d780ef6011607ced61921ac45d3a850f01b9e11a7170ffef
-MISC ChangeLog 592 RMD160 e7c8d959fddd872b7909bf304c48e08f6b5e9ace SHA1 c4fc3ace7371e69b5df75b7b823e3e5e19f264ef SHA256 7a75ded3795a610e68a8bb765f529788ce2ccbce431b3b29429189d42223f4c2
+MISC ChangeLog 745 RMD160 6b304e8fb73eb53a73627bbe01768fa410ba3c0c SHA1 e49bd542e62192b296b1e10121cf44949e76bee4 SHA256 cb532abc264e77d9a14d1d01a385fd580bb20ccced5c1b83d99a1c649c6a039d
 MISC metadata.xml 164 RMD160 5edb79931b874dc3a72128f0742b9d4c4eb3c8c1 SHA1 2f781e1fca36d790a027079805d56cf397e6a6f8 SHA256 f8efc9385015233c71f279f85bd0a327525b7136cf8714cc04449d8bea4ce22f
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.7 (GNU/Linux)
+
+iD8DBQFHsvqzcxLzpIGCsLQRAhlmAJ0Xr9z9G8av5EqwGM6l6eYGVya1ZQCfZzOF
+AI64fl+RuaVwfbv/hwdanOs=
+=5ahN
+-----END PGP SIGNATURE-----
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 (file)
index 0000000..0135d2f
--- /dev/null
@@ -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
+}