wok-6.x diff hplip/receipt @ rev 14982

Up: thunderbird-langpack-it (17.0.8esr)
author Dominique Corbex <domcox@slitaz.org>
date Thu Aug 08 22:21:09 2013 +0200 (2013-08-08)
parents 935383e00a80
children 7896f0694ef6
line diff
     1.1 --- a/hplip/receipt	Thu Sep 13 00:36:01 2012 +0000
     1.2 +++ b/hplip/receipt	Thu Aug 08 22:21:09 2013 +0200
     1.3 @@ -1,18 +1,18 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="hplip"
     1.7 -VERSION="3.12.2" 
     1.8 +VERSION="3.12.11" 
     1.9  CATEGORY="system-tools"
    1.10  SHORT_DESC="Drivers for HP DeskJet, OfficeJet, Photosmart, Business Inkjet and some LaserJet"
    1.11  MAINTAINER="jozee@slitaz.org"
    1.12  DEPENDS="ghostscript python cups dbus-python libusb jpeg tiff sane-backends \
    1.13 -libgphoto2 libexif gcc-lib-base libtool libv4l"
    1.14 -BUILD_DEPENDS="ghostscript-dev dbus-python-dev sane-backends-dev sane-backends \
    1.15 -libexif-dev libgphoto2-dev libgphoto2 pkg-config libusb-dev jpeg-dev cups-dev \
    1.16 -dbus-dev tiff-dev python python-dev dbus-python libtool"
    1.17 +libgphoto2 libexif gcc-lib-base libtool libv4l net-snmp PyQt-x11-gpl"
    1.18 +BUILD_DEPENDS="ghostscript-dev dbus-python-dev sane-backends-dev \
    1.19 +sane-backends libexif-dev libgphoto2-dev Qt4-dev libgphoto2 pkg-config libusb-dev \
    1.20 +jpeg-dev cups-dev dbus-dev tiff-dev python python-dev dbus-python net-snmp-dev"
    1.21  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.22  WEB_SITE="http://hplipopensource.com"
    1.23 -WGET_URL="http://downloads.sourceforge.net/sourceforge/hplip/$TARBALL"
    1.24 +WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
    1.25  TAGS="printer driver printing"
    1.26  BUGS="Unable to delete hplip.desktop from $fs.  Using hack in post_install."
    1.27  
    1.28 @@ -20,18 +20,18 @@
    1.29  compile_rules()
    1.30  {
    1.31  	cd $src
    1.32 +
    1.33 +	# fix build with cups 1.6 - FC hplip-ipp-accessors.patch
    1.34 +	patch -Np1 -i $stuff/cups-1.6-buildfix.diff
    1.35 +
    1.36  	./configure  \
    1.37  		--prefix=/usr \
    1.38  		--sysconfdir=/etc \
    1.39 -		--disable-network-build \
    1.40  		--disable-doc-build \
    1.41 -		--disable-gui-build \
    1.42 -		--disable-fax-build \
    1.43 -		--disable-qt3 \
    1.44 -                --enable-pp-build \
    1.45 +		--enable-qt4 \
    1.46  		$CONFIGURE_ARGS &&
    1.47  	make &&
    1.48 -	make DESTDIR=$PWD/_pkg install
    1.49 +	make DESTDIR=$DESTDIR install
    1.50  }
    1.51  
    1.52  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.53 @@ -39,21 +39,23 @@
    1.54  {
    1.55  	mkdir -p $fs/etc $fs/usr/lib $fs/usr/share
    1.56  	
    1.57 -	cp -a $_pkg/etc   $fs
    1.58 -	cp -a $_pkg/usr/bin $fs/usr
    1.59 -	cp -a $_pkg/usr/lib/cups $fs/usr/lib
    1.60 -	cp -a $_pkg/usr/lib/python* $fs/usr/lib
    1.61 -	cp -a $_pkg/usr/lib/sane $fs/usr/lib
    1.62 -	cp -a $_pkg/usr/lib/*so* $fs/usr/lib
    1.63 -	cp -a $_pkg/usr/share/cups \
    1.64 -		   $_pkg/usr/share/hal \
    1.65 -		   $_pkg/usr/share/hplip \
    1.66 -		   $_pkg/usr/share/ppd \
    1.67 +	cp -a $install/etc   $fs
    1.68 +	cp -a $install/usr/bin $fs/usr
    1.69 +	cp -a $install/usr/lib/cups $fs/usr/lib
    1.70 +	cp -a $install/usr/lib/python* $fs/usr/lib
    1.71 +	cp -a $install/usr/lib/sane $fs/usr/lib
    1.72 +	cp -a $install/usr/lib/*so* $fs/usr/lib
    1.73 +	cp -a $install/usr/share/cups \
    1.74 +		   $install/usr/share/hplip \
    1.75 +		   $install/usr/share/ppd \
    1.76  		   $fs/usr/share
    1.77  
    1.78  	# compress non-zipped ppd files
    1.79  	find $fs/usr/share/ppd/HP -name "*.ppd" -exec gzip -n9 {} \;
    1.80 - 
    1.81 +
    1.82 +	# make sure hp-toolbox exist
    1.83 +	ln -sf ../share/hplip/toolbox.py $fs/usr/bin/hp-toolbox	
    1.84 +
    1.85  	# remove autostart of hp-daemon
    1.86  	rm -rf $fs/etc/sane.d
    1.87   
    1.88 @@ -63,8 +65,5 @@
    1.89  
    1.90  post_install()
    1.91  {
    1.92 -	# remove the desktop file                                   
    1.93 -	rm $fs/usr/share/applications/hplip.desktop
    1.94 -	                
    1.95  	tazpkg reconfigure udev --root=$1
    1.96  }