wok-current view pan/receipt @ rev 8981

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