wok annotate pan/receipt @ rev 15265

Up cookutils (3.1.7)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Sep 25 09:50:51 2013 +0000 (2013-09-25)
parents e714b10b01c1
children 4bec62c8999a
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"
pascal@15002 8 LICENSE="GPL2"
allan316@3206 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
allan316@3206 10 WEB_SITE="http://pan.rebelbase.com"
allan316@3206 11 WGET_URL="$WEB_SITE/download/releases/$VERSION/source/$TARBALL"
allan316@3206 12
erjo@9955 13 DEPENDS="pcre gmime gtkspell gtk+ cairo gcc-lib-base glibc-base"
pascal@12569 14 BUILD_DEPENDS="intltool gmime-dev glib-dev gtk+-dev"
erjo@9955 15
allan316@3206 16 # Rules to configure and make the package.
allan316@3206 17 compile_rules()
allan316@3206 18 {
allan316@3206 19 cd $src
pascal@12963 20 sed -i 's|<glib/gtypes.h>|<glib.h>|' pan/general/file-util.h \
pascal@12963 21 pan/data/article-cache.h \
pascal@12963 22 pan/gui/render-bytes.h
pascal@12963 23 sed -i -e 's|<glib/gutils.h>|<glib.h>|' \
pascal@12963 24 -e 's|<glib/gtestutils.h>|<glib.h>|' \
pascal@12963 25 -e 's|<glibconfig.h>|<glib.h>|' \
pascal@12963 26 pan/general/macros.h
pascal@12963 27 sed -i 's|<glib/gmain.h>|<glib.h>|' pan/general/worker-pool.cc
pascal@12963 28 sed -i -e 's|<glib/gtypes.h>|<glib.h>|' \
pascal@12963 29 -e 's|<glib/gthreadpool.h>|<glib.h>|' \
pascal@12963 30 -e 's|<glib/gtimer.h>|<glib.h>|' \
pascal@12963 31 -e 's|<glib/gmain.h>|<glib.h>|' \
pascal@12963 32 -e 's|<glib/gutils.h>|<glib.h>|' \
pascal@12963 33 -e 's|<glib/gmacros.h>|<glib.h>|' \
pascal@12963 34 pan/general/worker-pool.h \
pascal@12963 35 pan/general/time-elapsed.h \
pascal@12963 36 pan/gui/render-bytes.cc
pascal@12963 37 sed -i 's|<glib/gtypes.h>|<glib.h>|' pan/usenet-utils/mime-utils.h
pascal@12963 38 sed -i 's|<glib/gunicode.h>|<glib.h>|' pan/usenet-utils/text-massager.cc
pascal@12963 39 sed -i 's|<glib/gthread.h>|<glib.h>|' pan/general/locking.h
pascal@12963 40 sed -i -e 's|<glib/gstring.h>|<glib.h>|' \
pascal@12963 41 -e 's|<glib/giochannel.h>|<glib.h>|' \
pascal@12963 42 pan/tasks/socket-impl-gio.h
pascal@12963 43 sed -i -e 's|<glib/gfileutils.h>|<glib.h>|' \
pascal@12963 44 pan/data-impl/data-impl.cc
pascal@3232 45 while read file last; do
pascal@3232 46 grep -q 'include <cstdio>' pan/$file ||
pascal@3232 47 sed -i "s/<$last>/<$last>\n#include <cstdio>/" pan/$file
pascal@3232 48 done <<EOT
pascal@3232 49 general/log.cc cstdarg
pascal@3232 50 general/progress.cc cstdarg
pascal@3232 51 tasks/nntp.cc cstdarg
pascal@3232 52 tasks/nntp-pool.cc config.h
pascal@3232 53 usenet-utils/numbers.cc cctype
pascal@3232 54 EOT
allan316@3206 55 ./configure \
slaxemulator@11057 56 --prefix=/usr \
slaxemulator@11057 57 $CONFIGURE_ARGS &&
erjo@9955 58 make && make DESTDIR=$DESTDIR install
allan316@3206 59 }
allan316@3206 60
allan316@3206 61 # Rules to gen a SliTaz package suitable for Tazpkg.
allan316@3206 62 genpkg_rules()
allan316@3206 63 {
allan316@3206 64 mkdir -p $fs/usr/share
pascal@15002 65 cp -a $install/usr/bin $fs/usr
pascal@15002 66 cp -a $install/usr/share/applications $fs/usr/share
pascal@15002 67 cp -a $install/usr/share/pixmaps $fs/usr/share
allan316@3206 68 }
allan316@3206 69