add beta22
authorMarijn Schouten <hkbst@gentoo.org>
Thu, 19 Apr 2007 13:17:55 +0000 (13:17 +0000)
committerMarijn Schouten <hkbst@gentoo.org>
Thu, 19 Apr 2007 13:17:55 +0000 (13:17 +0000)
Package-Manager: portage-2.1.2.4

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

index a72593e3384bfee5dfe1df033a8ecc2a34ee300c..a468dca218bfb23641660e6b1b1884043ec283e2 100644 (file)
@@ -1,6 +1,11 @@
 # ChangeLog for dev-scheme/gambit
 # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-scheme/gambit/ChangeLog,v 1.3 2007/01/31 11:00:45 hkbst Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-scheme/gambit/ChangeLog,v 1.4 2007/04/19 13:17:55 hkbst Exp $
+
+*gambit-4.0_beta22 (19 Apr 2007)
+
+  19 Apr 2007; Marijn Schouten <hkBst@gentoo.org> +gambit-4.0_beta22.ebuild:
+  add beta22
 
   31 Jan 2007; Marijn Schouten <hkBst@gentoo.org> gambit-4.0_beta20.ebuild:
   fix virtual/emacs dep
index 0ea72b4ad84bb3c9e825349ee2233b07b93517fc..80d3f8b87e7f5face944faed951cb794436a5faa 100644 (file)
@@ -3,6 +3,7 @@ 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 gambc-4.0b22.tar.gz 7133092 RMD160 5cba5e532b93802d383d8927cc85a70ccd680cc0 SHA1 3dad264611443991fc36fa0f949a5ff8b864f57a SHA256 14b6715466f9e8c7d5da01e8a066843e02e2101739a0a41ad17f06d903bc4caf
 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
@@ -12,10 +13,14 @@ EBUILD gambit-4.0_beta20.ebuild 2580 RMD160 4651b310cbe753e21df2d308400e2186cc7d
 MD5 ae631ecfe3469e620997ba65ee8b3a5b gambit-4.0_beta20.ebuild 2580
 RMD160 4651b310cbe753e21df2d308400e2186cc7d3549 gambit-4.0_beta20.ebuild 2580
 SHA256 4962e1960f0a123553c08b9b5845c6b41c9ea11955d8c76bf4c3567d96b9d181 gambit-4.0_beta20.ebuild 2580
-MISC ChangeLog 786 RMD160 904d481e7981fc398676e48889c530cf836fdfdd SHA1 9de0212463045754dd93470ffd2fdae9a570fc04 SHA256 1bccfe5e88fa8d5125269e22db33a2d87077cbadb96e4243cb91c5d31243a689
-MD5 5dd29f465b7730a94d2eb4d04d72765e ChangeLog 786
-RMD160 904d481e7981fc398676e48889c530cf836fdfdd ChangeLog 786
-SHA256 1bccfe5e88fa8d5125269e22db33a2d87077cbadb96e4243cb91c5d31243a689 ChangeLog 786
+EBUILD gambit-4.0_beta22.ebuild 2647 RMD160 c666967179df6c1b2cf697d3eb13957436fe6e7b SHA1 376362363d0edb5107cd025ac6a5e7e553ff6032 SHA256 c0a366c09a16d92d18efee7ec83c67773fb60c2b97925a4f5a2dc4ea0238c4ca
+MD5 3b5b3b89ab1d91e4bd6e99304a9a7658 gambit-4.0_beta22.ebuild 2647
+RMD160 c666967179df6c1b2cf697d3eb13957436fe6e7b gambit-4.0_beta22.ebuild 2647
+SHA256 c0a366c09a16d92d18efee7ec83c67773fb60c2b97925a4f5a2dc4ea0238c4ca gambit-4.0_beta22.ebuild 2647
+MISC ChangeLog 911 RMD160 de052f1fe7a73db79ab660567e05bab8ea6301a7 SHA1 4c42ca2b3ae494d7f984859050d40e9ae7173f5c SHA256 bfba4d8c1ac58f24b055ab12ee1f356c2210b3449a551f18c92bb5eaa948ecf1
+MD5 0ad3fbbf1d55391f3571d87eabd49cde ChangeLog 911
+RMD160 de052f1fe7a73db79ab660567e05bab8ea6301a7 ChangeLog 911
+SHA256 bfba4d8c1ac58f24b055ab12ee1f356c2210b3449a551f18c92bb5eaa948ecf1 ChangeLog 911
 MISC metadata.xml 159 RMD160 de517ce4d7d6fd637855d92a257e2c94b8339f43 SHA1 f037b0d8dd3d592d04170d21a1a9b9c594541612 SHA256 61c7b86c8f64d194ff9e03f62b4007e0c69db2054d09e3ccdbbf6dbc0c78024b
 MD5 50b0f9698722324cfb463e8cb165fc87 metadata.xml 159
 RMD160 de517ce4d7d6fd637855d92a257e2c94b8339f43 metadata.xml 159
@@ -26,3 +31,6 @@ SHA256 320ff1900ae87d4a7e331edc7f0ed6c3a829add2e1968b641c8711397abe1aea files/di
 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
+MD5 0cca93b792f4a59b3367b13b4c8a5ac8 files/digest-gambit-4.0_beta22 241
+RMD160 01f21a759f7b5cf2142095a1e5cf4e8441f61e7d files/digest-gambit-4.0_beta22 241
+SHA256 76768cf25e6f9c7d8387e0106f80c163b27c15e28d77cb12d235beb46a111541 files/digest-gambit-4.0_beta22 241
diff --git a/dev-scheme/gambit/files/digest-gambit-4.0_beta22 b/dev-scheme/gambit/files/digest-gambit-4.0_beta22
new file mode 100644 (file)
index 0000000..0348d76
--- /dev/null
@@ -0,0 +1,3 @@
+MD5 b4978d9ea4173537d5c97868660d363c gambc-4.0b22.tar.gz 7133092
+RMD160 5cba5e532b93802d383d8927cc85a70ccd680cc0 gambc-4.0b22.tar.gz 7133092
+SHA256 14b6715466f9e8c7d5da01e8a066843e02e2101739a0a41ad17f06d903bc4caf gambc-4.0b22.tar.gz 7133092
diff --git a/dev-scheme/gambit/gambit-4.0_beta22.ebuild b/dev-scheme/gambit/gambit-4.0_beta22.ebuild
new file mode 100644 (file)
index 0000000..e800e42
--- /dev/null
@@ -0,0 +1,93 @@
+# 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_beta22.ebuild,v 1.1 2007/04/19 13:17:55 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? ( virtual/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 -e "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
+
+       # uses lots of memory
+       if use gcc-opts; then
+               einfo "compiling syntax-case.scm..."
+               LD_LIBRARY_PATH="lib/" GAMBCOPT="=." gsc/gsc misc/syntax-case.scm
+       fi
+}
+
+src_install() {
+       einstall docdir=${D}/usr/share/doc/${PF} || die "einstall failed"
+
+       rm ${D}/usr/current
+
+       use gcc-opts && 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
+}