wok-next diff abiword/receipt @ rev 20488

palemoon: update bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Mar 12 11:00:54 2018 +0100 (2018-03-12)
parents 1cfe6fd269ef
children a8e106e92cc2
line diff
     1.1 --- a/abiword/receipt	Sat Oct 21 22:32:46 2017 +0200
     1.2 +++ b/abiword/receipt	Mon Mar 12 11:00:54 2018 +0100
     1.3 @@ -1,4 +1,4 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="abiword"
     1.8  VERSION="3.0.2"
     1.9 @@ -10,18 +10,14 @@
    1.10  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.11  WEB_SITE="http://www.abisource.com/"
    1.12  WGET_URL="http://www.abisource.com/downloads/abiword/$VERSION/source/$TARBALL"
    1.13 -TAGS="word doc office"
    1.14  LOCALES="cs da de es fr hu id it pt ru sl sv zh"
    1.15  
    1.16 -DEPENDS="gtk+3 fribidi libglade \
    1.17 -popt libxml2 libart_lgpl libgsf glib enchant wv xorg-libXdamage gcc-lib-base \
    1.18 -librsvg goffice glibc-locale libffi"
    1.19  BUILD_DEPENDS="$DEPENDS gtk+3-dev pygobject-dev gobject-introspection-dev \
    1.20  pygobject3 fribidi-dev libglade-dev popt-dev libxml2-dev libart_lgpl-dev \
    1.21  libgsf-dev enchant-dev wv-dev libcroco-dev libboost-dev librsvg-dev gtk-doc \
    1.22  bison goffice-dev  intltool gettext xorg-dev zlib-dev "
    1.23  # libgnomeprint-dev libgnomeprintui-dev  libgnomecanvas-dev
    1.24 -SUGGESTED="abiword-plugins"
    1.25 +SPLIT="abiword abiword-dev abiword-plugins"
    1.26  
    1.27  # Rules to configure and make the package.
    1.28  compile_rules()
    1.29 @@ -49,35 +45,64 @@
    1.30  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.31  genpkg_rules()
    1.32  {
    1.33 -	mkdir -p $fs/usr/share/pixmaps $fs/usr/lib/abiword-2.8/plugins $fs/usr/share/icons
    1.34 +	case $PACKAGE in
    1.35 +	abiword)
    1.36 +		TAGS="word doc office"
    1.37 +		DEPENDS="gtk+3 fribidi libglade popt libxml2 libart_lgpl \
    1.38 +			libgsf glib enchant wv xorg-libXdamage gcc-lib-base \
    1.39 +			librsvg goffice glibc-locale libffi"
    1.40 +		SUGGESTED="abiword-plugins"
    1.41 +		mkdir -p $fs/usr/share/pixmaps $fs/usr/lib/abiword-2.8/plugins $fs/usr/share/icons
    1.42  
    1.43 -	cp -a $install/usr/bin $fs/usr
    1.44 -	cp -a $install/usr/lib/*.so $fs/usr/lib
    1.45 +		cp -a $install/usr/bin $fs/usr
    1.46 +		cp -a $install/usr/lib/*.so $fs/usr/lib
    1.47  
    1.48 -	cp -a $install/usr/share/abiword-* $fs/usr/share
    1.49 +		cp -a $install/usr/share/abiword-* $fs/usr/share
    1.50  
    1.51 -	# Non standard pixmap
    1.52 +		# Non standard pixmap
    1.53  
    1.54 -	# fix error when abiword is run in command line
    1.55 -	ln -sf /usr/share/pixmaps/abiword.png $fs/usr/share/icons/abiword_48.png
    1.56 +		# fix error when abiword is run in command line
    1.57 +		ln -sf /usr/share/pixmaps/abiword.png $fs/usr/share/icons/abiword_48.png
    1.58  
    1.59 -	# Non-standard locale use: get all official SliTaz locales
    1.60 -	rm $fs/usr/share/abiword-*/strings/*
    1.61 -	rm $fs/usr/share/abiword-*/templates/*
    1.62 -	rm $fs/usr/share/abiword-*/system.pro*
    1.63 +		# Non-standard locale use: get all official SliTaz locales
    1.64 +		rm $fs/usr/share/abiword-*/strings/*
    1.65 +		rm $fs/usr/share/abiword-*/templates/*
    1.66 +		rm $fs/usr/share/abiword-*/system.pro*
    1.67  
    1.68 -	for LOCALE in $LOCALES; do
    1.69 -		cp $install/usr/share/abiword-*/strings/$LOCALE*.strings \
    1.70 -			 $fs/usr/share/abiword-*/strings/
    1.71 -		# id locale not complete in sources
    1.72 -		if [ "$LOCALE" != "id" ]; then
    1.73 -			cp $install/usr/share/abiword-*/templates/normal.awt-$LOCALE* \
    1.74 -				 $fs/usr/share/abiword-*/templates/
    1.75 -			cp $install/usr/share/abiword-*/system.profile-$LOCALE* \
    1.76 -				 $fs/usr/share/abiword-*/
    1.77 -		fi
    1.78 -	done
    1.79 +		for LOCALE in $LOCALES; do
    1.80 +			cp $install/usr/share/abiword-*/strings/$LOCALE*.strings \
    1.81 +				 $fs/usr/share/abiword-*/strings/
    1.82 +			# id locale not complete in sources
    1.83 +			if [ "$LOCALE" != "id" ]; then
    1.84 +				cp $install/usr/share/abiword-*/templates/normal.awt-$LOCALE* \
    1.85 +					 $fs/usr/share/abiword-*/templates/
    1.86 +				cp $install/usr/share/abiword-*/system.profile-$LOCALE* \
    1.87 +					 $fs/usr/share/abiword-*/
    1.88 +			fi
    1.89 +		done
    1.90  
    1.91 -	cp $install/usr/share/abiword-*/templates/*.awt $fs/usr/share/abiword-*/templates/
    1.92 -	cp $install/usr/share/abiword-*/system.profile $fs/usr/share/abiword-*/
    1.93 +		cp $install/usr/share/abiword-*/templates/*.awt $fs/usr/share/abiword-*/templates/
    1.94 +		cp $install/usr/share/abiword-*/system.profile $fs/usr/share/abiword-*/
    1.95 +		;;
    1.96 +	abiword-dev)
    1.97 +		CAT="development|Abiword devel files"
    1.98 +		DEPENDS="pkg-config"
    1.99 +		mkdir -p $fs/usr/lib/abiword-2.8/plugins
   1.100 +		cp -a $install/usr/lib/*.*a $fs/usr/lib
   1.101 +		cp -a $install/usr/lib/pkgconfig $fs/usr/lib
   1.102 +		cp -a $install/usr/lib/abiword-*/plugins/*.*a \
   1.103 +			$fs/usr/lib/abiword-2.8/plugins
   1.104 +		cp -a $install/usr/include $fs/usr
   1.105 +		;;
   1.106 +	abiword-plugins)
   1.107 +		CAT="office|Extra plugins for Abiword (MSWord, OpenDocument, Wikidepia, etc)."
   1.108 +		TAGS="doc odf docx"
   1.109 +		DEPENDS="abiword glib readline xorg-libXdamage fribidi libxslt"
   1.110 +		mkdir -p $fs/usr/lib/abiword-2.8/plugins $fs/usr/share
   1.111 +
   1.112 +		cp -a $install/usr/lib/abiword-*/plugins/*.so \
   1.113 +			$fs/usr/lib/abiword-2.8/plugins
   1.114 +
   1.115 +		;;
   1.116 +	esac
   1.117  }