wok-next rev 20116

gimp: receipt v2
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Oct 30 17:57:51 2017 +0100 (2017-10-30)
parents 1a2a5874632b
children ac4c22275bd3
files gimp-brushes/receipt gimp-console/receipt gimp-dev/receipt gimp-plug-ins/receipt gimp/receipt
line diff
     1.1 --- a/gimp-brushes/receipt	Mon Oct 30 11:43:10 2017 +0100
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,20 +0,0 @@
     1.4 -# SliTaz package receipt.
     1.5 -
     1.6 -PACKAGE="gimp-brushes"
     1.7 -VERSION="2.8.14"
     1.8 -CATEGORY="graphics"
     1.9 -SHORT_DESC="Gimp brushes set."
    1.10 -MAINTAINER="pankso@slitaz.org"
    1.11 -LICENSE="GPL3"
    1.12 -WANTED="gimp"
    1.13 -WEB_SITE="http://www.gimp.org/"
    1.14 -
    1.15 -DEPENDS="gimp"
    1.16 -
    1.17 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.18 -genpkg_rules()
    1.19 -{
    1.20 -	mkdir -p $fs/usr/share/gimp/2.0
    1.21 -	cp -a $install/usr/share/gimp/2.0/brushes $fs/usr/share/gimp/2.0
    1.22 -	rm -rf $fs/usr/share/gimp/2.0/brushes/Basic
    1.23 -}
     2.1 --- a/gimp-console/receipt	Mon Oct 30 11:43:10 2017 +0100
     2.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.3 @@ -1,19 +0,0 @@
     2.4 -# SliTaz package receipt.
     2.5 -
     2.6 -PACKAGE="gimp-console"
     2.7 -VERSION="2.8.14"
     2.8 -CATEGORY="graphics"
     2.9 -SHORT_DESC="The GIMP console."
    2.10 -MAINTAINER="pankso@slitaz.org"
    2.11 -LICENSE="GPL3"
    2.12 -WANTED="gimp"
    2.13 -WEB_SITE="http://www.gimp.org/"
    2.14 -
    2.15 -DEPENDS="babl pango cairo gimp glib xorg-libX11 xorg-libXau"
    2.16 -
    2.17 -# Rules to gen a SliTaz package suitable for Tazpkg.
    2.18 -genpkg_rules()
    2.19 -{
    2.20 -	mkdir -p $fs/usr/bin
    2.21 -	cp -a $install/usr/bin/gimp-console* $fs/usr/bin
    2.22 -}
     3.1 --- a/gimp-dev/receipt	Mon Oct 30 11:43:10 2017 +0100
     3.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.3 @@ -1,26 +0,0 @@
     3.4 -# SliTaz package receipt.
     3.5 -
     3.6 -PACKAGE="gimp-dev"
     3.7 -VERSION="2.8.14"
     3.8 -CATEGORY="development"
     3.9 -SHORT_DESC="Gnu Image Manipulation Program or GIMP devel files."
    3.10 -MAINTAINER="pankso@slitaz.org"
    3.11 -LICENSE="GPL3"
    3.12 -WANTED="gimp"
    3.13 -WEB_SITE="http://www.gimp.org/"
    3.14 -
    3.15 -DEPENDS="gimp pkg-config"
    3.16 -
    3.17 -# Rules to gen a SliTaz package suitable for Tazpkg.
    3.18 -genpkg_rules()
    3.19 -{
    3.20 -	mkdir -p $fs/usr
    3.21 -	cp -a $install/usr/include $fs/usr
    3.22 -	cp -a $install/usr/lib $fs/usr
    3.23 -	# Remove libraries files
    3.24 -	rm -rf $fs/usr/lib/*.so*
    3.25 -	rm -rf $fs/usr/lib/gimp/2.0/modules/*.so*
    3.26 -	rm -rf $fs/usr/lib/gimp/2.0/environ
    3.27 -	rm -rf $fs/usr/lib/gimp/2.0/interpreters
    3.28 -	rm -rf $fs/usr/lib/gimp/2.0/plug-ins
    3.29 -}
     4.1 --- a/gimp-plug-ins/receipt	Mon Oct 30 11:43:10 2017 +0100
     4.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.3 @@ -1,25 +0,0 @@
     4.4 -# SliTaz package receipt.
     4.5 -
     4.6 -PACKAGE="gimp-plug-ins"
     4.7 -VERSION="2.8.14"
     4.8 -CATEGORY="graphics"
     4.9 -SHORT_DESC="The GIMP image editor plug-ins suite for advanced users."
    4.10 -MAINTAINER="pankso@slitaz.org"
    4.11 -LICENSE="GPL3"
    4.12 -WANTED="gimp"
    4.13 -WEB_SITE="http://www.gimp.org/"
    4.14 -
    4.15 -DEPENDS="gimp lcms xorg-libXpm libmng aalib libexif tiff"
    4.16 -
    4.17 -# Rules to gen a SliTaz package suitable for Tazpkg.
    4.18 -genpkg_rules()
    4.19 -{
    4.20 -	mkdir -p $fs/usr/lib/gimp/2.0
    4.21 -	cp -a $install/usr/lib/gimp/2.0/plug-ins $fs/usr/lib/gimp/2.0
    4.22 -
    4.23 -	# Remove plug-ins provided by the main package.
    4.24 -	for i in file-jpeg file-png pixelize screenshot
    4.25 -	do
    4.26 -		rm $fs/usr/lib/gimp/2.0/plug-ins/$i
    4.27 -	done
    4.28 -}
     5.1 --- a/gimp/receipt	Mon Oct 30 11:43:10 2017 +0100
     5.2 +++ b/gimp/receipt	Mon Oct 30 17:57:51 2017 +0100
     5.3 @@ -1,4 +1,4 @@
     5.4 -# SliTaz package receipt.
     5.5 +# SliTaz package receipt v2.
     5.6  
     5.7  PACKAGE="gimp"
     5.8  VERSION="2.8.14"
     5.9 @@ -9,17 +9,16 @@
    5.10  TARBALL="$PACKAGE-$VERSION.tar.bz2"
    5.11  WEB_SITE="http://www.gimp.org/"
    5.12  WGET_URL="http://download.gimp.org/pub/gimp/v${VERSION%.*}/$TARBALL"
    5.13 -SUGGESTED="gimp-plug-ins gimp-brushes gimp-console gimp-plugin-ufraw"
    5.14  
    5.15 -DEPENDS="libart_lgpl babl gegl glib tiff xorg-libXdamage xorg-libXmu \
    5.16 -xorg-libXt gdk-pixbuf gtk+ libexif"
    5.17  BUILD_DEPENDS="gettext perl-xml-parser babl-dev gegl-dev glib-dev \
    5.18  intltool expat-dev zlib-dev libart_lgpl-dev lcms-dev xorg-dev-proto \
    5.19  gdk-pixbuf-dev gtk+-dev libexif-dev aalib-dev libmng-dev jasper-dev"
    5.20 +SPLIT="gimp gimp-brushes gimp-console gimp-dev gimp-plug-ins"
    5.21  
    5.22  # Rules to configure and make the package.
    5.23  compile_rules()
    5.24  {
    5.25 +	export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lm"
    5.26  	./configure \
    5.27  		--prefix=/usr \
    5.28  		--sysconfdir=/etc \
    5.29 @@ -41,37 +40,83 @@
    5.30  # Rules to gen a SliTaz package suitable for Tazpkg.
    5.31  genpkg_rules()
    5.32  {
    5.33 -	mkdir -p $fs/usr/lib $fs/usr/share/pixmaps
    5.34 +	case $PACKAGE in
    5.35 +	gimp)
    5.36 +		SUGGESTED="gimp-plug-ins gimp-brushes gimp-console \
    5.37 +			gimp-plugin-ufraw"
    5.38 +		DEPENDS="libart_lgpl babl gegl glib tiff xorg-libXdamage \
    5.39 +			xorg-libXmu xorg-libXt gdk-pixbuf gtk+ libexif"
    5.40 +		mkdir -p $fs/usr/lib $fs/usr/share/pixmaps
    5.41  
    5.42 -	cp -a $install/etc $fs
    5.43 -	cp -a $install/usr/bin $fs/usr
    5.44 -	cp -a $install/usr/lib/*.so* $fs/usr/lib
    5.45 -	cp -a $install/usr/lib/gimp $fs/usr/lib
    5.46 +		cp -a $install/etc $fs
    5.47 +		cp -a $install/usr/bin $fs/usr
    5.48 +		cp -a $install/usr/lib/*.so* $fs/usr/lib
    5.49 +		cp -a $install/usr/lib/gimp $fs/usr/lib
    5.50  
    5.51 -	cp $install/usr/share/icons/hicolor/24x24/apps/gimp.png \
    5.52 -		$fs/usr/share/pixmaps/gimp.png
    5.53 +		cp $install/usr/share/icons/hicolor/24x24/apps/gimp.png \
    5.54 +			$fs/usr/share/pixmaps/gimp.png
    5.55  
    5.56 -	# The gimp-console goes in a separate package
    5.57 -	rm $fs/usr/bin/gimp-console*
    5.58 +		# The gimp-console goes in a separate package
    5.59 +		rm $fs/usr/bin/gimp-console*
    5.60  
    5.61 -	# Most plug-ins goes in a separate package
    5.62 -	rm -rf $fs/usr/lib/gimp/2.0/plug-ins/*
    5.63 -	for i in file-jpeg file-png pixelize screenshot
    5.64 -	do
    5.65 -		cp $install/usr/lib/gimp/2.0/plug-ins/$i \
    5.66 -			$fs/usr/lib/gimp/2.0/plug-ins
    5.67 -	done
    5.68 +		# Most plug-ins goes in a separate package
    5.69 +		rm -rf $fs/usr/lib/gimp/2.0/plug-ins/*
    5.70 +		for i in file-jpeg file-png pixelize screenshot
    5.71 +		do
    5.72 +			cp $install/usr/lib/gimp/2.0/plug-ins/$i \
    5.73 +				$fs/usr/lib/gimp/2.0/plug-ins
    5.74 +		done
    5.75  
    5.76 -	# Include only Basic brushes --> gimp-brushes
    5.77 -	cp -a $install/usr/share/gimp $fs/usr/share
    5.78 -	for i in gimp-* Legacy Media Sketch Splatters Texture
    5.79 -	do
    5.80 -		rm -rf $fs/usr/share/gimp/2.0/brushes/$i
    5.81 -	done
    5.82 +		# Include only Basic brushes --> gimp-brushes
    5.83 +		cp -a $install/usr/share/gimp $fs/usr/share
    5.84 +		for i in gimp-* Legacy Media Sketch Splatters Texture
    5.85 +		do
    5.86 +			rm -rf $fs/usr/share/gimp/2.0/brushes/$i
    5.87 +		done
    5.88  
    5.89 -	# Remove devel files
    5.90 -	rm $fs/usr/lib/gimp/2.0/modules/*.*a
    5.91 +		# Remove devel files
    5.92 +		rm $fs/usr/lib/gimp/2.0/modules/*.*a
    5.93  
    5.94 -	# Put a nice splash with a spider
    5.95 -	cp -a $stuff/gimp-splash.png $fs/usr/share/gimp/2.0/images
    5.96 +		# Put a nice splash with a spider
    5.97 +		cp -a $stuff/gimp-splash.png $fs/usr/share/gimp/2.0/images
    5.98 +		;;
    5.99 +	gimp-brushes)
   5.100 +		CAT="graphics|Gimp brushes set."
   5.101 +		DEPENDS="gimp"
   5.102 +		mkdir -p $fs/usr/share/gimp/2.0
   5.103 +		cp -a $install/usr/share/gimp/2.0/brushes $fs/usr/share/gimp/2.0
   5.104 +		rm -rf $fs/usr/share/gimp/2.0/brushes/Basic
   5.105 +		;;
   5.106 +	gimp-console)
   5.107 +		CAT="graphics|The GIMP console."
   5.108 +		DEPENDS="babl pango cairo gimp glib xorg-libX11 xorg-libXau"
   5.109 +		mkdir -p $fs/usr/bin
   5.110 +		cp -a $install/usr/bin/gimp-console* $fs/usr/bin
   5.111 +		;;
   5.112 +	gimp-dev)
   5.113 +		CAT="development|Gnu Image Manipulation Program or GIMP devel files."
   5.114 +		DEPENDS="gimp pkg-config"
   5.115 +		mkdir -p $fs/usr
   5.116 +		cp -a $install/usr/include $fs/usr
   5.117 +		cp -a $install/usr/lib $fs/usr
   5.118 +		# Remove libraries files
   5.119 +		rm -rf $fs/usr/lib/*.so*
   5.120 +		rm -rf $fs/usr/lib/gimp/2.0/modules/*.so*
   5.121 +		rm -rf $fs/usr/lib/gimp/2.0/environ
   5.122 +		rm -rf $fs/usr/lib/gimp/2.0/interpreters
   5.123 +		rm -rf $fs/usr/lib/gimp/2.0/plug-ins
   5.124 +		;;
   5.125 +	gimp-plug-ins)
   5.126 +		CAT="graphics|The GIMP image editor plug-ins suite for advanced users."
   5.127 +		DEPENDS="gimp lcms xorg-libXpm libmng aalib libexif tiff"
   5.128 +		mkdir -p $fs/usr/lib/gimp/2.0
   5.129 +		cp -a $install/usr/lib/gimp/2.0/plug-ins $fs/usr/lib/gimp/2.0
   5.130 +
   5.131 +		# Remove plug-ins provided by the main package.
   5.132 +		for i in file-jpeg file-png pixelize screenshot
   5.133 +		do
   5.134 +			rm $fs/usr/lib/gimp/2.0/plug-ins/$i
   5.135 +		done
   5.136 +		;;
   5.137 +	esac
   5.138  }