wok-6.x annotate slib/receipt @ rev 20031
Down: mosh (1.2.5)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Aug 20 18:36:55 2017 +0200 (2017-08-20) |
parents | 9e01bc6321ea |
children | 069f60e91eb0 |
rev | line source |
---|---|
pascal@14379 | 1 # SliTaz package receipt. |
pascal@14379 | 2 |
pascal@14379 | 3 PACKAGE="slib" |
pascal@14379 | 4 VERSION="3b3" |
pascal@14379 | 5 CATEGORY="office" |
pascal@14379 | 6 SHORT_DESC="portable library for the programming language Scheme" |
pascal@14379 | 7 MAINTAINER="domcox@slitaz.org" |
al@14742 | 8 LICENSE="PublicDomain" |
pascal@14379 | 9 WEB_SITE="http://people.csail.mit.edu/jaffer/SLIB" |
pascal@14379 | 10 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@14379 | 11 WGET_URL="http://groups.csail.mit.edu/mac/ftpdir/scm/$TARBALL" |
pascal@14379 | 12 |
pascal@14379 | 13 DEPENDS="guile" |
pascal@14379 | 14 BUILD_DEPENDS="guile texinfo" |
pascal@14379 | 15 |
pascal@14379 | 16 # Rules to configure and make the package. |
pascal@14379 | 17 compile_rules() |
pascal@14379 | 18 { |
pascal@14379 | 19 ./configure \ |
pascal@14379 | 20 --prefix=/usr && |
pascal@14379 | 21 sed -i 's/SCHEME = scm/SCHEME = guile/' Makefile |
pascal@14379 | 22 echo "# install-script" |
pascal@14379 | 23 make install-script |
pascal@14379 | 24 echo "# install files" |
pascal@14379 | 25 mkdir -p $install/usr/share/slib |
pascal@14379 | 26 install -m644 *.scm *.init *.xyz *.txt *.dat *.ps $install/usr/share/slib |
pascal@14379 | 27 echo "# creating SLIB initialization file" |
pascal@14379 | 28 mkdir -p $install/usr/share/guile/1.8 |
pascal@14379 | 29 ln -s $install/usr/share/slib $install/usr/share/guile/site |
pascal@14379 | 30 } |
pascal@14379 | 31 |
pascal@14379 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@14379 | 33 genpkg_rules() |
pascal@14379 | 34 { |
pascal@14379 | 35 cp -a $install/* $fs |
pascal@19933 | 36 rm -f $fs/usr/share/guile/site |
pascal@19933 | 37 ln -s ../slib $fs/usr/share/guile/site |
pascal@14379 | 38 } |
pascal@14379 | 39 |
pascal@14379 | 40 post_install() |
pascal@14379 | 41 { |
pascal@14379 | 42 # add path to initialization file |
pascal@14379 | 43 sed -i s'#(load-from.*#(load-from-path "/usr/share/slib/guile.init")#' \ |
pascal@18730 | 44 "$1/usr/share/guile/1.8/ice-9/slib.scm" |
pascal@14379 | 45 printf "Creating catalog" |
pascal@17552 | 46 chroot "$1/" guile -c "((use-modules (ice-9 slib))(require 'new-catalog)(quit))" |
pascal@14379 | 47 status |
pascal@14379 | 48 } |
pascal@14379 | 49 |
pascal@14379 | 50 post_remove() |
pascal@14379 | 51 { |
pascal@18730 | 52 rm -f "$1/usr/share/guile/1.8/slibcat" |
pascal@14379 | 53 } |