diff options
author | Marijn Schouten <hkbst@gentoo.org> | 2007-06-07 18:10:34 +0000 |
---|---|---|
committer | Marijn Schouten <hkbst@gentoo.org> | 2007-06-07 18:10:34 +0000 |
commit | 9f501aa0026e7f6cd0615272b3b65b738e573f59 (patch) | |
tree | b2a7503f7ce698bd8a69f3dcd6f2b36fe21eeeec /dev-scheme | |
parent | Stable on sparc (diff) | |
download | gentoo-2-9f501aa0026e7f6cd0615272b3b65b738e573f59.tar.gz gentoo-2-9f501aa0026e7f6cd0615272b3b65b738e573f59.tar.bz2 gentoo-2-9f501aa0026e7f6cd0615272b3b65b738e573f59.zip |
fix slib gambit support
(Portage version: 2.1.2.9)
Diffstat (limited to 'dev-scheme')
-rw-r--r-- | dev-scheme/slib/ChangeLog | 5 | ||||
-rw-r--r-- | dev-scheme/slib/slib-3.1.4-r3.ebuild | 26 |
2 files changed, 20 insertions, 11 deletions
diff --git a/dev-scheme/slib/ChangeLog b/dev-scheme/slib/ChangeLog index 07157664f674..2f7e5d9c9cc2 100644 --- a/dev-scheme/slib/ChangeLog +++ b/dev-scheme/slib/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for dev-scheme/slib # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-scheme/slib/ChangeLog,v 1.31 2007/06/06 16:28:00 hkbst Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-scheme/slib/ChangeLog,v 1.32 2007/06/07 18:10:34 hkbst Exp $ + + 07 Jun 2007; Marijn Schouten <hkBst@gentoo.org> slib-3.1.4-r3.ebuild: + fix slib gambit support *slib-3.1.4-r3 (06 Jun 2007) diff --git a/dev-scheme/slib/slib-3.1.4-r3.ebuild b/dev-scheme/slib/slib-3.1.4-r3.ebuild index 4c45bb7c03db..0c6b2e84050f 100644 --- a/dev-scheme/slib/slib-3.1.4-r3.ebuild +++ b/dev-scheme/slib/slib-3.1.4-r3.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-scheme/slib/slib-3.1.4-r3.ebuild,v 1.1 2007/06/06 16:28:00 hkbst Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-scheme/slib/slib-3.1.4-r3.ebuild,v 1.2 2007/06/07 18:10:34 hkbst Exp $ inherit versionator eutils @@ -47,6 +47,8 @@ src_unpack() { # einstall || die "install failed" # emake infodir="${D}/usr/share/info/" mandir="${D}/usr/share/doc/${P}/" infoz || die "infoz failed" + + sed 's:(lambda () "/usr/local/share/gambc/")):(lambda () "/usr/share/gambit")):' -i gambit.init } src_compile() { @@ -57,6 +59,7 @@ src_install() { emake install || die "install failed" dodoc ANNOUNCE ChangeLog FAQ README + dodir /usr/share/gambit/ more_install } @@ -84,43 +87,46 @@ pkg_postinst() { [ "${ROOT}" == "/" ] && pkg_config } -IMPLEMENTATIONS="bigloo elk gambit guile drscheme scm" +IMPLEMENTATIONS="bigloo drscheme elk gambit guile scm" # mit-scheme pkg_config() { for impl in ${IMPLEMENTATIONS}; do - install_slib dev-scheme/${impl} + install_slib ${impl} # echo '(slib:report-version)' | slib ${impl} done } make_load_expression() { - echo "(load \\\"${INSTALL_DIR}/$1.init\\\")" + echo "(load \\\"${INSTALL_DIR}$1.init\\\")" } make_installers() { - PROGRAM="(require 'new-catalog)" # (slib:report-version)" + PROGRAM="(require 'new-catalog) (slib:report-version)" bigloo_install_command="bigloo -s -eval \"(begin "$(make_load_expression bigloo)" ${PROGRAM} (exit))\"" + drscheme_install_command="mzscheme -vme \"(begin $(make_load_expression DrScheme) ${PROGRAM})\"" elk_install_command="echo \"$(make_load_expression elk) ${PROGRAM}\" | elk -l -" gambit_install_command="gambit-interpreter -e \"$(make_load_expression gambit) ${PROGRAM}\"" guile_install_command="guile -c \"$(make_load_expression guile) ${PROGRAM}\"" + #variable names may not contain hyphens (-) + mitscheme_install_command="echo \"(set! load/suppress-loading-message? #t) $(make_load_expression mitscheme) ${PROGRAM}\" | mit-scheme --batch-mode" + echo ${mitscheme_install_command} scm_install_command="scm -e \"${PROGRAM}\"" - drscheme_install_command="mzscheme -vme \"(begin $(make_load_expression DrScheme) ${PROGRAM})\"" for impl in ${IMPLEMENTATIONS}; do - command_var=${impl}_install_command + command_var=${impl//-/}_install_command make_installer ${impl} "${!command_var}" done } make_installer() { - echo $2 > install_slib_for_$1 + echo $2 > install_slib_for_${1//-/} } install_slib() { - if has_version $1; then - script=install_slib_for_${1##*/} + if has_version dev-scheme/$1; then + script=install_slib_for_${1//-/} einfo "Registering slib with $1..." # echo running: $(cat /usr/sbin/${script}) $script |