wok-next annotate slib/receipt @ rev 15434
Up: eet (1.7.9)
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Tue Nov 05 20:57:30 2013 +0100 (2013-11-05) |
parents | 33e84bccec26 |
children | dfef8de3d270 |
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@14379 | 36 } |
pascal@14379 | 37 |
pascal@14379 | 38 post_install() |
pascal@14379 | 39 { |
pascal@14379 | 40 # add path to initialization file |
pascal@14379 | 41 sed -i s'#(load-from.*#(load-from-path "/usr/share/slib/guile.init")#' \ |
pascal@14379 | 42 /usr/share/guile/1.8/ice-9/slib.scm |
pascal@14379 | 43 printf "Creating catalog" |
pascal@14379 | 44 guile -c "((use-modules (ice-9 slib))(require 'new-catalog)(quit))" |
pascal@14379 | 45 status |
pascal@14379 | 46 } |
pascal@14379 | 47 |
pascal@14379 | 48 post_remove() |
pascal@14379 | 49 { |
pascal@14379 | 50 rm -f /usr/share/guile/1.8/slibcat |
pascal@14379 | 51 } |