wok-next diff libgnomeprint/receipt @ rev 20200

libgnomeprint: add bison 3 patch
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Nov 03 17:38:15 2017 +0100 (2017-11-03)
parents 4904e3d374a9
children 6ae55fd90407
line diff
     1.1 --- a/libgnomeprint/receipt	Tue Jun 11 10:41:23 2013 +0200
     1.2 +++ b/libgnomeprint/receipt	Fri Nov 03 17:38:15 2017 +0100
     1.3 @@ -1,4 +1,4 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="libgnomeprint"
     1.8  VERSION="2.18.8"
     1.9 @@ -10,14 +10,13 @@
    1.10  WEB_SITE="http://www.gnome.org/"
    1.11  WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL"
    1.12  
    1.13 -DEPENDS="gtk+ popt libxml2 libart_lgpl"
    1.14  BUILD_DEPENDS="pkg-config glib-dev pango-dev intltool flex libart_lgpl-dev \
    1.15  libxml2-dev"
    1.16 +SPLIT="libgnomeprint libgnomeprint-dev"
    1.17  
    1.18  # Rules to configure and make the package.
    1.19  compile_rules()
    1.20  {
    1.21 -	cd $src
    1.22  	./configure \
    1.23  		--with-html-dir=/usr/share/doc \
    1.24  		--without-cups \
    1.25 @@ -28,17 +27,37 @@
    1.26  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.27  genpkg_rules()
    1.28  {
    1.29 -	mkdir -p $fs/usr/lib $fs/usr/share/locale
    1.30 +	case $PACKAGE in
    1.31 +	libgnomeprint)
    1.32 +		DEPENDS="gtk+ popt libxml2 libart_lgpl"
    1.33 +		mkdir -p $fs/usr/lib $fs/usr/share/locale
    1.34  	
    1.35 -	# Copy shared libs
    1.36 -	cp -a $install/usr/lib/*.so* $fs/usr/lib
    1.37 -	cp -a $install/usr/lib/$PACKAGE $fs/usr/lib
    1.38 +		# Copy shared libs
    1.39 +		cp -a $install/usr/lib/*.so* $fs/usr/lib
    1.40 +		cp -a $install/usr/lib/$PACKAGE $fs/usr/lib
    1.41  	
    1.42 -	cp -a $install/usr/share/locale/fr $fs/usr/share/locale
    1.43 -	cp -a $install/usr/share/$PACKAGE $fs/usr/share
    1.44 +		cp -a $install/usr/share/locale/fr $fs/usr/share/locale
    1.45 +		cp -a $install/usr/share/$PACKAGE $fs/usr/share
    1.46  	
    1.47 -	# Remove static libs
    1.48 -	rm $fs/usr/lib/$PACKAGE/$VERSION/modules/*.*a
    1.49 -	rm $fs/usr/lib/$PACKAGE/$VERSION/modules/*/*.*a
    1.50 +		# Remove static libs
    1.51 +		rm $fs/usr/lib/$PACKAGE/$VERSION/modules/*.*a
    1.52 +		rm $fs/usr/lib/$PACKAGE/$VERSION/modules/*/*.*a
    1.53 +		;;
    1.54 +	libgnomeprint-dev)
    1.55 +		CAT="development|GNOME print library"
    1.56 +		DEPENDS="gtk+-dev popt-dev libxml2-dev pkg-config"
    1.57 +		mkdir -p $fs/usr/lib
    1.58 +	
    1.59 +		# Copy static libs
    1.60 +		cp -a $install/usr/lib/*.*a $fs/usr/lib
    1.61 +		cp -a $install/usr/lib/pkgconfig $fs/usr/lib
    1.62 +		cp -a $install/usr/lib/$WANTED $fs/usr/lib
    1.63 +	
    1.64 +		cp -a $install/usr/include $fs/usr
    1.65 +	
    1.66 +		# Remove shared libs
    1.67 +		rm $fs/usr/lib/$WANTED/$VERSION/modules/*.so*
    1.68 +		rm $fs/usr/lib/$WANTED/$VERSION/modules/*/*.so*
    1.69 +		;;
    1.70 +	esac
    1.71  }
    1.72 -