Portage is a package management system used by Gentoo Linux
# 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.16 2007/12/17 21:32:54 hkbst Exp $
*gambit-4.1.2 (17 Dec 2007)
17 Dec 2007; Marijn Schouten
bump
*gambit-4.1.1 (16 Dec 2007)
16 Dec 2007; Marijn Schouten
Changes:
Some of the REPL's debugging functionality is now available as
procedures (e.g. display-continuation-backtrace and display-
exception). These can be used to implement specialized debuggers or
error catchers.
Two new REPL commands have been added to inspect the environment of
closures (the command ",(e
environment of a closure or continuation (the command ",(v
*gambit-4.1.0 (18 Nov 2007)
18 Nov 2007; Marijn Schouten
Don't enable syntax-case anymore by default.
It conflicts with gambit's own macro system.
*gambit-4.0.1 (12 Sep 2007)
12 Sep 2007; Marijn Schouten
bump
02 Sep 2007; Marijn Schouten
inform the user about syntax-case per Etienne
02 Sep 2007; Marijn Schouten
gambit-4.0.0.ebuild:
add static use flag and move the gambcext config file to /etc where it
should be automatically config-protected (both after a request from Etienne
Bergeron
single-host to big-iron as otherwise it crashes my machine as it runs out of
memory. Fix big-iron for beta22.
*gambit-4.0.0 (26 Aug 2007)
26 Aug 2007; Marijn Schouten
bump to version 4 final
09 Jul 2007; Marijn Schouten
add emacs pre- and postlude, bug 184621
11 May 2007; Marijn Schouten
fix tests
11 May 2007; Marijn Schouten
add automatic loading of syntax-case. This may cause tests to fail. The
tests are probably faulty.
10 May 2007; Marijn Schouten
-gambit-4.0_beta20.ebuild:
remove older, probably broken ebuilds
10 May 2007; Marijn Schouten
fix beta22 syntax-case support
*gambit-4.0_beta22 (19 Apr 2007)
19 Apr 2007; Marijn Schouten
add beta22
31 Jan 2007; Marijn Schouten
fix virtual/emacs dep
*gambit-4.0_beta20 (29 Jan 2007)
29 Jan 2007; Marijn Schouten
add beta20
*gambit-4.0_beta15 (17 Oct 2005)
17 Oct 2005; Matthew Kennedy
+files/50gambit-gentoo.el, +metadata.xml, +gambit-4.0_beta15.ebuild:
Initial port. Ebuild contributed by Mihai Radu
Wang
AUX 50gambit-gentoo.el 351 RMD160 7ee53480cd16e29a347dbe5ba1f46217ee24631b SHA1 9afbfd582ef1c0fcc5fbe62a7b35f4e22147c09f SHA256 44572f602f12660a0d6536a621ccbce3be8dd4539f0fd083ed35cb41270035b5
DIST gambc-4.0b22.tar.gz 7133092 RMD160 5cba5e532b93802d383d8927cc85a70ccd680cc0 SHA1 3dad264611443991fc36fa0f949a5ff8b864f57a SHA256 14b6715466f9e8c7d5da01e8a066843e02e2101739a0a41ad17f06d903bc4caf
DIST gambc-v4_0_0.tgz 11645990 RMD160 62f71be66dd6f16a61c92a3e5217a9e41374268d SHA1 d8f31420263a93b470c9abb1c259eab4dbebe66b SHA256 a4be96da0bb4636e98b8851ea10e0ab284169e8e14613a01e4e5e5fd9bc6a5d2
DIST gambc-v4_0_1.tgz 11676506 RMD160 ec53f9cfc162b7d82521ef5a8536e379fea65805 SHA1 7400fb30385bdebe715e3b5e04a8700498c8fd5a SHA256 8a5577fed7e788f4a8c72f47a59ccd1a26729c22d149a290e169c369bbe66c45
DIST gambc-v4_1_0.tgz 11764506 RMD160 162095343bd5163b1f1c5c30862f3831bc396a50 SHA1 f1759cd8f27bfcd1d9ab270bd73d78d7f0641188 SHA256 4addf724778f5170b0a2bafe86fb433ce52a4ec32e0d7acc35959e3f38800f27
DIST gambc-v4_1_1.tgz 11971875 RMD160 9a3dc12b1b98c62f3c567150957b0337360bcee8 SHA1 721a00e3d2fdf41780f0fb877060105780ac9a0d SHA256 8db1fa538966ceae1f8b5f916758c21dbf0539417167c7cf99b609c12b11c7bc
DIST gambc-v4_1_2.tgz 11986578 RMD160 645366cffbc0375ffb2c4d0ccad1359385dd4820 SHA1 ee105466ebb6498e1caea27f0282672bb8f3d7bf SHA256 16158e0ce3d79bb23039e9c429971dff3baef944582198d27df52a0b3808a4ea
EBUILD gambit-4.0.0.ebuild 3809 RMD160 3f03b6889895799fce479d8f971e423aea829aa1 SHA1 3c2f79d3b2a3d3e8eab9ecd8c14773593a468f13 SHA256 0c0863d41dd9d32e1caa5da4ffd7bd635baa33c4b58a96a3233932dada74775e
EBUILD gambit-4.0.1.ebuild 3809 RMD160 656a4cdab20cb51c8734fefdc5e5f55bd1cfcd69 SHA1 7964d1d8bca2a951265e3a549ffc1b7ad9536c4a SHA256 7691effed0e82850988319d1b862aa42542e808cc4b1d1c887ccc9ec51db5da5
EBUILD gambit-4.0_beta22.ebuild 3155 RMD160 8234224efd18b5d95585d64266614bffd5e04dae SHA1 37630b38efe0358379ebc087d44f67450023ec11 SHA256 558c2adefdfc954f10aeba50cb863f4dda9d06f00f8fc12d47c907f95b3dbb23
EBUILD gambit-4.1.0.ebuild 3862 RMD160 f8ffe3823faa1cdefe5f2f1aa0dc7fd6264c4e12 SHA1 b64f4a9c3cff37b32d1729b730d4b4f10e2151cb SHA256 8b6f13a2836831d41761a9af059fb5d9e8693b0378b434303a83f4ef10d08fd2
EBUILD gambit-4.1.1.ebuild 3073 RMD160 f1a398a751f4e65caf3d1eb26716e22b9038a964 SHA1 239d0d456be5793bfa950e4e6e11c0d37dd0147c SHA256 966870dd800654b2387d0761d96f9aeddc4dbf408d3ab8fa5df72eabc7b528fa
EBUILD gambit-4.1.2.ebuild 2916 RMD160 d04c523a94400b68badf04a1b78d5bc073e2fbac SHA1 8f4f29eef6bda355a584a517b924c70a9d7df1d1 SHA256 7b1ec8d55925121289230e4b3fe057fe035035bf955d63535a298490ee2dee98
MISC ChangeLog 3224 RMD160 9729de6ab68d5916c8cc5b78a1d288e0db89f5c8 SHA1 f295cbfbe02f9748111fc1a20f69c3ebb1f3afc8 SHA256 37263ec3507b924115ad78c785d467c34dd695fceefb213c17b4ccaa59a003d6
MISC metadata.xml 159 RMD160 de517ce4d7d6fd637855d92a257e2c94b8339f43 SHA1 f037b0d8dd3d592d04170d21a1a9b9c594541612 SHA256 61c7b86c8f64d194ff9e03f62b4007e0c69db2054d09e3ccdbbf6dbc0c78024b
# 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.0.ebuild,v 1.3 2007/09/02 11:52:29 hkbst Exp $
inherit eutils elisp-common check-reqs autotools multilib
MY_PN=gambc
MY_PV=${PV//./_}
MY_P=${MY_PN}-v${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/v4.0/source/${MY_P}.tgz"
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="big-iron emacs static"
pkg_setup() {
if ! use big-iron; then
ewarn "NOT compiling each Scheme module as a single C function"
ewarn "NOT using gcc specific optimizations"
ewarn "NOT compiling syntax-case macro system"
ewarn "approximately 0.5GB ram will be needed"
ewarn "if you experience thrashing, try disabling parallel building or setting -O1"
# need this much memory in MBytes (does *not* check swap)
CHECKREQS_MEMORY="768" check_reqs
else
ewarn "compiling each Scheme module as a single C function"
ewarn "using gcc specific optimizations"
ewarn "compiling syntax-case macro system"
ewarn "approximately 2GB ram will be needed instead of 0.5GB"
ewarn "this will cause heavy thrashing of your system"
ewarn "and may cause your compiler to crash when it runs out of memory"
ewarn "unless your system is BIG IRON"
# need this much memory in MBytes (does *not* check swap)
CHECKREQS_MEMORY="2560" check_reqs
fi
}
src_unpack() {
unpack ${A}; cd "${S}"
# cp configure.ac configure.ac.old
sed -e 's:PACKAGE_SUBDIR="/$PACKAGE_VERSION"::' \
-e 's:#PACKAGE_SUBDIR="":PACKAGE_SUBDIR="":' -i configure.ac
#don't force -O1
sed 's:$DASH_O1::' -i configure.ac
eautoreconf
# diff -u configure.ac.old configure.ac
}
src_compile() {
econf $(if use static; then echo --disable-shared; else echo --enable-shared; fi) \
$(use_enable big-iron single-host) $(use_enable big-iron gcc-opts)
emake || die "emake failed"
if use emacs; then
( cd misc; elisp-comp *.el )
fi
# compile syntax-case
if use big-iron; then
einfo "compiling syntax-case.scm..."
LD_LIBRARY_PATH="lib/" GAMBCOPT="=." gsc/gsc misc/syntax-case.scm
fi
}
src_test() {
vecho ">>> Test phase [check]: ${CATEGORY}/${PF}"
if ! GAMBCOPT="=." emake -j1 check; then
hasq test $FEATURES && die "Make test failed. See above for details."
hasq test $FEATURES || eerror "Make test failed. See above for details."
fi
}
src_install() {
einstall docdir=${D}/usr/share/doc/${PF} || die "einstall failed"
rm ${D}/usr/current
use big-iron && 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/gambit-compiler
dosym gsi usr/bin/gambit-interpreter
# dodir /etc/env.d/ && echo "GAMBCOPT=\"=/usr/\"" > ${D}/etc/env.d/50gambit
echo "GAMBCOPT=\"=/usr/\"" > "${T}/50gambit" && doenvd "${T}/50gambit"
ewarn "syntax-case will be automatically loaded for R5RS+ goodness"
ewarn "edit /etc/gambcext if you want to set your own options"
dosym /etc/gambcext /usr/gambcext
echo "(load \"/usr/$(get_libdir)/syntax-case\")" > ${D}/etc/gambcext
}
pkg_postinst() {
use emacs && elisp-site-regen
}
pkg_postrm() {
use emacs && elisp-site-regen
}
# 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.1.ebuild,v 1.1 2007/09/12 12:06:53 hkbst Exp $
inherit eutils elisp-common check-reqs autotools multilib
MY_PN=gambc
MY_PV=${PV//./_}
MY_P=${MY_PN}-v${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/v4.0/source/${MY_P}.tgz"
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="big-iron emacs static"
pkg_setup() {
if ! use big-iron; then
ewarn "NOT compiling each Scheme module as a single C function"
ewarn "NOT using gcc specific optimizations"
ewarn "NOT compiling syntax-case macro system"
ewarn "approximately 0.5GB ram will be needed"
ewarn "if you experience thrashing, try disabling parallel building or setting -O1"
# need this much memory in MBytes (does *not* check swap)
CHECKREQS_MEMORY="768" check_reqs
else
ewarn "compiling each Scheme module as a single C function"
ewarn "using gcc specific optimizations"
ewarn "compiling syntax-case macro system"
ewarn "approximately 2GB ram will be needed instead of 0.5GB"
ewarn "this will cause heavy thrashing of your system"
ewarn "and may cause your compiler to crash when it runs out of memory"
ewarn "unless your system is BIG IRON"
# need this much memory in MBytes (does *not* check swap)
CHECKREQS_MEMORY="2560" check_reqs
fi
}
src_unpack() {
unpack ${A}; cd "${S}"
# cp configure.ac configure.ac.old
sed -e 's:PACKAGE_SUBDIR="/$PACKAGE_VERSION"::' \
-e 's:#PACKAGE_SUBDIR="":PACKAGE_SUBDIR="":' -i configure.ac
#don't force -O1
sed 's:$DASH_O1::' -i configure.ac
eautoreconf
# diff -u configure.ac.old configure.ac
}
src_compile() {
econf $(if use static; then echo --disable-shared; else echo --enable-shared; fi) \
$(use_enable big-iron single-host) $(use_enable big-iron gcc-opts)
emake || die "emake failed"
if use emacs; then
( cd misc; elisp-comp *.el )
fi
# compile syntax-case
if use big-iron; then
einfo "compiling syntax-case.scm..."
LD_LIBRARY_PATH="lib/" GAMBCOPT="=." gsc/gsc misc/syntax-case.scm
fi
}
src_test() {
vecho ">>> Test phase [check]: ${CATEGORY}/${PF}"
if ! GAMBCOPT="=." emake -j1 check; then
hasq test $FEATURES && die "Make test failed. See above for details."
hasq test $FEATURES || eerror "Make test failed. See above for details."
fi
}
src_install() {
einstall docdir=${D}/usr/share/doc/${PF} || die "einstall failed"
rm ${D}/usr/current
use big-iron && 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/gambit-compiler
dosym gsi usr/bin/gambit-interpreter
# dodir /etc/env.d/ && echo "GAMBCOPT=\"=/usr/\"" > ${D}/etc/env.d/50gambit
echo "GAMBCOPT=\"=/usr/\"" > "${T}/50gambit" && doenvd "${T}/50gambit"
ewarn "syntax-case will be automatically loaded for R5RS+ goodness"
ewarn "edit /etc/gambcext if you want to set your own options"
dosym /etc/gambcext /usr/gambcext
echo "(load \"/usr/$(get_libdir)/syntax-case\")" > ${D}/etc/gambcext
}
pkg_postinst() {
use emacs && elisp-site-regen
}
pkg_postrm() {
use emacs && elisp-site-regen
}
# 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.8 2007/09/02 11:43:22 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 big-iron"
pkg_setup() {
if ! use big-iron; then
ewarn "not using gcc specific optimizations and not compiling syntax-case macro system"
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 and compiling syntax-case macro system"
ewarn "this will cause approximately 2GB ram to be used instead of 0.5GB."
ewarn "this will cause heavy thrashing of your system unless your system is big iron"
# 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 big-iron gcc-opts)
emake || die "emake failed"
if use emacs; then
( cd misc; elisp-comp *.el )
fi
# compile syntax-case
if use big-iron; then
einfo "compiling syntax-case.scm..."
LD_LIBRARY_PATH="lib/" GAMBCOPT="=." gsc/gsc misc/syntax-case.scm
fi
}
src_test() {
vecho ">>> Test phase [check]: ${CATEGORY}/${PF}"
if ! GAMBCOPT="=." emake -j1 check; then
hasq test $FEATURES && die "Make test failed. See above for details."
hasq test $FEATURES || eerror "Make test failed. See above for details."
fi
}
src_install() {
einstall docdir=${D}/usr/share/doc/${PF} || die "einstall failed"
rm ${D}/usr/current
use big-iron && 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/gambit-compiler
dosym gsi usr/bin/gambit-interpreter
# automatically load syntax-case for r5rs+ goodness
dodir /etc/env.d/ && echo "GAMBCOPT=\"=/usr/\"" > ${D}/etc/env.d/50gambit
echo "(load \"/usr/$(get_libdir)/syntax-case\")" > ${D}/usr/gambcext
}
pkg_postinst() {
use emacs && elisp-site-regen
}
pkg_postrm() {
use emacs && elisp-site-regen
}
# 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.1.0.ebuild,v 1.1 2007/11/18 18:29:34 hkbst Exp $
inherit eutils elisp-common check-reqs autotools multilib
MY_PN=gambc
MY_PV=${PV//./_}
MY_P=${MY_PN}-v${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/v${PV%.*}/source/${MY_P}.tgz"
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="big-iron emacs static"
pkg_setup() {
if ! use big-iron; then
ewarn "NOT compiling each Scheme module as a single C function"
ewarn "NOT using gcc specific optimizations"
# ewarn "NOT compiling syntax-case macro system"
ewarn "approximately 0.5GB ram will be needed"
ewarn "if you experience thrashing, try disabling parallel building or setting -O1"
# need this much memory in MBytes (does *not* check swap)
CHECKREQS_MEMORY="768" check_reqs
else
ewarn "compiling each Scheme module as a single C function"
ewarn "using gcc specific optimizations"
# ewarn "compiling syntax-case macro system"
ewarn "approximately 2GB ram will be needed instead of 0.5GB"
ewarn "this will cause heavy thrashing of your system"
ewarn "and may cause your compiler to crash when it runs out of memory"
ewarn "unless your system is BIG IRON"
# need this much memory in MBytes (does *not* check swap)
CHECKREQS_MEMORY="2560" check_reqs
fi
}
src_unpack() {
unpack ${A}; cd "${S}"
# cp configure.ac configure.ac.old
sed -e 's:PACKAGE_SUBDIR="/$PACKAGE_VERSION"::' \
-e 's:#PACKAGE_SUBDIR="":PACKAGE_SUBDIR="":' -i configure.ac
#don't force -O1
sed 's:$DASH_O1::' -i configure.ac
eautoreconf
# diff -u configure.ac.old configure.ac
}
src_compile() {
# econf $(if use static; then echo --disable-shared; else echo --enable-shared; fi) \
econf $(use_enable !static shared) $(use_enable big-iron single-host) $(use_enable big-iron gcc-opts)
emake || die "emake failed"
if use emacs; then
( cd misc; elisp-comp *.el )
fi
# compile syntax-case
# if use big-iron; then
# einfo "compiling syntax-case.scm..."
# LD_LIBRARY_PATH="lib/" GAMBCOPT="=." gsc/gsc misc/syntax-case.scm
# fi
}
_src_test() {
vecho ">>> Test phase [check]: ${CATEGORY}/${PF}"
if ! GAMBCOPT="=." emake -j1 check; then
hasq test $FEATURES && die "Make test failed. See above for details."
hasq test $FEATURES || eerror "Make test failed. See above for details."
fi
}
src_install() {
einstall docdir=${D}/usr/share/doc/${PF} || die "einstall failed"
rm ${D}/usr/current
# use big-iron && 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/gambit-compiler
dosym gsi usr/bin/gambit-interpreter
# dodir /etc/env.d/ && echo "GAMBCOPT=\"=/usr/\"" > ${D}/etc/env.d/50gambit
echo "GAMBCOPT=\"=/usr/\"" > "${T}/50gambit" && doenvd "${T}/50gambit"
# ewarn "syntax-case will be automatically loaded for R5RS+ goodness"
# ewarn "edit /etc/gambcext if you want to set your own options"
# dosym /etc/gambcext /usr/gambcext
# echo "(load \"/usr/$(get_libdir)/syntax-case\")" > ${D}/etc/gambcext
}
pkg_postinst() {
use emacs && elisp-site-regen
}
pkg_postrm() {
use emacs && elisp-site-regen
}
# 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.1.1.ebuild,v 1.1 2007/12/16 13:01:23 hkbst Exp $
inherit eutils elisp-common check-reqs autotools multilib
MY_PN=gambc
MY_PV=${PV//./_}
MY_P=${MY_PN}-v${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/v${PV%.*}/source/${MY_P}.tgz"
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="big-iron emacs static"
pkg_setup() {
if ! use big-iron; then
ewarn "NOT compiling each Scheme module as a single C function"
ewarn "NOT using gcc specific optimizations"
# ewarn "NOT compiling syntax-case macro system"
ewarn "approximately 0.5GB ram will be needed"
ewarn "if you experience thrashing, try disabling parallel building or setting -O1"
# need this much memory in MBytes (does *not* check swap)
CHECKREQS_MEMORY="768" check_reqs
else
ewarn "compiling each Scheme module as a single C function"
ewarn "using gcc specific optimizations"
# ewarn "compiling syntax-case macro system"
ewarn "approximately 2GB ram will be needed instead of 0.5GB"
ewarn "this will cause heavy thrashing of your system"
ewarn "and may cause your compiler to crash when it runs out of memory"
ewarn "unless your system is BIG IRON"
# need this much memory in MBytes (does *not* check swap)
CHECKREQS_MEMORY="2560" check_reqs
fi
}
src_unpack() {
unpack ${A}; cd "${S}"
# cp configure.ac configure.ac.old
sed -e 's:PACKAGE_SUBDIR="/$PACKAGE_VERSION"::' \
-e 's:#PACKAGE_SUBDIR="":PACKAGE_SUBDIR="":' -i configure.ac
#don't force -O1
sed 's:$DASH_O1::' -i configure.ac
eautoreconf
# diff -u configure.ac.old configure.ac
}
src_compile() {
econf $(use_enable !static shared) $(use_enable big-iron single-host) $(use_enable big-iron gcc-opts)
emake || die "emake failed"
if use emacs; then
( cd misc; elisp-comp *.el )
fi
#workaround
mv gsi/libgambcgsi.so gsc/libgambcgsc.so lib/
}
src_install() {
einstall docdir="${D}"/usr/share/doc/${PF} || die "einstall failed"
rm "${D}"/usr/current
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/gambit-compiler
dosym gsi usr/bin/gambit-interpreter
echo "GAMBCOPT=\"=/usr/\"" > "${T}"/50gambit && doenvd "${T}"/50gambit
}
pkg_postinst() {
use emacs && elisp-site-regen
}
pkg_postrm() {
use emacs && elisp-site-regen
}
# 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.1.2.ebuild,v 1.1 2007/12/17 21:32:54 hkbst Exp $
inherit eutils elisp-common check-reqs autotools multilib
MY_PN=gambc
MY_PV=${PV//./_}
MY_P=${MY_PN}-v${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/v${PV%.*}/source/${MY_P}.tgz"
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="big-iron emacs static"
pkg_setup() {
if ! use big-iron; then
ewarn "NOT compiling each Scheme module as a single C function"
ewarn "NOT using gcc specific optimizations"
ewarn "approximately 0.5GB ram will be needed"
ewarn "if you experience thrashing, try disabling parallel building or setting -O1"
# need this much memory in MBytes (does *not* check swap)
CHECKREQS_MEMORY="768" check_reqs
else
ewarn "compiling each Scheme module as a single C function"
ewarn "using gcc specific optimizations"
ewarn "approximately 2GB ram will be needed instead of 0.5GB"
ewarn "this will cause heavy thrashing of your system"
ewarn "and may cause your compiler to crash when it runs out of memory"
ewarn "unless your system is BIG IRON"
# need this much memory in MBytes (does *not* check swap)
CHECKREQS_MEMORY="2560" check_reqs
fi
}
src_unpack() {
unpack ${A}; cd "${S}"
# cp configure.ac configure.ac.old
sed -e 's:PACKAGE_SUBDIR="/$PACKAGE_VERSION"::' \
-e 's:#PACKAGE_SUBDIR="":PACKAGE_SUBDIR="":' -i configure.ac
#don't force -O1
sed 's:$DASH_O1::' -i configure.ac
eautoreconf
# diff -u configure.ac.old configure.ac
}
src_compile() {
econf $(use_enable !static shared) $(use_enable big-iron single-host) $(use_enable big-iron gcc-opts)
emake || die "emake failed"
if use emacs; then
( cd misc; elisp-comp *.el )
fi
}
src_install() {
einstall docdir="${D}"/usr/share/doc/${PF} || die "einstall failed"
rm "${D}"/usr/current
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/gambit-compiler
dosym gsi usr/bin/gambit-interpreter
echo "GAMBCOPT=\"=/usr/\"" > "${T}"/50gambit && doenvd "${T}"/50gambit
}
pkg_postinst() {
use emacs && elisp-site-regen
}
pkg_postrm() {
use emacs && elisp-site-regen
}