wok-current annotate slib/receipt @ rev 24225
updated perl-io-socket-ssl (2.068 -> 2.073)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Dec 31 17:41:39 2021 +0100 (2021-12-31) |
parents | 069f60e91eb0 |
children | 934055de50e2 |
rev | line source |
---|---|
pascal@14379 | 1 # SliTaz package receipt. |
pascal@14379 | 2 |
pascal@14379 | 3 PACKAGE="slib" |
Hans-G?nter@23648 | 4 VERSION="3b6" |
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" |
Hans-G?nter@23648 | 9 WEB_SITE="https://people.csail.mit.edu/jaffer/SLIB" |
Hans-G?nter@21915 | 10 |
pascal@14379 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@23648 | 12 WGET_URL="https://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 |
Hans-G?nter@23648 | 29 install -m644 *.scm *.init *.xyz *.txt *.dat *.ps \ |
Hans-G?nter@23648 | 30 $install/usr/share/slib |
Hans-G?nter@21915 | 31 |
pascal@14379 | 32 echo "# creating SLIB initialization file" |
pascal@14379 | 33 mkdir -p $install/usr/share/guile/1.8 |
pascal@14379 | 34 ln -s $install/usr/share/slib $install/usr/share/guile/site |
pascal@14379 | 35 } |
pascal@14379 | 36 |
pascal@14379 | 37 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@14379 | 38 genpkg_rules() |
pascal@14379 | 39 { |
Hans-G?nter@23648 | 40 cp -a $install/* $fs |
Hans-G?nter@23648 | 41 rm -f $fs/usr/share/guile/site |
Hans-G?nter@23648 | 42 ln -s ../slib $fs/usr/share/guile/site |
pascal@14379 | 43 } |
pascal@14379 | 44 |
pascal@14379 | 45 post_install() |
pascal@14379 | 46 { |
pascal@14379 | 47 # add path to initialization file |
pascal@14379 | 48 sed -i s'#(load-from.*#(load-from-path "/usr/share/slib/guile.init")#' \ |
pascal@18730 | 49 "$1/usr/share/guile/1.8/ice-9/slib.scm" |
pascal@14379 | 50 printf "Creating catalog" |
pascal@17552 | 51 chroot "$1/" guile -c "((use-modules (ice-9 slib))(require 'new-catalog)(quit))" |
pascal@14379 | 52 status |
pascal@14379 | 53 } |
pascal@14379 | 54 |
pascal@14379 | 55 post_remove() |
pascal@14379 | 56 { |
pascal@18730 | 57 rm -f "$1/usr/share/guile/1.8/slibcat" |
pascal@14379 | 58 } |