wok-6.x annotate slib/receipt @ rev 22175
enigma is not broken
author | Hans-G?nter Theisgen |
---|---|
date | Fri Nov 08 17:15:11 2019 +0100 (2019-11-08) |
parents | a0fe56fb9c41 |
children | 67da1e63fb3d |
rev | line source |
---|---|
pascal@14379 | 1 # SliTaz package receipt. |
pascal@14379 | 2 |
pascal@14379 | 3 PACKAGE="slib" |
Hans-G?nter@21915 | 4 VERSION="3b5" |
pascal@14379 | 5 CATEGORY="office" |
Hans-G?nter@21915 | 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" |
Hans-G?nter@21915 | 10 |
pascal@14379 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@14379 | 12 WGET_URL="http://groups.csail.mit.edu/mac/ftpdir/scm/$TARBALL" |
pascal@14379 | 13 |
pascal@14379 | 14 DEPENDS="guile" |
pascal@14379 | 15 BUILD_DEPENDS="guile texinfo" |
pascal@14379 | 16 |
pascal@14379 | 17 # Rules to configure and make the package. |
pascal@14379 | 18 compile_rules() |
pascal@14379 | 19 { |
Hans-G?nter@21915 | 20 ./configure --prefix=/usr && |
Hans-G?nter@21915 | 21 |
pascal@14379 | 22 sed -i 's/SCHEME = scm/SCHEME = guile/' Makefile |
Hans-G?nter@21915 | 23 |
pascal@14379 | 24 echo "# install-script" |
pascal@14379 | 25 make install-script |
Hans-G?nter@21915 | 26 |
pascal@14379 | 27 echo "# install files" |
pascal@14379 | 28 mkdir -p $install/usr/share/slib |
pascal@14379 | 29 install -m644 *.scm *.init *.xyz *.txt *.dat *.ps $install/usr/share/slib |
Hans-G?nter@21915 | 30 |
pascal@14379 | 31 echo "# creating SLIB initialization file" |
pascal@14379 | 32 mkdir -p $install/usr/share/guile/1.8 |
pascal@14379 | 33 ln -s $install/usr/share/slib $install/usr/share/guile/site |
pascal@14379 | 34 } |
pascal@14379 | 35 |
pascal@14379 | 36 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@14379 | 37 genpkg_rules() |
pascal@14379 | 38 { |
pascal@14379 | 39 cp -a $install/* $fs |
pascal@19933 | 40 rm -f $fs/usr/share/guile/site |
pascal@19933 | 41 ln -s ../slib $fs/usr/share/guile/site |
pascal@14379 | 42 } |
pascal@14379 | 43 |
pascal@14379 | 44 post_install() |
pascal@14379 | 45 { |
pascal@14379 | 46 # add path to initialization file |
pascal@14379 | 47 sed -i s'#(load-from.*#(load-from-path "/usr/share/slib/guile.init")#' \ |
pascal@18730 | 48 "$1/usr/share/guile/1.8/ice-9/slib.scm" |
pascal@14379 | 49 printf "Creating catalog" |
pascal@17552 | 50 chroot "$1/" guile -c "((use-modules (ice-9 slib))(require 'new-catalog)(quit))" |
pascal@14379 | 51 status |
pascal@14379 | 52 } |
pascal@14379 | 53 |
pascal@14379 | 54 post_remove() |
pascal@14379 | 55 { |
pascal@18730 | 56 rm -f "$1/usr/share/guile/1.8/slibcat" |
pascal@14379 | 57 } |