wok-next rev 20637
ghostscript: update (b)deps (avoid jpeg / libjpeg-turbo to be in the same package)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Apr 27 16:32:16 2018 +0300 (2018-04-27) |
parents | 9a488e19da38 |
children | 4682873d09ff |
files | ghostscript/receipt |
line diff
1.1 --- a/ghostscript/receipt Fri Apr 27 15:12:17 2018 +0300 1.2 +++ b/ghostscript/receipt Fri Apr 27 16:32:16 2018 +0300 1.3 @@ -3,35 +3,30 @@ 1.4 PACKAGE="ghostscript" 1.5 VERSION="9.22" 1.6 CATEGORY="office" 1.7 -SHORT_DESC="Ghostscript tools and utilities." 1.8 +SHORT_DESC="Ghostscript tools and utilities" 1.9 MAINTAINER="jozee@slitaz.org" 1.10 LICENSE="GPL3" 1.11 +WEB_SITE="http://pages.cs.wisc.edu/~ghost/" 1.12 + 1.13 TARBALL="$PACKAGE-$VERSION.tar.xz" 1.14 -WEB_SITE="http://pages.cs.wisc.edu/~ghost/" 1.15 WGET_URL="https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs${VERSION/./}/$TARBALL" 1.16 1.17 # build depends are optional ; ghostscripts still build but does not compile in cups support 1.18 BUILD_DEPENDS="cairo-dev gtk+-dev expat-dev fontconfig-dev freetype-dev \ 1.19 -gnutls-dev jpeg-dev libgcrypt-dev libgpg-error-dev libpng16-dev tiff-dev \ 1.20 +gnutls-dev libgcrypt-dev libgpg-error-dev libpng16-dev tiff-dev \ 1.21 zlib-dev cups-dev jbig2dec jasper-dev" 1.22 SPLIT="ghostscript ghostscript-dev" 1.23 1.24 -# Rules to configure and make the package. 1.25 -compile_rules() 1.26 -{ 1.27 +compile_rules() { 1.28 # force it to use system-libs 1.29 rm -rf jpeg libpng zlib jasper expat tiff 1.30 1.31 # --disable-compile-inits is needed for linking with system-zlib 1.32 1.33 ./configure \ 1.34 - --prefix=/usr \ 1.35 - --infodir=/usr/share/info \ 1.36 - --mandir=/usr/share/man \ 1.37 --disable-compile-inits \ 1.38 --enable-dynamic \ 1.39 --enable-cups \ 1.40 - --enable-cairo \ 1.41 --enable-gtk \ 1.42 --with-fontpath=/usr/share/fonts/truetype/:/usr/share/fonts \ 1.43 --disable-compile-inits \ 1.44 @@ -40,38 +35,24 @@ 1.45 make DESTDIR=$DESTDIR install soinstall 1.46 } 1.47 1.48 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.49 -genpkg_rules() 1.50 -{ 1.51 +genpkg_rules() { 1.52 case $PACKAGE in 1.53 - ghostscript) 1.54 - DEPENDS="gtk+ expat fontconfig freetype gnutls jpeg libgcrypt \ 1.55 - libgpg-error libpng16 tiff zlib cups xorg-libICE \ 1.56 - xorg-libSM xorg-libX11 xorg-libXau xorg-libXdmcp \ 1.57 - xorg-libXext xorg-libXt gcc-lib-base jasper jbig2dec" 1.58 - mkdir -p $fs/usr/share 1.59 - mkdir -p $fs/usr/lib 1.60 - cp -a $install/usr/bin $fs/usr 1.61 - cp -a $install/usr/lib $fs/usr 1.62 - cp -a $install/usr/share/$PACKAGE $fs/usr/share 1.63 - # Remove doc and examples 1.64 - rm -rf $fs/usr/share/$PACKAGE/$VERSION/doc 1.65 - rm -rf $fs/usr/share/$PACKAGE/$VERSION/examples 1.66 - # Remove CMAPs (Non-free : not covered under GPL) : moved to non-free package get-ghostscript-CMAP 1.67 - rm -rf $fs/usr/share/$PACKAGE/$VERSION/Resource/CMap/* 1.68 - 1.69 - # already compiled as a shared lib; gsc is same as gs 1.70 - rm -rf $fs/usr/bin/gs 1.71 - ;; 1.72 - ghostscript-dev) 1.73 - CAT="development|Ghostscript devel file" 1.74 - mkdir -p $fs/usr/include 1.75 - cp -a $install/usr/include $fs/usr 1.76 - ;; 1.77 + ghostscript) 1.78 + copy @std 1.79 + # Remove doc and examples 1.80 + rm -rf $fs/usr/share/$PACKAGE/$VERSION/doc 1.81 + rm -rf $fs/usr/share/$PACKAGE/$VERSION/examples 1.82 + # Remove CMAPs (Non-free : not covered under GPL) : moved to non-free package get-ghostscript-CMAP 1.83 + rm -rf $fs/usr/share/$PACKAGE/$VERSION/Resource/CMap/* 1.84 + # already compiled as a shared lib; gsc is same as gs 1.85 + rm -rf $fs/usr/bin/gs 1.86 + ln -s gsc $fs/usr/bin/gs 1.87 + 1.88 + DEPENDS="atk cairo cups fontconfig freetype gdk-pixbuf glib gtk+ \ 1.89 + libcups libgnutls libidn libjpeg-turbo libpng16 pango tiff zlib" 1.90 + ;; 1.91 + *-dev) 1.92 + copy @std 1.93 + ;; 1.94 esac 1.95 } 1.96 - 1.97 -post_install_ghostscript() 1.98 -{ 1.99 - ln -sf /usr/bin/gsc "$1/usr/bin/gs" 1.100 -}