wok view pan/receipt @ rev 14602
xorg-libXxf86vm: down 1.1.2 (ver. 1.1.3 yet not exists here)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed May 29 02:19:36 2013 +0000 (2013-05-29) |
parents | b71e5df54a23 |
children | 7896f0694ef6 |
line source
1 # SliTaz package receipt.
3 PACKAGE="pan"
4 VERSION="0.134"
5 CATEGORY="network"
6 SHORT_DESC="pan is a usenet newsreader"
7 MAINTAINER="allan316@gmail.com"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://pan.rebelbase.com"
10 WGET_URL="$WEB_SITE/download/releases/$VERSION/source/$TARBALL"
12 DEPENDS="pcre gmime gtkspell gtk+ cairo gcc-lib-base glibc-base"
13 BUILD_DEPENDS="intltool gmime-dev glib-dev gtk+-dev"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 sed -i 's|<glib/gtypes.h>|<glib.h>|' pan/general/file-util.h \
20 pan/data/article-cache.h \
21 pan/gui/render-bytes.h
22 sed -i -e 's|<glib/gutils.h>|<glib.h>|' \
23 -e 's|<glib/gtestutils.h>|<glib.h>|' \
24 -e 's|<glibconfig.h>|<glib.h>|' \
25 pan/general/macros.h
26 sed -i 's|<glib/gmain.h>|<glib.h>|' pan/general/worker-pool.cc
27 sed -i -e 's|<glib/gtypes.h>|<glib.h>|' \
28 -e 's|<glib/gthreadpool.h>|<glib.h>|' \
29 -e 's|<glib/gtimer.h>|<glib.h>|' \
30 -e 's|<glib/gmain.h>|<glib.h>|' \
31 -e 's|<glib/gutils.h>|<glib.h>|' \
32 -e 's|<glib/gmacros.h>|<glib.h>|' \
33 pan/general/worker-pool.h \
34 pan/general/time-elapsed.h \
35 pan/gui/render-bytes.cc
36 sed -i 's|<glib/gtypes.h>|<glib.h>|' pan/usenet-utils/mime-utils.h
37 sed -i 's|<glib/gunicode.h>|<glib.h>|' pan/usenet-utils/text-massager.cc
38 sed -i 's|<glib/gthread.h>|<glib.h>|' pan/general/locking.h
39 sed -i -e 's|<glib/gstring.h>|<glib.h>|' \
40 -e 's|<glib/giochannel.h>|<glib.h>|' \
41 pan/tasks/socket-impl-gio.h
42 sed -i -e 's|<glib/gfileutils.h>|<glib.h>|' \
43 pan/data-impl/data-impl.cc
44 while read file last; do
45 grep -q 'include <cstdio>' pan/$file ||
46 sed -i "s/<$last>/<$last>\n#include <cstdio>/" pan/$file
47 done <<EOT
48 general/log.cc cstdarg
49 general/progress.cc cstdarg
50 tasks/nntp.cc cstdarg
51 tasks/nntp-pool.cc config.h
52 usenet-utils/numbers.cc cctype
53 EOT
54 ./configure \
55 --prefix=/usr \
56 $CONFIGURE_ARGS &&
57 make && make DESTDIR=$DESTDIR install
58 }
60 # Rules to gen a SliTaz package suitable for Tazpkg.
61 genpkg_rules()
62 {
63 mkdir -p $fs/usr/share
64 cp -a $_pkg/usr/bin $fs/usr
65 cp -a $_pkg/usr/share/applications $fs/usr/share
66 cp -a $_pkg/usr/share/pixmaps $fs/usr/share
67 }