wok-next rev 21400

updated pan (0.134 -> 0.146)
author Hans-G?nter Theisgen
date Sun Apr 19 07:06:02 2020 +0100 (2020-04-19)
parents d5f4f2768cce
children 65805ccdd8ad
files pan/receipt
line diff
     1.1 --- a/pan/receipt	Sun Apr 19 06:56:49 2020 +0100
     1.2 +++ b/pan/receipt	Sun Apr 19 07:06:02 2020 +0100
     1.3 @@ -1,30 +1,32 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="pan"
     1.7 -VERSION="0.134"
     1.8 +VERSION="0.146"
     1.9  CATEGORY="network"
    1.10  SHORT_DESC="Usenet newsreader"
    1.11  MAINTAINER="allan316@gmail.com"
    1.12  LICENSE="GPL2"
    1.13 -WEB_SITE="http://pan.rebelbase.com/"
    1.14 +WEB_SITE="https://pan.rebelbase.com/"
    1.15  
    1.16  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.17  WGET_URL="${WEB_SITE}download/releases/$VERSION/source/$TARBALL"
    1.18  
    1.19 -BUILD_DEPENDS="intltool gmime-dev glib-dev gtk2-dev"
    1.20 +BUILD_DEPENDS="glib-dev gmime-dev gtk2-dev intltool"
    1.21  
    1.22 -compile_rules() {
    1.23 +compile_rules()
    1.24 +{
    1.25  	sed -i 's|<glib/gtypes.h>|<glib.h>|' \
    1.26  		pan/general/file-util.h \
    1.27  		pan/data/article-cache.h \
    1.28  		pan/gui/render-bytes.h
    1.29 -	sed \
    1.30 +	sed -i \
    1.31  		-e 's|<glib/gutils.h>|<glib.h>|' \
    1.32  		-e 's|<glib/gtestutils.h>|<glib.h>|' \
    1.33  		-e 's|<glibconfig.h>|<glib.h>|' \
    1.34 -		-i pan/general/macros.h
    1.35 -	sed -i 's|<glib/gmain.h>|<glib.h>|' pan/general/worker-pool.cc
    1.36 -	sed -i -e 's|<glib/gtypes.h>|<glib.h>|' \
    1.37 +		pan/general/macros.h
    1.38 +	sed -i 's|<glib/gmain.h>|<glib.h>|' \
    1.39 +		pan/general/worker-pool.cc
    1.40 +	sed -i	-e 's|<glib/gtypes.h>|<glib.h>|' \
    1.41  		-e 's|<glib/gthreadpool.h>|<glib.h>|' \
    1.42  		-e 's|<glib/gtimer.h>|<glib.h>|' \
    1.43  		-e 's|<glib/gmain.h>|<glib.h>|' \
    1.44 @@ -33,35 +35,43 @@
    1.45  		pan/general/worker-pool.h \
    1.46  		pan/general/time-elapsed.h \
    1.47  		pan/gui/render-bytes.cc
    1.48 -	sed -i 's|<glib/gtypes.h>|<glib.h>|' pan/usenet-utils/mime-utils.h
    1.49 -	sed -i 's|<glib/gunicode.h>|<glib.h>|' pan/usenet-utils/text-massager.cc
    1.50 -	sed -i 's|<glib/gthread.h>|<glib.h>|' pan/general/locking.h
    1.51 -	sed -i -e 's|<glib/gstring.h>|<glib.h>|' \
    1.52 +	sed -i 's|<glib/gtypes.h>|<glib.h>|' \
    1.53 +		pan/usenet-utils/mime-utils.h
    1.54 +	sed -i 's|<glib/gunicode.h>|<glib.h>|' \
    1.55 +		pan/usenet-utils/text-massager.cc
    1.56 +	sed -i 's|<glib/gthread.h>|<glib.h>|' \
    1.57 +		pan/general/locking.h
    1.58 +	sed -i	-e 's|<glib/gstring.h>|<glib.h>|' \
    1.59  		-e 's|<glib/giochannel.h>|<glib.h>|' \
    1.60  		pan/tasks/socket-impl-gio.h
    1.61 -	sed -i -e 's|<glib/gfileutils.h>|<glib.h>|' \
    1.62 +	sed -i	-e 's|<glib/gfileutils.h>|<glib.h>|' \
    1.63  		pan/data-impl/data-impl.cc
    1.64 -	while read file last; do
    1.65 +	while read file last
    1.66 +	  do
    1.67  		grep -q 'include <cstdio>' pan/$file ||
    1.68  		sed -i "s/<$last>/<$last>\n#include <cstdio>/" pan/$file
    1.69 -	done <<EOT
    1.70 +	  done <<EOT
    1.71  general/log.cc		cstdarg
    1.72  general/progress.cc	cstdarg
    1.73  tasks/nntp.cc		cstdarg
    1.74  tasks/nntp-pool.cc	config.h
    1.75  usenet-utils/numbers.cc	cctype
    1.76  EOT
    1.77 -	./configure \
    1.78 -		--prefix=/usr \
    1.79 +
    1.80 +	./configure		\
    1.81 +		--prefix=/usr	\
    1.82  		$CONFIGURE_ARGS &&
    1.83  	make &&
    1.84  	make DESTDIR=$install install
    1.85  }
    1.86  
    1.87 -genpkg_rules() {
    1.88 +genpkg_rules()
    1.89 +{
    1.90  	mkdir -p $fs/usr/share
    1.91 -	cp -a $install/usr/bin $fs/usr
    1.92 -	cp -a $install/usr/share/applications $fs/usr/share
    1.93 -	cp -a $install/usr/share/pixmaps $fs/usr/share
    1.94 -	DEPENDS="pcre gmime gtkspell gtk2 libcairo gcc-lib-base glibc-base"
    1.95 +
    1.96 +	cp -a $install/usr/bin			$fs/usr
    1.97 +	cp -a $install/usr/share/applications	$fs/usr/share
    1.98 +	cp -a $install/usr/share/pixmaps	$fs/usr/share
    1.99 +
   1.100 +	DEPENDS="gcc-lib-base glibc-base gmime gtk2 gtkspell libcairo pcre"
   1.101  }