wok-current annotate pan/receipt @ rev 10510
libnjb: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed May 25 15:45:17 2011 +0200 (2011-05-25) |
parents | 4ac89a72e7e1 |
children | 49fd674392d7 |
rev | line source |
---|---|
allan316@3206 | 1 # SliTaz package receipt. |
allan316@3206 | 2 |
allan316@3206 | 3 PACKAGE="pan" |
gokhlayeh@9188 | 4 VERSION="0.134" |
allan316@3206 | 5 CATEGORY="network" |
allan316@3206 | 6 SHORT_DESC="pan is a usenet newsreader" |
allan316@3206 | 7 MAINTAINER="allan316@gmail.com" |
allan316@3206 | 8 TARBALL="$PACKAGE-$VERSION.tar.gz" |
allan316@3206 | 9 WEB_SITE="http://pan.rebelbase.com" |
allan316@3206 | 10 WGET_URL="$WEB_SITE/download/releases/$VERSION/source/$TARBALL" |
allan316@3206 | 11 |
erjo@9955 | 12 DEPENDS="pcre gmime gtkspell gtk+ cairo gcc-lib-base glibc-base" |
erjo@9955 | 13 BUILD_DEPENDS="intltool gmime-dev" |
erjo@9955 | 14 |
allan316@3206 | 15 # Rules to configure and make the package. |
allan316@3206 | 16 compile_rules() |
allan316@3206 | 17 { |
allan316@3206 | 18 cd $src |
pascal@3232 | 19 # apply debian fix for gcc 4.4.0 |
pascal@3232 | 20 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=504900 |
pascal@3232 | 21 while read file last; do |
pascal@3232 | 22 grep -q 'include <cstdio>' pan/$file || |
pascal@3232 | 23 sed -i "s/<$last>/<$last>\n#include <cstdio>/" pan/$file |
pascal@3232 | 24 done <<EOT |
pascal@3232 | 25 general/log.cc cstdarg |
pascal@3232 | 26 general/progress.cc cstdarg |
pascal@3232 | 27 tasks/nntp.cc cstdarg |
pascal@3232 | 28 tasks/nntp-pool.cc config.h |
pascal@3232 | 29 usenet-utils/numbers.cc cctype |
pascal@3232 | 30 EOT |
allan316@3206 | 31 ./configure \ |
erjo@9955 | 32 --prefix=/usr && |
erjo@9955 | 33 make && make DESTDIR=$DESTDIR install |
allan316@3206 | 34 } |
allan316@3206 | 35 |
allan316@3206 | 36 # Rules to gen a SliTaz package suitable for Tazpkg. |
allan316@3206 | 37 genpkg_rules() |
allan316@3206 | 38 { |
allan316@3206 | 39 mkdir -p $fs/usr/share |
allan316@3206 | 40 cp -a $_pkg/usr/bin $fs/usr |
allan316@3206 | 41 cp -a $_pkg/usr/share/applications $fs/usr/share |
allan316@3206 | 42 cp -a $_pkg/usr/share/pixmaps $fs/usr/share |
allan316@3206 | 43 } |
allan316@3206 | 44 |