summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarijn Schouten <hkbst@gentoo.org>2007-05-29 14:04:41 +0000
committerMarijn Schouten <hkbst@gentoo.org>2007-05-29 14:04:41 +0000
commit3092a54201a9885d8d23cefe384e607f275fadd2 (patch)
treeb30d0645fe65ef362d5b944066cdfe48b7381878 /dev-scheme/slib
parentInitial import of ebuild. (diff)
downloadhistorical-3092a54201a9885d8d23cefe384e607f275fadd2.tar.gz
historical-3092a54201a9885d8d23cefe384e607f275fadd2.tar.bz2
historical-3092a54201a9885d8d23cefe384e607f275fadd2.zip
add bash magic to increase extensibility
Package-Manager: portage-2.1.2.7
Diffstat (limited to 'dev-scheme/slib')
-rw-r--r--dev-scheme/slib/ChangeLog5
-rw-r--r--dev-scheme/slib/Manifest16
-rw-r--r--dev-scheme/slib/slib-3.1.4-r2.ebuild35
3 files changed, 41 insertions, 15 deletions
diff --git a/dev-scheme/slib/ChangeLog b/dev-scheme/slib/ChangeLog
index c51982fc27a8..3c3540fcd1f9 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.29 2007/05/29 11:57:13 hkbst Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-scheme/slib/ChangeLog,v 1.30 2007/05/29 14:04:41 hkbst Exp $
+
+ 29 May 2007; Marijn Schouten <hkBst@gentoo.org> slib-3.1.4-r2.ebuild:
+ add bash magic to increase extensibility
29 May 2007; Marijn Schouten <hkBst@gentoo.org> slib-3.1.4-r2.ebuild:
prepare for supporting several implementation + misc fixes
diff --git a/dev-scheme/slib/Manifest b/dev-scheme/slib/Manifest
index 64b65776707d..2b2e2872ebab 100644
--- a/dev-scheme/slib/Manifest
+++ b/dev-scheme/slib/Manifest
@@ -23,14 +23,14 @@ EBUILD slib-3.1.1.ebuild 898 RMD160 df6cd4b7ad88eecbd4a8b66bee1299267206bdbe SHA
MD5 443d2bbb88ba47a2c49a6d6aa7ebff1d slib-3.1.1.ebuild 898
RMD160 df6cd4b7ad88eecbd4a8b66bee1299267206bdbe slib-3.1.1.ebuild 898
SHA256 ad8dc76491f06d27097867bfc60d9ec850ef78cb3449c9e3d7b7125cb223a4dc slib-3.1.1.ebuild 898
-EBUILD slib-3.1.4-r2.ebuild 1701 RMD160 771d3e5ab41bfa6bd334e405cd16c4a52aa42521 SHA1 8d162c6c1e876814e038ee40b98c938ebd7999ea SHA256 74b97b24360a173974e63d2aed3e2e066a33f79a834dacb4955f66d7c6667803
-MD5 4ee2784eb756fbe7f1b4bfc1c79bfc17 slib-3.1.4-r2.ebuild 1701
-RMD160 771d3e5ab41bfa6bd334e405cd16c4a52aa42521 slib-3.1.4-r2.ebuild 1701
-SHA256 74b97b24360a173974e63d2aed3e2e066a33f79a834dacb4955f66d7c6667803 slib-3.1.4-r2.ebuild 1701
-MISC ChangeLog 5717 RMD160 b26cad402c16a3ab9ab1b841a742b68d0dd330d7 SHA1 9ae424ef771e3f1cb73c916744e826b6961da135 SHA256 140c3111a8fd56462fc67a55d6d1410b27b908757bdb04236db5c8ba30455e44
-MD5 c05326150db8c6aebe776734186c56dd ChangeLog 5717
-RMD160 b26cad402c16a3ab9ab1b841a742b68d0dd330d7 ChangeLog 5717
-SHA256 140c3111a8fd56462fc67a55d6d1410b27b908757bdb04236db5c8ba30455e44 ChangeLog 5717
+EBUILD slib-3.1.4-r2.ebuild 2095 RMD160 7c25ba6ddd4fa3d54f85b6b3bf85bf290cb621e3 SHA1 13771d661f1db003da4cff13056907bbae8f681f SHA256 264260d800f8ab840742a7586560d15453cc4d105d5bde7cf311e9040a409438
+MD5 cbbc8ad5aa5b8268afdf19fc82ee7667 slib-3.1.4-r2.ebuild 2095
+RMD160 7c25ba6ddd4fa3d54f85b6b3bf85bf290cb621e3 slib-3.1.4-r2.ebuild 2095
+SHA256 264260d800f8ab840742a7586560d15453cc4d105d5bde7cf311e9040a409438 slib-3.1.4-r2.ebuild 2095
+MISC ChangeLog 5833 RMD160 1cc4deb58e9913acc815d6725f9ca08233facd75 SHA1 1212992072d6e1a7e975ebbc6b2b9132ac3b780c SHA256 3f4610f6801b7786b0c84b7ade53e620d02b7e5c2a430beec79014ed0da4a1f5
+MD5 aa4323dada48938fbe89494a91b5022c ChangeLog 5833
+RMD160 1cc4deb58e9913acc815d6725f9ca08233facd75 ChangeLog 5833
+SHA256 3f4610f6801b7786b0c84b7ade53e620d02b7e5c2a430beec79014ed0da4a1f5 ChangeLog 5833
MISC metadata.xml 398 RMD160 7fabdfdd6bbeac709b9571c0835ec15e588597b3 SHA1 c51deac0a50261fa887a2e2e9e2d35af40605496 SHA256 9f2719a4fba8cfe3430d7dbd7638dab8ab3b9dbbe20a1364544dc35ea5f8d75a
MD5 b8e27e247b747f45efd6dd67f4a1dcb1 metadata.xml 398
RMD160 7fabdfdd6bbeac709b9571c0835ec15e588597b3 metadata.xml 398
diff --git a/dev-scheme/slib/slib-3.1.4-r2.ebuild b/dev-scheme/slib/slib-3.1.4-r2.ebuild
index 464fa4d0cf91..eae487846738 100644
--- a/dev-scheme/slib/slib-3.1.4-r2.ebuild
+++ b/dev-scheme/slib/slib-3.1.4-r2.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-r2.ebuild,v 1.2 2007/05/29 11:57:13 hkbst Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-scheme/slib/slib-3.1.4-r2.ebuild,v 1.3 2007/05/29 14:04:41 hkbst Exp $
inherit versionator eutils
@@ -25,6 +25,21 @@ RDEPEND=""
DEPEND="app-arch/unzip"
# test? ( dev-scheme/scm )"
+IMPLEMENTATIONS="guile"
+
+src_compile() {
+ mkdir installers
+ cd installers
+
+ guile_install_command="guile -c \"(use-modules (ice-9 slib)) (require 'new-catalog)\""
+# gauche_install_command="gosh -e \"(require 'new-catalog)\""
+
+ for impl in ${IMPLEMENTATIONS}; do
+ command_var=${impl}_install_command
+ make_installer ${impl} "${!command_var}"
+ done
+}
+
# maybe also do "make infoz"
src_install() {
INSTALL_DIR="/usr/share/slib/"
@@ -37,6 +52,8 @@ src_install() {
dosym ${INSTALL_DIR} /usr/share/guile/slib # link from guile dir
dosym ${INSTALL_DIR} /usr/lib/slib
dodir /etc/env.d/ && echo "SCHEME_LIBRARY_PATH=\"${INSTALL_DIR}\"" > ${D}/etc/env.d/50slib
+
+ dosbin installers/*
}
pkg_postinst() {
@@ -44,16 +61,22 @@ pkg_postinst() {
}
pkg_config() {
- install_slib dev-scheme/guile "guile -c \"(use-modules (ice-9 slib)) (require 'new-catalog)\""
-# install_slib dev-scheme/gauche "gosh -e \"(require 'new-catalog)\""
+ for impl in ${IMPLEMENTATIONS}; do
+ install_slib dev-scheme/${impl}
+ done
+}
+
+make_installer() {
+ echo $2 > install_slib_for_$1
}
install_slib() {
if has_version $1; then
+ script=install_slib_for_${1##*/}
einfo "Registering slib with $1..."
-# echo running: $2
- eval $2
+ echo running: $(cat /usr/sbin/${script})
+ $script
else
- einfo "$1 not installed, not registering ..."
+ einfo "$1 not installed, not registering..."
fi
} \ No newline at end of file