wok diff php-gd/receipt @ rev 23696

Up libtcplay (3.3)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Apr 27 09:29:39 2020 +0000 (2020-04-27)
parents b10d41313e54
children
line diff
     1.1 --- a/php-gd/receipt	Fri Mar 20 15:21:15 2020 +0100
     1.2 +++ b/php-gd/receipt	Mon Apr 27 09:29:39 2020 +0000
     1.3 @@ -1,32 +1,34 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="php-gd"
     1.7 -VERSION="7.3.16"
     1.8 +VERSION="7.4.4"
     1.9  CATEGORY="development"
    1.10  SHORT_DESC="gd module for PHP web programming language."
    1.11  MAINTAINER="pascal.bellard@slitaz.org"
    1.12  LICENSE="BSD"
    1.13  WEB_SITE="https://www.php.net/"
    1.14 +
    1.15 +DEPENDS="jpeg libpng libvpx php"
    1.16  WANTED="php"
    1.17  
    1.18 -DEPENDS="libpng php jpeg libvpx"
    1.19 -
    1.20  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.21  genpkg_rules()
    1.22  {
    1.23  	mkdir -p $fs/usr/share/php
    1.24 -	cp $(find $install | grep gd.so) $fs/usr/share/php/
    1.25 +	cp $(find $install | grep gd.so)	$fs/usr/share/php/
    1.26  }
    1.27  
    1.28  # Post and pre install commans to stop
    1.29  # and restart Web server if needed.
    1.30  pre_install()
    1.31  {
    1.32 -	while read daemon file; do
    1.33 -		if [ -z "$1" -a -f "/var/run/$file" ]; then
    1.34 +	while read daemon file
    1.35 +	  do
    1.36 +		if [ -z "$1" -a -f "/var/run/$file" ]
    1.37 +		  then
    1.38  			/etc/init.d/$daemon stop
    1.39  		fi
    1.40 -	done <<EOT
    1.41 +	  done <<EOT
    1.42  apache apache/httpd.pid
    1.43  lighttpd lighttpd.pid
    1.44  EOT
    1.45 @@ -34,19 +36,24 @@
    1.46  
    1.47  post_install()
    1.48  {
    1.49 -	grep -q ^extension=gd.so "$1/etc/php.ini" || \
    1.50 -	    sed -e 's|extension=bz2.so|extension=bz2.so\nextension=gd.so|' -i "$1/etc/php.ini"
    1.51 +	grep -q ^extension=gd.so "$1/etc/php.ini" || 
    1.52 +	    sed -e 's|extension=bz2.so|extension=bz2.so\nextension=gd.so|' \
    1.53 +		-i "$1/etc/php.ini"
    1.54 +
    1.55  	# Start Web server.
    1.56 -	while read daemon file; do
    1.57 +	while read daemon file
    1.58 +	  do
    1.59  		[ -z "$1" ] || continue
    1.60 -		if [ -z "$1" -a -f "/var/run/$file" ]; then
    1.61 +		if [ -z "$1" -a -f "/var/run/$file" ]
    1.62 +		  then
    1.63  			/etc/init.d/$daemon stop
    1.64  			sleep 2
    1.65  		fi
    1.66 -		if [ -z "$1" -a -f /etc/init.d/$daemon ]; then
    1.67 +		if [ -z "$1" -a -f /etc/init.d/$daemon ]
    1.68 +		  then
    1.69  			/etc/init.d/$daemon start
    1.70  		fi
    1.71 -	done <<EOT
    1.72 +	  done <<EOT
    1.73  apache apache/httpd.pid
    1.74  lighttpd lighttpd.pid
    1.75  EOT
    1.76 @@ -58,18 +65,22 @@
    1.77  	sed -i '/.*=gd.so.*/d' "$1/etc/php.ini"
    1.78  
    1.79  	# Start Web server.
    1.80 -	while read daemon file; do
    1.81 -		if [ -f /etc/init.d/$daemon -a -f "/var/run/$file" ]; then
    1.82 +	while read daemon file
    1.83 +	  do
    1.84 +		if [ -f /etc/init.d/$daemon -a -f "/var/run/$file" ]
    1.85 +		  then
    1.86  			[ -z "$1" ] || continue
    1.87 -			if [ -z "$1" -a -f "/var/run/$file" ]; then
    1.88 +			if [ -z "$1" -a -f "/var/run/$file" ]
    1.89 +			  then
    1.90  				/etc/init.d/$daemon stop
    1.91  				sleep 2
    1.92  			fi
    1.93 -			if [ -z "$1" -a -f /etc/init.d/$daemon ]; then
    1.94 +			if [ -z "$1" -a -f /etc/init.d/$daemon ]
    1.95 +			  then
    1.96  				/etc/init.d/$daemon start
    1.97  			fi
    1.98  		fi
    1.99 -	done <<EOT
   1.100 +	  done <<EOT
   1.101  apache apache/httpd.pid
   1.102  lighttpd lighttpd.pid
   1.103  EOT