wok-next annotate pan/receipt @ rev 8000

Fix: Don't install tazwok-experimental on tank
author Antoine Bodin <gokhlayeh@slitaz.org>
date Tue Jan 18 17:46:55 2011 +0100 (2011-01-18)
parents 8fd90285da5e
children 4ac89a72e7e1
rev   line source
allan316@3206 1 # SliTaz package receipt.
allan316@3206 2
allan316@3206 3 PACKAGE="pan"
allan316@3206 4 VERSION="0.133"
allan316@3206 5 CATEGORY="network"
allan316@3206 6 SHORT_DESC="pan is a usenet newsreader"
allan316@3206 7 MAINTAINER="allan316@gmail.com"
pankso@5337 8 DEPENDS="pcre gmime gtkspell gtk+ cairo gcc-lib-base glibc-base"
pascal@3213 9 BUILD_DEPENDS="pcre-dev gmime gmime-dev gtkspell-dev"
allan316@3206 10 TARBALL="$PACKAGE-$VERSION.tar.gz"
allan316@3206 11 WEB_SITE="http://pan.rebelbase.com"
allan316@3206 12 WGET_URL="$WEB_SITE/download/releases/$VERSION/source/$TARBALL"
allan316@3206 13
allan316@3206 14 # Rules to configure and make the package.
allan316@3206 15 compile_rules()
allan316@3206 16 {
allan316@3206 17 cd $src
pascal@3232 18 # apply debian fix for gcc 4.4.0
pascal@3232 19 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=504900
pascal@3232 20 while read file last; do
pascal@3232 21 grep -q 'include <cstdio>' pan/$file ||
pascal@3232 22 sed -i "s/<$last>/<$last>\n#include <cstdio>/" pan/$file
pascal@3232 23 done <<EOT
pascal@3232 24 general/log.cc cstdarg
pascal@3232 25 general/progress.cc cstdarg
pascal@3232 26 tasks/nntp.cc cstdarg
pascal@3232 27 tasks/nntp-pool.cc config.h
pascal@3232 28 usenet-utils/numbers.cc cctype
pascal@3232 29 EOT
allan316@3206 30 ./configure \
allan316@3206 31 --prefix=/usr \
allan316@3206 32 --infodir=/usr/share/info \
allan316@3206 33 --mandir=/usr/share/man \
allan316@3206 34 $CONFIGURE_ARGS &&
allan316@3206 35 make && make DESTDIR=$PWD/_pkg install
allan316@3206 36 }
allan316@3206 37
allan316@3206 38 # Rules to gen a SliTaz package suitable for Tazpkg.
allan316@3206 39 genpkg_rules()
allan316@3206 40 {
allan316@3206 41 mkdir -p $fs/usr/share
allan316@3206 42 cp -a $_pkg/usr/bin $fs/usr
allan316@3206 43 cp -a $_pkg/usr/share/applications $fs/usr/share
allan316@3206 44 cp -a $_pkg/usr/share/pixmaps $fs/usr/share
allan316@3206 45 }
allan316@3206 46