wok-next annotate guile/receipt @ rev 21017

Some maintenance
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Oct 16 16:46:05 2018 +0300 (2018-10-16)
parents 315a1dc02606
children d5aab818505e
rev   line source
al@20464 1 # SliTaz package receipt v2.
pankso@4044 2
pankso@4044 3 PACKAGE="guile"
al@20967 4 VERSION="2.2.4"
pankso@4044 5 CATEGORY="development"
al@20967 6 SHORT_DESC="GNU Ubiquitous Intelligent Language for Extension"
pankso@4044 7 MAINTAINER="pankso@slitaz.org"
al@20792 8 LICENSE="LGPL3"
al@20792 9 WEB_SITE="https://www.gnu.org/software/guile/"
al@21017 10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/general/guile.html"
al@20464 11
al@20792 12 TARBALL="$PACKAGE-$VERSION.tar.xz"
pascal@15589 13 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
pascal@15589 14
al@20792 15 BUILD_DEPENDS="libtool gmp-dev libunistring-dev libffi-dev gettext gc-dev \
al@20792 16 texinfo readline-dev"
al@20464 17 SPLIT="guile-dev"
pankso@4044 18
al@20464 19 compile_rules() {
pankso@4044 20 ./configure \
al@20792 21 -disable-static \
domcox@15735 22 $CONFIGURE_ARGS &&
al@20575 23 fix libtool &&
domcox@15735 24 make &&
al@20792 25 make html &&
al@20792 26 makeinfo --plaintext -o doc/r5rs/r5rs.txt doc/r5rs/r5rs.texi &&
al@20792 27 makeinfo --plaintext -o doc/ref/guile.txt doc/ref/guile.texi &&
al@20792 28 make install &&
al@20792 29 make install-html || return 1
al@20792 30
al@20792 31 mkdir -p $install/usr/share/gdb/auto-load/usr/lib
al@20792 32 mv $install/usr/lib/libguile-*-gdb.scm \
al@20792 33 $install/usr/share/gdb/auto-load/usr/lib
al@20792 34 mv $install/usr/share/doc/guile-$VERSION/guile.html \
al@20792 35 $install/usr/share/doc/guile-$VERSION/ref
al@20792 36 mv $install/usr/share/doc/guile-$VERSION/r5rs.html \
al@20792 37 $install/usr/share/doc/guile-$VERSION/r5rs
al@20792 38
al@20792 39 find examples -name "Makefile*" -delete
al@20792 40 cp -vR examples $install/usr/share/doc/guile-$VERSION
al@20792 41
al@20792 42 install -v -m644 doc/r5rs/*.txt $install/usr/share/doc/guile-$VERSION/r5rs
al@20792 43 install -v -m644 doc/ref/*.txt $install/usr/share/doc/guile-$VERSION/ref
pankso@4044 44 }
pankso@4044 45
al@20464 46 genpkg_rules() {
al@20464 47 case $PACKAGE in
al@20464 48 guile)
al@20550 49 copy @std
al@20792 50 DEPENDS="gc gmp libffi libltdl libunistring readline"
al@20464 51 ;;
al@20464 52 *-dev)
al@20550 53 copy @dev
al@20464 54 ;;
al@20464 55 esac
pankso@4044 56 }