wok-undigest rev 971
Add: slib (3b3)
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Sat Mar 16 21:46:39 2013 +0100 (2013-03-16) |
parents | 8bb59dffb8f2 |
children | 4f41de5701d1 |
files | slib/receipt slib/stuff/licence |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/slib/receipt Sat Mar 16 21:46:39 2013 +0100 1.3 @@ -0,0 +1,51 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="slib" 1.7 +VERSION="3b3" 1.8 +CATEGORY="office" 1.9 +SHORT_DESC="portable library for the programming language Scheme" 1.10 +MAINTAINER="domcox@slitaz.org" 1.11 +LICENSE="Public Domain" 1.12 +WEB_SITE="http://people.csail.mit.edu/jaffer/SLIB" 1.13 +TARBALL="$PACKAGE-$VERSION.tar.gz" 1.14 +WGET_URL="http://groups.csail.mit.edu/mac/ftpdir/scm/$TARBALL" 1.15 + 1.16 +DEPENDS="guile" 1.17 +BUILD_DEPENDS="guile texinfo" 1.18 + 1.19 +# Rules to configure and make the package. 1.20 +compile_rules() 1.21 +{ 1.22 + ./configure \ 1.23 + --prefix=/usr && 1.24 + sed -i 's/SCHEME = scm/SCHEME = guile/' Makefile 1.25 + echo "# install-script" 1.26 + make install-script 1.27 + echo "# install files" 1.28 + mkdir -p $install/usr/share/slib 1.29 + install -m644 *.scm *.init *.xyz *.txt *.dat *.ps $install/usr/share/slib 1.30 + echo "# creating SLIB initialization file" 1.31 + mkdir -p $install/usr/share/guile/1.8 1.32 + ln -s $install/usr/share/slib $install/usr/share/guile/site 1.33 +} 1.34 + 1.35 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.36 +genpkg_rules() 1.37 +{ 1.38 + cp -a $install/* $fs 1.39 +} 1.40 + 1.41 +post_install() 1.42 +{ 1.43 + # add path to initialization file 1.44 + sed -i s'#(load-from.*#(load-from-path "/usr/share/slib/guile.init")#' \ 1.45 + /usr/share/guile/1.8/ice-9/slib.scm 1.46 + printf "Creating catalog" 1.47 + guile -c "((use-modules (ice-9 slib))(require 'new-catalog)(quit))" 1.48 + status 1.49 +} 1.50 + 1.51 +post_remove() 1.52 +{ 1.53 + rm -f /usr/share/guile/1.8/slibcat 1.54 +}
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/slib/stuff/licence Sat Mar 16 21:46:39 2013 +0100 2.3 @@ -0,0 +1,37 @@ 2.4 + SLIB LICENSE 2.5 + 2.6 +Each file in SLIB (over a dozen lines in length) is either in the public 2.7 +domain, or comes with a statement of terms permitting users to copy, 2.8 +modify, and redistribute it. 2.9 + 2.10 +The comments at the beginning each file (containing over a dozen lines) 2.11 +must specify its terms. For instance, the comments at the beginning of 2.12 +"Template.scm" declare that it is in the public domain: 2.13 + 2.14 + ;;; "Template.scm" configuration template of *features* for Scheme 2.15 + ;;; Author: Aubrey Jaffer 2.16 + ;;; 2.17 + ;;; This code is in the public domain. 2.18 + 2.19 +Each copyrighted file lists the names of the copyright holders and gives 2.20 +permissions to copy, modify, and redistribute the file. For instance, 2.21 +the beginning of "require.scm" states: 2.22 + 2.23 + ;;;; Implementation of VICINITY and MODULES for Scheme 2.24 + ;Copyright (C) 1991, 1992, 1993, 1994, 1997 Aubrey Jaffer 2.25 + ; 2.26 + ;Permission to copy this software, to modify it, to redistribute it, 2.27 + ;to distribute modified versions, and to use it for any purpose is 2.28 + ;granted, subject to the following restrictions and understandings. 2.29 + ; 2.30 + ;1. Any copy made of this software must include this copyright notice 2.31 + ;in full. 2.32 + ; 2.33 + ;2. I have made no warranty or representation that the operation of 2.34 + ;this software will be error-free, and I am under no obligation to 2.35 + ;provide any services, by way of maintenance, update, or otherwise. 2.36 + ; 2.37 + ;3. In conjunction with products arising from the use of this 2.38 + ;material, there shall be no use of my name in any advertising, 2.39 + ;promotional, or sales literature without prior written consent in 2.40 + ;each case.