summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarijn Schouten <hkbst@gentoo.org>2007-04-19 13:17:55 +0000
committerMarijn Schouten <hkbst@gentoo.org>2007-04-19 13:17:55 +0000
commitec766a5d47dd5ecb44a929d88323ae32bb5ba1a4 (patch)
treec2c9c1e7218810198d340269b4cb025a91401283 /dev-scheme
parentBumping to revision 1.4.4-r1 to fix compiling on Gentoo/FreeBSD (diff)
downloadgentoo-2-ec766a5d47dd5ecb44a929d88323ae32bb5ba1a4.tar.gz
gentoo-2-ec766a5d47dd5ecb44a929d88323ae32bb5ba1a4.tar.bz2
gentoo-2-ec766a5d47dd5ecb44a929d88323ae32bb5ba1a4.zip
add beta22
(Portage version: 2.1.2.4)
Diffstat (limited to 'dev-scheme')
-rw-r--r--dev-scheme/gambit/ChangeLog7
-rw-r--r--dev-scheme/gambit/files/digest-gambit-4.0_beta223
-rw-r--r--dev-scheme/gambit/gambit-4.0_beta22.ebuild93
3 files changed, 102 insertions, 1 deletions
diff --git a/dev-scheme/gambit/ChangeLog b/dev-scheme/gambit/ChangeLog
index a72593e3384b..a468dca218bf 100644
--- a/dev-scheme/gambit/ChangeLog
+++ b/dev-scheme/gambit/ChangeLog
@@ -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
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
index 000000000000..0348d764ef92
--- /dev/null
+++ b/dev-scheme/gambit/files/digest-gambit-4.0_beta22
@@ -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
index 000000000000..e800e42717c4
--- /dev/null
+++ b/dev-scheme/gambit/gambit-4.0_beta22.ebuild
@@ -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
+}