wok rev 7847

Add: weechat v0.3.3(from wok-undigest/weechat)
author Liu Peng <rocky@slitaz.org>
date Tue Dec 28 16:11:28 2010 +0000 (2010-12-28)
parents 97f1b9b66b3d
children e63485c04d54
files weechat/receipt weechat/stuff/weechat-implicit-function-declaration.patch
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/weechat/receipt	Tue Dec 28 16:11:28 2010 +0000
     1.3 @@ -0,0 +1,51 @@
     1.4 +# SliTaz package receipt
     1.5 +
     1.6 +PACKAGE="weechat"
     1.7 +VERSION="0.3.3"
     1.8 +CATEGORY="network"
     1.9 +SHORT_DESC="a fast, light and extensible chat client."
    1.10 +MAINTAINER="rocky@slitaz.org"
    1.11 +DEPENDS="ncursesw libgcrypt libgnutls ncursesw libtasn1 python perl"
    1.12 +BUILD_DEPENDS="ncurses ncurses-dev libgcrypt-dev gnutls-dev libtasn1-dev perl python python-dev pkg-config slitaz-toolchain"
    1.13 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.14 +WEB_SITE="http://weechat.org/"
    1.15 +WGET_URL="http://weechat.org/files/src/$TARBALL"
    1.16 +TAGS="irc"
    1.17 +
    1.18 +# Rules to configure and make the package.
    1.19 +compile_rules()
    1.20 +{	
    1.21 +	cd $src
    1.22 +	while read file; do
    1.23 +		[ -f done.$file ] && continue
    1.24 +		echo "Apply $file..."
    1.25 +		patch -p1 < ../stuff/$file || return 1
    1.26 +		touch done.$file
    1.27 +	done <<EOT
    1.28 +weechat-implicit-function-declaration.patch
    1.29 +EOT
    1.30 +	./configure \
    1.31 +		--prefix=/usr \
    1.32 +		--enable-ncurses \
    1.33 +		--enable-gcrypt \
    1.34 +		--enable-gnutls \
    1.35 +		--enable-python \
    1.36 +		--enable-perl \
    1.37 +		--disable-ruby \
    1.38 +		--disable-doc \
    1.39 +		--with-debug=0 \
    1.40 +		$CONFIGURE_ARGS &&
    1.41 +	make &&
    1.42 +	make DESTDIR=$PWD/_pkg install
    1.43 +}
    1.44 +
    1.45 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.46 +genpkg_rules()
    1.47 +{
    1.48 +	mkdir -p $fs/usr
    1.49 +	cp -a $_pkg/usr/bin $fs/usr
    1.50 +	cp -a $_pkg/usr/lib $fs/usr
    1.51 +	rm -rf $fs/usr/lib/pkgconfig
    1.52 +	rm -f $fs/usr/lib/weechat/plugins/*.a
    1.53 +	rm -f $fs/usr/lib/weechat/plugins/*.la
    1.54 +}
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/weechat/stuff/weechat-implicit-function-declaration.patch	Tue Dec 28 16:11:28 2010 +0000
     2.3 @@ -0,0 +1,11 @@
     2.4 +--- weechat-0.3.3/configure.orig
     2.5 ++++ weechat-0.3.3/configure
     2.6 +@@ -18828,7 +18828,7 @@
     2.7 + weechat_libdir=${libdir}/weechat
     2.8 + 
     2.9 + 
    2.10 +-COMMON_CFLAGS="-Wall -W -Werror-implicit-function-declaration"
    2.11 ++COMMON_CFLAGS="-Wall -W"
    2.12 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have GNU assembler" >&5
    2.13 + $as_echo_n "checking whether we have GNU assembler... " >&6; }
    2.14 + GAS=`as --version < /dev/null 2>/dev/null | grep GNU`