diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2013-04-22 12:39:57 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2013-04-22 15:03:32 +0000 |
commit | 84adbba77776469130179dac35a19800eab16c7d (patch) | |
tree | 3daaac3a6203ba5aa5360bd2bbc9c54c9ee91fbf /main/ghostscript/APKBUILD | |
parent | 04750f7fd359fcb23404dab8dfdf27d590f55266 (diff) | |
download | aports-84adbba77776469130179dac35a19800eab16c7d.tar.bz2 aports-84adbba77776469130179dac35a19800eab16c7d.tar.xz |
main/ghostscript: upgrade to 9.07
Diffstat (limited to 'main/ghostscript/APKBUILD')
-rw-r--r-- | main/ghostscript/APKBUILD | 49 |
1 files changed, 27 insertions, 22 deletions
diff --git a/main/ghostscript/APKBUILD b/main/ghostscript/APKBUILD index 88872ca3f9..69806d87b4 100644 --- a/main/ghostscript/APKBUILD +++ b/main/ghostscript/APKBUILD @@ -1,8 +1,8 @@ # Contributor: Cameron Banta <cbanta@gmail.com> # Maintainer: Cameron Banta <cbanta@gmail.com> pkgname=ghostscript -pkgver=9.06 -pkgrel=3 +pkgver=9.07 +pkgrel=0 pkgdesc="An interpreter for the PostScript language and for PDF" url="http://ghostscript.com/" arch="all" @@ -11,17 +11,16 @@ makedepends="autoconf automake libjpeg-turbo-dev libpng-dev jasper-dev expat-dev zlib-dev tiff-dev freetype-dev libiconv-dev lcms-dev gtk+3.0-dev libtool" subpackages="$pkgname-doc $pkgname-dev $pkgname-gtk" -patches="CVE-2012-4405.patch" source="http://downloads.ghostscript.com/public/$pkgname-$pkgver.tar.gz - $patches" + ijs-automake.patch" _builddir="$srcdir/ghostscript-$pkgver" prepare() { cd "$_builddir" - - for i in $patches; do - msg $i - patch -p1 -i "$srcdir"/$i || return 1 + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac done # force it to use system-libs @@ -31,9 +30,20 @@ prepare() { sed -i -e 's/ECHO_XE/ECHOGS_XE/g' \ -e 's/^\($(GLOBJ)md5.$(OBJ) :.*\)/\1 $(ECHOGS_XE)/' \ base/lib.mak || return 1 - - ./autogen.sh \ - --prefix=/usr \ + aclocal && autoconf --force + + cd $_builddir/ijs + libtoolize --force && aclocal && autoconf && automake --add-missing +} + +build(){ + # build ijs + cd "$_builddir"/ijs + ./configure --prefix=/usr --enable-shared --disable-static || return 1 + make + + cd "$_builddir" + ./configure --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ @@ -47,15 +57,6 @@ prepare() { --with-drivers=FILES \ --with-fontpath=/usr/share/fonts/Type1:/usr/share/fonts \ --disable-compile-inits # needed for linking with system-zlib -} - -build(){ - # build ijs - cd "$_builddir"/ijs - ./autogen.sh --prefix=/usr --enable-shared --disable-static || return 1 - make - - cd "$_builddir" make so all || return 1 } @@ -91,5 +92,9 @@ gtk() { mv "$pkgdir"/usr/bin/gsx "$subpkgdir"/usr/bin/ } -md5sums="153ddb0622cb155d2f600146f1e28d84 ghostscript-9.06.tar.gz -9b77fb067f77c15116bd9c5b2ab58805 CVE-2012-4405.patch" +md5sums="57ebf17c5abcf0fc95a386bfff08c1a4 ghostscript-9.07.tar.gz +859759dbc83ac035ee5ee23e212d3f5a ijs-automake.patch" +sha256sums="44800d004c53f13192d1b5db413119198ddfc8a11c4d2a030aac2f2fda822ebf ghostscript-9.07.tar.gz +974fe579aa96290cd85e70552aef7e80159f304686e11c8eb3b701a108dfcc6c ijs-automake.patch" +sha512sums="32935ecd1f0dd6faaa1568bce26c1f24a7e19f169ea586ec50039c616f1555b01324261e139ed1910dea1055b0fb548888d230c202d5d7b7fd8d44ae9f001b58 ghostscript-9.07.tar.gz +4ba7f19015d6f4a668188abb9b872585141a9ebc95792378d09853ee52983d1fb2c9e5e2b0a3d7bd8ea5cf85724881c5db81c8f01aa0b64d93cf82755701ad36 ijs-automake.patch" |