[arch-commits] Commit in ghostscript/trunk (2 files)

andyrtr at archlinux.org andyrtr at archlinux.org
Thu Jan 19 20:56:53 UTC 2012


    Date: Thursday, January 19, 2012 @ 15:56:52
  Author: andyrtr
Revision: 146976

upgpkg: ghostscript 9.04-6

libtiff/libpng rebuild; add a patch now needed to link system freetype

Added:
  ghostscript/trunk/ghostscript-gpl-9.04-freetype-underlinking.patch
Modified:
  ghostscript/trunk/PKGBUILD

--------------------------------------------------+
 PKGBUILD                                         |   20 ++++++++++++--------
 ghostscript-gpl-9.04-freetype-underlinking.patch |   12 ++++++++++++
 2 files changed, 24 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2012-01-19 20:40:48 UTC (rev 146975)
+++ PKGBUILD	2012-01-19 20:56:52 UTC (rev 146976)
@@ -3,30 +3,34 @@
 
 pkgname=ghostscript
 pkgver=9.04
-pkgrel=5
+pkgrel=6
 pkgdesc="An interpreter for the PostScript language"
 arch=('i686' 'x86_64')
 license=('GPL3' 'custom')
-depends=('libxt' 'libcups' 'fontconfig' 'jasper' 'zlib' 'libpng' 'libjpeg' 'libtiff' 'lcms') # 'lcms2' won't get used) # move in libpaper from community?
+depends=('libxt' 'libcups' 'fontconfig' 'jasper' 'zlib' 'libpng>=1.5.7' 'libjpeg' 'libtiff>=4.0.0' 'lcms') # 'lcms2' won't get used) # move in libpaper from community?
 makedepends=('gtk2' 'gnutls')
 optdepends=('texlive-core:      needed for dvipdf'
             'gtk2:              needed for gsx')
 url="http://www.ghostscript.com/"
 source=(http://downloads.ghostscript.com/public/ghostscript-${pkgver}.tar.bz2
-	ghostscript-cups-rgbw.patch)
+	ghostscript-cups-rgbw.patch
+	ghostscript-gpl-9.04-freetype-underlinking.patch)
 options=('!libtool' '!makeflags')
 md5sums=('9f6899e821ab6d78ab2c856f10fa3023'
-         'bc56eb8c5fef0ecf964f6b3e9b7e65ae')
+         'bc56eb8c5fef0ecf964f6b3e9b7e65ae'
+         'a1928c3e4459dcfee0aaa4b38fadba57')
 
 build() {
   cd ${srcdir}/ghostscript-${pkgver}
   
   # fix broken color printing https://bugs.archlinux.org/task/25519
   patch -Np1 -i ${srcdir}/ghostscript-cups-rgbw.patch
-
+  # fix a linking issue
+  patch -Np1 -i ${srcdir}/ghostscript-gpl-9.04-freetype-underlinking.patch
+  
   # force it to use system-libs
-  rm -rf jpeg libpng zlib jasper expat tiff freetype lcms
-
+  rm -rf jpeg libpng zlib jasper expat tiff lcms freetype 
+  
   ./configure --prefix=/usr \
 	--enable-dynamic \
 	--with-ijs \
@@ -41,7 +45,7 @@
 	--without-luratech \
 	--disable-compile-inits #--help # needed for linking with system-zlib
   make
-  
+
   # Build IJS
   cd ${srcdir}/ghostscript-${pkgver}/ijs
   ./autogen.sh

Added: ghostscript-gpl-9.04-freetype-underlinking.patch
===================================================================
--- ghostscript-gpl-9.04-freetype-underlinking.patch	                        (rev 0)
+++ ghostscript-gpl-9.04-freetype-underlinking.patch	2012-01-19 20:56:52 UTC (rev 146976)
@@ -0,0 +1,12 @@
+diff -Naur ghostscript-9.04/base/Makefile.in ghostscript-9.04.new/base/Makefile.in
+--- ghostscript-9.04/base/Makefile.in	2011-08-05 13:12:20.000000000 +0200
++++ ghostscript-9.04.new/base/Makefile.in	2011-08-16 16:06:50.487377337 +0200
+@@ -375,7 +375,7 @@
+ # Solaris may need -lnsl -lsocket -lposix4.
+ # (Libraries required by individual drivers are handled automatically.)
+ 
+-EXTRALIBS=@LIBS@ @DYNAMIC_LIBS@ @FONTCONFIG_LIBS@
++EXTRALIBS=@LIBS@ @DYNAMIC_LIBS@ @FONTCONFIG_LIBS@ @FT_LIBS@
+ 
+ # Define the standard libraries to search at the end of linking.
+ # Most platforms require -lpthread for the POSIX threads library;




More information about the arch-commits mailing list