wok-current view slib/receipt @ rev 23255
updated ocaml (4.07.1 -> 4.10.0)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Mar 25 17:29:13 2020 +0100 (2020-03-25) |
parents | a0fe56fb9c41 |
children | 67da1e63fb3d |
line source
1 # SliTaz package receipt.
3 PACKAGE="slib"
4 VERSION="3b5"
5 CATEGORY="office"
6 SHORT_DESC="Portable library for the programming language Scheme."
7 MAINTAINER="domcox@slitaz.org"
8 LICENSE="PublicDomain"
9 WEB_SITE="http://people.csail.mit.edu/jaffer/SLIB"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="http://groups.csail.mit.edu/mac/ftpdir/scm/$TARBALL"
14 DEPENDS="guile"
15 BUILD_DEPENDS="guile texinfo"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 ./configure --prefix=/usr &&
22 sed -i 's/SCHEME = scm/SCHEME = guile/' Makefile
24 echo "# install-script"
25 make install-script
27 echo "# install files"
28 mkdir -p $install/usr/share/slib
29 install -m644 *.scm *.init *.xyz *.txt *.dat *.ps $install/usr/share/slib
31 echo "# creating SLIB initialization file"
32 mkdir -p $install/usr/share/guile/1.8
33 ln -s $install/usr/share/slib $install/usr/share/guile/site
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 cp -a $install/* $fs
40 rm -f $fs/usr/share/guile/site
41 ln -s ../slib $fs/usr/share/guile/site
42 }
44 post_install()
45 {
46 # add path to initialization file
47 sed -i s'#(load-from.*#(load-from-path "/usr/share/slib/guile.init")#' \
48 "$1/usr/share/guile/1.8/ice-9/slib.scm"
49 printf "Creating catalog"
50 chroot "$1/" guile -c "((use-modules (ice-9 slib))(require 'new-catalog)(quit))"
51 status
52 }
54 post_remove()
55 {
56 rm -f "$1/usr/share/guile/1.8/slibcat"
57 }