add gambit-4.0_beta20, bug 135551
authorMarijn Schouten <hkbst@gentoo.org>
Mon, 29 Jan 2007 17:56:36 +0000 (17:56 +0000)
committerMarijn Schouten <hkbst@gentoo.org>
Mon, 29 Jan 2007 17:56:36 +0000 (17:56 +0000)
Package-Manager: portage-2.1.2-r5

dev-scheme/gambit/ChangeLog
dev-scheme/gambit/Manifest
dev-scheme/gambit/files/digest-gambit-4.0_beta20 [new file with mode: 0644]
dev-scheme/gambit/gambit-4.0_beta20.ebuild [new file with mode: 0644]

index 78720f31f4f4d85beae639d97682031fb1ca6367..feb14449d408adb2b478a0057e782fcc8eb59cac 100644 (file)
@@ -1,6 +1,11 @@
 # ChangeLog for dev-scheme/gambit
-# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-scheme/gambit/ChangeLog,v 1.1 2005/10/17 04:09:47 mkennedy Exp $
+# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-scheme/gambit/ChangeLog,v 1.2 2007/01/29 17:56:36 hkbst Exp $
+
+*gambit-4.0_beta20 (29 Jan 2007)
+
+  29 Jan 2007; Marijn Schouten <hkBst@gentoo.org> +gambit-4.0_beta20.ebuild:
+  add beta20
 
 *gambit-4.0_beta15 (17 Oct 2005)
 
index 1735c38f386283781703a38b879842c2109df555..670d63e864d4c0e977636bf0457b977ef86903af 100644 (file)
@@ -2,15 +2,20 @@ AUX 50gambit-gentoo.el 351 RMD160 7ee53480cd16e29a347dbe5ba1f46217ee24631b SHA1
 MD5 6a376196d952de4de14a94456c744692 files/50gambit-gentoo.el 351
 RMD160 7ee53480cd16e29a347dbe5ba1f46217ee24631b files/50gambit-gentoo.el 351
 SHA256 44572f602f12660a0d6536a621ccbce3be8dd4539f0fd083ed35cb41270035b5 files/50gambit-gentoo.el 351
+DIST gambc-4.0b20.tar.gz 7025146 RMD160 450177391c220aac2569c56ff0dcc5201a7592a1 SHA1 13324d339fe71e77fb25f51b79f637b880392481 SHA256 2ab46aead25b82b06d8f8dbe59b33896d32055f8340df2522ecfc11844ebb5a8
 DIST gambc40b15.tar.gz 8147034 RMD160 e5b2b35a9cc71cd4b9ce97af8b248db73c664ff8 SHA1 84d564c627c8203db67d3d71f360b8bcabeb4e10 SHA256 1d80f8b7263deca337cc25489b3c1d3706177ed08e9277a4cd9a3ef4dcf75eaf
 EBUILD gambit-4.0_beta15.ebuild 1422 RMD160 6d705d6fb327b6b19d12dee49d59a98d55d52bf6 SHA1 bcd0a3478a63a2297f27df6afca93de75a963004 SHA256 31a27dbb7f875c6dfe58491b68e6f23d6b38dd2d9eb52130b8c5e4f5ebf6dacb
 MD5 da7d3d018d9b1352f14d2828a8efc0d6 gambit-4.0_beta15.ebuild 1422
 RMD160 6d705d6fb327b6b19d12dee49d59a98d55d52bf6 gambit-4.0_beta15.ebuild 1422
 SHA256 31a27dbb7f875c6dfe58491b68e6f23d6b38dd2d9eb52130b8c5e4f5ebf6dacb gambit-4.0_beta15.ebuild 1422
-MISC ChangeLog 563 RMD160 b33c81185c7362084dfd007dfbdead3aeea1636c SHA1 65e3bfe33f79cee6c4abd8681c6c5ae2c24fa836 SHA256 1eba78967e48909ec9f5813fb7b35665c689de42d26aa87f2cc358cd50d54137
-MD5 dd61e4a32ddae29f373729b0e67330ca ChangeLog 563
-RMD160 b33c81185c7362084dfd007dfbdead3aeea1636c ChangeLog 563
-SHA256 1eba78967e48909ec9f5813fb7b35665c689de42d26aa87f2cc358cd50d54137 ChangeLog 563
+EBUILD gambit-4.0_beta20.ebuild 2584 RMD160 16dab657b322e4ca5c952f1827bb11a3d70cabe0 SHA1 0d650597e7c6c1f93ca7e525aed61f243361c681 SHA256 ea41481e1900de2b2ef23218013c0d927293125f0b0c2c279ec0b143d44c0456
+MD5 1fba8d76824a478f598ca90cfc41b307 gambit-4.0_beta20.ebuild 2584
+RMD160 16dab657b322e4ca5c952f1827bb11a3d70cabe0 gambit-4.0_beta20.ebuild 2584
+SHA256 ea41481e1900de2b2ef23218013c0d927293125f0b0c2c279ec0b143d44c0456 gambit-4.0_beta20.ebuild 2584
+MISC ChangeLog 685 RMD160 8169deae3fb0ac5c224ec9a1b42d21e93f4fc4d8 SHA1 d94dc2fa6a445c46bb53c5b932caa38a0c9b3af1 SHA256 e8e5703ec784e2b19367f4297e912b0948bcbb92527df3cf2834c417b44bce0d
+MD5 8a765c61da39bdeda80036493b9da5e7 ChangeLog 685
+RMD160 8169deae3fb0ac5c224ec9a1b42d21e93f4fc4d8 ChangeLog 685
+SHA256 e8e5703ec784e2b19367f4297e912b0948bcbb92527df3cf2834c417b44bce0d ChangeLog 685
 MISC metadata.xml 159 RMD160 de517ce4d7d6fd637855d92a257e2c94b8339f43 SHA1 f037b0d8dd3d592d04170d21a1a9b9c594541612 SHA256 61c7b86c8f64d194ff9e03f62b4007e0c69db2054d09e3ccdbbf6dbc0c78024b
 MD5 50b0f9698722324cfb463e8cb165fc87 metadata.xml 159
 RMD160 de517ce4d7d6fd637855d92a257e2c94b8339f43 metadata.xml 159
@@ -18,3 +23,6 @@ SHA256 61c7b86c8f64d194ff9e03f62b4007e0c69db2054d09e3ccdbbf6dbc0c78024b metadata
 MD5 86df75913aed6457405071b41ca13173 files/digest-gambit-4.0_beta15 235
 RMD160 01f21dac128d811198266444bf6c84d86df372ef files/digest-gambit-4.0_beta15 235
 SHA256 320ff1900ae87d4a7e331edc7f0ed6c3a829add2e1968b641c8711397abe1aea files/digest-gambit-4.0_beta15 235
+MD5 aa733402ac789639c69cfcde083d9b08 files/digest-gambit-4.0_beta20 241
+RMD160 fb587faf313864c66a663bae1901737ebb610b24 files/digest-gambit-4.0_beta20 241
+SHA256 c7c8ad2ced09710f40fda11e5e8807e807a32fe5428d48eee20961e0512c3c2f files/digest-gambit-4.0_beta20 241
diff --git a/dev-scheme/gambit/files/digest-gambit-4.0_beta20 b/dev-scheme/gambit/files/digest-gambit-4.0_beta20
new file mode 100644 (file)
index 0000000..b64a19c
--- /dev/null
@@ -0,0 +1,3 @@
+MD5 fb58e5bd67e52d88797672cbf04d34b3 gambc-4.0b20.tar.gz 7025146
+RMD160 450177391c220aac2569c56ff0dcc5201a7592a1 gambc-4.0b20.tar.gz 7025146
+SHA256 2ab46aead25b82b06d8f8dbe59b33896d32055f8340df2522ecfc11844ebb5a8 gambc-4.0b20.tar.gz 7025146
diff --git a/dev-scheme/gambit/gambit-4.0_beta20.ebuild b/dev-scheme/gambit/gambit-4.0_beta20.ebuild
new file mode 100644 (file)
index 0000000..0b4122a
--- /dev/null
@@ -0,0 +1,90 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-scheme/gambit/gambit-4.0_beta20.ebuild,v 1.1 2007/01/29 17:56:36 hkbst Exp $
+
+inherit eutils elisp-common check-reqs autotools multilib
+
+MY_PN=gambc
+MY_PV=${PV//_beta/b}
+MY_P=${MY_PN}-${MY_PV}
+
+DESCRIPTION="Gambit-C is a native Scheme to C compiler and interpreter."
+HOMEPAGE="http://www.iro.umontreal.ca/~gambit/"
+SRC_URI="http://www.iro.umontreal.ca/~gambit/download/gambit/4.0/source/${MY_P}.tar.gz"
+
+LICENSE="Apache-2.0 LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc64 ~x86"
+
+DEPEND="emacs? ( app-editors/emacs )"
+
+SITEFILE="50gambit-gentoo.el"
+
+S=${WORKDIR}/${MY_P}
+
+IUSE="emacs gcc-opts"
+
+pkg_setup() {
+       if ! use gcc-opts; then
+               ewarn "not using gcc specific optimizations"
+               ewarn "approximately 0.5GB ram will be needed"
+               ewarn "if you experience thrashing, try disabling parallel building"
+               # need this much memory in MBytes (does *not* check swap)
+               CHECKREQS_MEMORY="768"check_reqs
+       else
+               ewarn "using gcc specific optimizations."
+               ewarn "this will cause approximately 2GB ram to be used instead of 0.5GB."
+               ewarn "this will probably cause heavy thrashing of your system."
+               # need this much memory in MBytes (does *not* check swap)
+               CHECKREQS_MEMORY="2560" check_reqs
+       fi
+}
+
+src_unpack() {
+       unpack ${A} && cd "${S}"
+       sed "s/PACKAGE_SUBDIR=\"\/${MY_PV}\"/PACKAGE_SUBDIR=\"\/\"/" -i configure.ac
+       eautoreconf
+}
+
+src_compile() {
+       econf --enable-shared --enable-single-host $(use_enable gcc-opts)
+       emake || die "emake failed"
+
+       if use emacs; then
+               ( cd misc; elisp-comp *.el )
+       fi
+
+       einfo "compiling syntax-case.scm..."
+       LD_LIBRARY_PATH="lib/" GAMBCOPT="=." gsc/gsc misc/syntax-case.scm
+}
+
+src_install() {
+       einstall docdir=${D}/usr/share/doc/${PF} || die "einstall failed"
+
+       rm ${D}/usr/current
+
+       dolib syntax-case.*
+       mv ${D}/usr/syntax-case.scm ${D}/usr/$(get_libdir)
+
+       # rename the /usr/bin/gsc to avoid collision with gsc from ghostscript
+       mv ${D}/usr/bin/gsc ${D}/usr/bin/gsc-gambit
+
+       # remove emacs/site-lisp/gambit.el
+       rm -r ${D}/usr/share/emacs
+       if use emacs; then
+               elisp-install ${PN} misc/*.{el,elc}
+               elisp-site-file-install ${FILESDIR}/${SITEFILE}
+       fi
+
+       dodoc INSTALL.txt README
+       insinto /usr/share/doc/${PF}
+       doins -r examples
+
+       # create some more explicit names
+       dosym gsc-gambit usr/bin/gambitsc
+       dosym gsi usr/bin/gambitsi
+
+       dodir /etc/env.d/ && echo "GAMBCOPT=\"=/usr/lib/\"" > ${D}/etc/env.d/50gambit
+       # automatically load syntax-case for r5rs goodness
+       echo '(load "~~syntax-case")' > ${D}/usr/lib/gambcext
+}