wok-6.x diff pan/receipt @ rev 25445

itaka: fix wget_url
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Sep 06 07:38:52 2022 +0000 (2022-09-06)
parents 2a0479881723
children
line diff
     1.1 --- a/pan/receipt	Sun Feb 13 13:09:42 2022 +0000
     1.2 +++ b/pan/receipt	Tue Sep 06 07:38:52 2022 +0000
     1.3 @@ -1,16 +1,17 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="pan"
     1.7 -VERSION="0.146"
     1.8 +VERSION="0.149"
     1.9  CATEGORY="network"
    1.10  SHORT_DESC="A 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 +WGET_URL="$WEB_SITE/download/releases/$VERSION/source/$TARBALL"
    1.19  
    1.20 +SUGGESTED="pan-lang"
    1.21  DEPENDS="cairo gcc-lib-base glibc-base gmime gtk+ gtkspell pcre"
    1.22  BUILD_DEPENDS="gettext glib-dev gmime-dev gtk+-dev gtkspell-dev intltool itstool"
    1.23  
    1.24 @@ -24,15 +25,17 @@
    1.25  # Rules to configure and make the package.
    1.26  compile_rules()
    1.27  {
    1.28 -	sed -i 's|<glib/gtypes.h>|<glib.h>|' pan/general/file-util.h \
    1.29 +	sed -i 's|<glib/gtypes.h>|<glib.h>|' \
    1.30 +		pan/general/file-util.h \
    1.31  		pan/data/article-cache.h \
    1.32  		pan/gui/render-bytes.h
    1.33 -	sed -i -e 's|<glib/gutils.h>|<glib.h>|' \
    1.34 +	sed -i	-e 's|<glib/gutils.h>|<glib.h>|' \
    1.35  		-e 's|<glib/gtestutils.h>|<glib.h>|' \
    1.36  		-e 's|<glibconfig.h>|<glib.h>|' \
    1.37  		pan/general/macros.h
    1.38 -	sed -i 's|<glib/gmain.h>|<glib.h>|' pan/general/worker-pool.cc
    1.39 -	sed -i -e 's|<glib/gtypes.h>|<glib.h>|' \
    1.40 +	sed -i 's|<glib/gmain.h>|<glib.h>|' \
    1.41 +		pan/general/worker-pool.cc
    1.42 +	sed -i	-e 's|<glib/gtypes.h>|<glib.h>|' \
    1.43  		-e 's|<glib/gthreadpool.h>|<glib.h>|' \
    1.44  		-e 's|<glib/gtimer.h>|<glib.h>|' \
    1.45  		-e 's|<glib/gmain.h>|<glib.h>|' \
    1.46 @@ -41,18 +44,23 @@
    1.47  		pan/general/worker-pool.h \
    1.48  		pan/general/time-elapsed.h \
    1.49  		pan/gui/render-bytes.cc
    1.50 -	sed -i 's|<glib/gtypes.h>|<glib.h>|' pan/usenet-utils/mime-utils.h
    1.51 -	sed -i 's|<glib/gunicode.h>|<glib.h>|' pan/usenet-utils/text-massager.cc
    1.52 -	sed -i 's|<glib/gthread.h>|<glib.h>|' pan/general/locking.h
    1.53 -	sed -i -e 's|<glib/gstring.h>|<glib.h>|' \
    1.54 +	sed -i 's|<glib/gtypes.h>|<glib.h>|' \
    1.55 +		pan/usenet-utils/mime-utils.h
    1.56 +	sed -i 's|<glib/gunicode.h>|<glib.h>|' \
    1.57 +		pan/usenet-utils/text-massager.cc
    1.58 +	sed -i 's|<glib/gthread.h>|<glib.h>|' \
    1.59 +		pan/general/locking.h
    1.60 +	sed -i	-e 's|<glib/gstring.h>|<glib.h>|' \
    1.61  		-e 's|<glib/giochannel.h>|<glib.h>|' \
    1.62  		pan/tasks/socket-impl-gio.h
    1.63 -	sed -i -e 's|<glib/gfileutils.h>|<glib.h>|' \
    1.64 +	sed -i	-e 's|<glib/gfileutils.h>|<glib.h>|' \
    1.65  		pan/data-impl/data-impl.cc
    1.66 -	while read file last; do
    1.67 +
    1.68 +	while read file last
    1.69 +	  do
    1.70  		grep -q 'include <cstdio>' pan/$file ||
    1.71  		sed -i "s/<$last>/<$last>\n#include <cstdio>/" pan/$file
    1.72 -	done <<EOT
    1.73 +	  done <<EOT
    1.74  general/log.cc		cstdarg
    1.75  general/progress.cc	cstdarg
    1.76  tasks/nntp.cc		cstdarg
    1.77 @@ -60,9 +68,11 @@
    1.78  usenet-utils/numbers.cc	cctype
    1.79  EOT
    1.80  
    1.81 +	# 0.149	unrecognised
    1.82 +#		--with-gmime30=yes	
    1.83 +
    1.84  	./configure			\
    1.85  		--prefix=/usr		\
    1.86 -		--with-gmime30=yes	\
    1.87  		$CONFIGURE_ARGS &&
    1.88  	make &&
    1.89  	make DESTDIR=$DESTDIR install