The SLIB package is a portable library for the Scheme programming language. It provides a platform independent framework for using “packages” of Scheme procedures and syntax. Its catalog can be transparently extended to accommodate packages specific to a site, implementation, user or directory. SLIB provides compatibility and utility functions for all standard Scheme implementations including Bigloo, Chez, ELK 3.0, GAMBIT 3.0, Guile, JScheme, MacScheme, MITScheme, PLT Scheme (DrScheme and MzScheme), Pocket Scheme, RScheme, scheme->C, Scheme48, SCM, SCM Mac, scsh, Stk, T3.1, umb-scheme, and VSCM.
This package is known to build and work properly using an LFS-7.4 platform.
Download (HTTP): http://groups.csail.mit.edu/mac/ftpdir/scm/slib-3b4.tar.gz
Download MD5 sum: dcada65c4df4209c8f71211095bcef8e
Download size: 956 KB
Estimated disk space required: 10 MB (includes building and installing docs)
Estimated build time: 0.5 SBU
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/slib
Install SLIB by issuing the following commands:
sed -i 's|usr/lib|usr/share|' RScheme.init && ./configure --prefix=/usr --libdir=/usr/share && sed -i -e 's# scm$# guile#;s#ginstall-info#install-info#' \ -e 's/no-split -o/no-split --force -o/' Makefile && makeinfo -o slib.txt --plaintext --force slib.texi && makeinfo -o slib.html --html --no-split --force slib.texi
This package does not come with a functional test suite.
Now, as the root
user:
make install && ln -v -sf ../slib /usr/share/guile && mkdir -pv /usr/share/guile/site/2.0 && guile -c "(use-modules (ice-9 slib)) (require 'printf)" && install -v -m755 -d /usr/share/doc/slib-3b4 && install -v -m644 ANNOUNCE FAQ README slib.{txt,html} /usr/share/doc/slib-3b4
sed -i 's|usr/lib|usr/share|'
RScheme.init: This command is used to change the
libdir
variable embedded in the script
to match the installation.
--libdir=/usr/share
: This option puts
the installed in files /usr/share/slib
instead of /usr/lib/slib
.
makeinfo ... --force
... : This command creates needed documentation,
but needs the --force
option to
overcome warnings that are flagged as errors in recent versions of
makeinfo.
ln -v -sf ../slib /usr/share/guile: This command puts a symbolic link to the slib files in Guile's default “Implementation Vicinity”.
guile -c "(use-modules (ice-9 slib)) (require 'printf)": This command creates a guile catalog of the slib files.
Last updated on 2013-09-05 09:23:52 -0700