summaryrefslogtreecommitdiff
path: root/libre
diff options
context:
space:
mode:
authorNicolás Reynolds <apoyosis@correo.inta.gob.ar>2011-04-01 14:36:01 -0300
committerNicolás Reynolds <apoyosis@correo.inta.gob.ar>2011-04-01 14:36:01 -0300
commit14b5951cc10fa36bc2934a9e613732b5ee9af0c0 (patch)
tree55116a07d3d4ea346eab4fb30e16f927c1d47c95 /libre
parent905c5588ec037a2d3d0b2a6517d4646d1aaee2f8 (diff)
downloadabslibre-14b5951cc10fa36bc2934a9e613732b5ee9af0c0.tar.gz
abslibre-14b5951cc10fa36bc2934a9e613732b5ee9af0c0.tar.bz2
abslibre-14b5951cc10fa36bc2934a9e613732b5ee9af0c0.zip
ghostscript-libre-9.02-1
Diffstat (limited to 'libre')
-rw-r--r--libre/ghostscript-libre/PKGBUILD37
-rw-r--r--libre/ghostscript-libre/ghostscript-fPIC.patch20
-rw-r--r--libre/ghostscript-libre/ghostscript-gdevcups-691733.patch107
-rw-r--r--libre/ghostscript-libre/ghostscript-system-jasper.patch26
4 files changed, 6 insertions, 184 deletions
diff --git a/libre/ghostscript-libre/PKGBUILD b/libre/ghostscript-libre/PKGBUILD
index 60582062a..4c2e4f7ec 100644
--- a/libre/ghostscript-libre/PKGBUILD
+++ b/libre/ghostscript-libre/PKGBUILD
@@ -1,10 +1,10 @@
-# $Id: PKGBUILD 94631 2010-10-08 20:42:27Z andyrtr $
+# $Id$
# Maintainer: AndyRTR <andyrtr@archlinux.org>
# Maintainer (Parabola): xihh
pkgname=ghostscript-libre
-pkgver=9.01
-pkgrel=2
+pkgver=9.02
+pkgrel=1
pkgdesc="An interpreter for the PostScript language without non-free files"
arch=('i686' 'x86_64')
license=('GPL3') #non free files removed
@@ -16,43 +16,18 @@ conflicts=('ghostscript')
replaces=('ghostscript-lrpng' 'ghostscript')
provides=('ghostscript-lprng' "ghostscript=$pkgver")
url="http://www.ghostscript.com/"
-source=(http://ghostscript.com/releases/ghostscript-${pkgver}.tar.bz2
- ghostscript-fPIC.patch
- ghostscript-system-jasper.patch
- svn_rev11948.diff
- ghostscript-gdevcups-691733.patch
- gs_bug691759and691760.diff)
+source=(http://downloads.ghostscript.com/public/ghostscript-${pkgver}.tar.bz2)
options=('!libtool' '!makeflags')
-md5sums=('9824d6a21ad8b4a831f67601959f1181'
- '766d44c47c693f96941b658e360c1277'
- '03e27cd02471ab3b642c344fa06b623e'
- '78f2b9c2d6a5a60891b2d8b593a15b00'
- 'e459d4cf897bdb54fefbba9d57bd2fa2'
- '21841b0ea5bd67cf4b68ba64c5d5755b')
+md5sums=('f67151444bd56a7904579fc75a083dd6')
build() {
cd ${srcdir}/ghostscript-${pkgver}
+
# force it to use system-libs
rm -rf jpeg libpng zlib jasper expat tiff
# delete non-free packages
grep -l "are not altered" Resource/CMap/* | xargs rm -fv
- # fix build with systems jasper
-# patch -Np1 -i ${srcdir}/ghostscript-system-jasper.patch
-
-# if [ "$CARCH" = "x86_64" ]; then
-# patch -Np1 -i ${srcdir}/ghostscript-fPIC.patch
-# fi
-
- # part of https://bugs.archlinux.org/task/22006 - http://bugs.ghostscript.com/show_bug.cgi?id=691831
-# patch -Np2 -i ${srcdir}/svn_rev11948.diff
- # upstream fix for http://bugs.ghostscript.com/show_bug.cgi?id=691733 / part of https://bugs.archlinux.org/task/21388
- # patch taken from Fedora RawHide master
-# patch -Np1 -i ${srcdir}/ghostscript-gdevcups-691733.patch
- # patch for http://bugs.ghostscript.com/show_bug.cgi?id=691760 and http://bugs.ghostscript.com/show_bug.cgi?id=691759 / part of https://bugs.archlinux.org/task/21388
-# patch -Np2 -i ${srcdir}/gs_bug691759and691760.diff
-
-# ./autogen.sh
./configure --prefix=/usr \
--enable-dynamic \
--with-ijs \
diff --git a/libre/ghostscript-libre/ghostscript-fPIC.patch b/libre/ghostscript-libre/ghostscript-fPIC.patch
deleted file mode 100644
index 6f8999696..000000000
--- a/libre/ghostscript-libre/ghostscript-fPIC.patch
+++ /dev/null
@@ -1,20 +0,0 @@
---- ghostscript-8.60-r8112/base/lib.mak.fPIC 2007-07-10 17:03:11.000000000 +0100
-+++ ghostscript-8.60-r8112/base/lib.mak 2007-07-10 17:05:56.000000000 +0100
-@@ -874,7 +874,7 @@
- $(GLOBJ)gsparamx.$(OBJ) : $(GLSRC)gsparamx.c $(string__h)\
- $(gserror_h) $(gserrors_h) $(gsmemory_h) $(gsparam_h) $(gsparamx_h)\
- $(gstypes_h)
-- $(GLCC) $(GLO_)gsparamx.$(OBJ) $(C_) $(GLSRC)gsparamx.c
-+ $(GLCCSHARED) $(GLO_)gsparamx.$(OBJ) $(C_) $(GLSRC)gsparamx.c
-
- # Future replacement for gsparams.c
- $(GLOBJ)gsparam2.$(OBJ) : $(GLSRC)gsparam2.c $(GXERR) $(memory__h)\
-@@ -1077,7 +1077,7 @@
-
- # Provide a mapping between StandardEncoding and ISOLatin1Encoding.
- $(GLOBJ)gdevemap.$(OBJ) : $(GLSRC)gdevemap.c $(AK) $(std_h)
-- $(GLCC) $(GLO_)gdevemap.$(OBJ) $(C_) $(GLSRC)gdevemap.c
-+ $(GLCCSHARED) $(GLO_)gdevemap.$(OBJ) $(C_) $(GLSRC)gdevemap.c
-
- ###### Create a pseudo-"feature" for the entire graphics library.
-
diff --git a/libre/ghostscript-libre/ghostscript-gdevcups-691733.patch b/libre/ghostscript-libre/ghostscript-gdevcups-691733.patch
deleted file mode 100644
index 2f93f2e44..000000000
--- a/libre/ghostscript-libre/ghostscript-gdevcups-691733.patch
+++ /dev/null
@@ -1,107 +0,0 @@
-diff -up ghostscript-9.00/cups/gdevcups.c.gdevcups-691733 ghostscript-9.00/cups/gdevcups.c
---- ghostscript-9.00/cups/gdevcups.c.gdevcups-691733 2011-01-10 16:48:57.381703112 +0000
-+++ ghostscript-9.00/cups/gdevcups.c 2011-01-10 16:52:02.021813786 +0000
-@@ -2898,11 +2898,12 @@ cups_put_params(gx_device *pdev, /*
- int margins_set; /* Were the margins set? */
- int size_set; /* Was the size set? */
- int color_set; /* Were the color attrs set? */
-- gdev_prn_space_params sp; /* Space parameter data */
-+ gdev_prn_space_params sp_old; /* Space parameter data */
- int width, /* New width of page */
- height, /* New height of page */
- width_old = 0, /* Previous width of page */
- height_old = 0; /* Previous height of page */
-+ bool transp_old = 0; /* Previous transparency usage state */
- ppd_attr_t *backside = NULL,
- *backsiderequiresflippedmargins = NULL;
- float swap;
-@@ -2996,11 +2997,23 @@ cups_put_params(gx_device *pdev, /*
- } \
- }
-
-+ sp_old = ((gx_device_printer *)pdev)->space_params;
-+ width_old = pdev->width;
-+ height_old = pdev->height;
-+ transp_old = cups->page_uses_transparency;
- size_set = param_read_float_array(plist, ".MediaSize", &arrayval) == 0 ||
- param_read_float_array(plist, "PageSize", &arrayval) == 0;
- margins_set = param_read_float_array(plist, "Margins", &arrayval) == 0;
- color_set = param_read_int(plist, "cupsColorSpace", &intval) == 0 ||
- param_read_int(plist, "cupsBitsPerColor", &intval) == 0;
-+ /* We set the old dimensions to 1 if we have a color depth change, so
-+ that memory reallocation gets forced. This is perhaps not the correct
-+ approach to prevent crashes like in bug 690435. We keep it for the
-+ time being until we decide finally */
-+ if (color_set) {
-+ width_old = 1;
-+ height_old = 1;
-+ }
- /* We also recompute page size and margins if we simply get onto a new
- page without necessarily having a page size change in the PostScript
- code, as for some printers margins have to be flipped on the back sides of
-@@ -3081,9 +3094,9 @@ cups_put_params(gx_device *pdev, /*
- stringoption(cupsPageSizeName, "cupsPageSizeName");
- #endif /* CUPS_RASTER_SYNCv1 */
-
-- if ((code = param_read_string(plist, "cups->Profile", &stringval)) < 0)
-+ if ((code = param_read_string(plist, "cupsProfile", &stringval)) < 0)
- {
-- param_signal_error(plist, "cups->Profile", code);
-+ param_signal_error(plist, "cupsProfile", code);
- return (code);
- }
- else if (code == 0)
-@@ -3096,7 +3109,7 @@ cups_put_params(gx_device *pdev, /*
-
- cups_set_color_info(pdev);
-
-- /*
-+ /*
- * Then process standard page device options...
- */
-
-@@ -3404,17 +3417,6 @@ cups_put_params(gx_device *pdev, /*
- * does not keep track of the margins in the bitmap size...
- */
-
-- /* We set the old dimensions to -1 if we have a color depth change, so
-- that memory reallocation gets forced. This is perhaps not the correct
-- approach to preven crashes like in bug 690435. We keep it for the
-- time being until we decide finally */
-- if (color_set) {
-- width_old = -1;
-- height_old = -1;
-- } else {
-- width_old = pdev->width;
-- height_old = pdev->height;
-- }
- if (cups->landscape)
- {
- width = (pdev->MediaSize[1] - pdev->HWMargins[1] - pdev->HWMargins[3]) *
-@@ -3457,11 +3459,10 @@ cups_put_params(gx_device *pdev, /*
- pdev->MediaSize[0], pdev->MediaSize[1], width, height);
- #endif /* DEBUG */
-
-- sp = ((gx_device_printer *)pdev)->space_params;
--
-- if ((code = gdev_prn_maybe_realloc_memory((gx_device_printer *)pdev, &sp,
-+ if ((code = gdev_prn_maybe_realloc_memory((gx_device_printer *)pdev,
-+ &sp_old,
- width_old, height_old,
-- cups->page_uses_transparency))
-+ transp_old))
- < 0)
- return (code);
- #ifdef DEBUG
-@@ -3642,6 +3643,10 @@ cups_set_color_info(gx_device *pdev) /*
- cups->header.cupsBitsPerPixel = cups->header.cupsBitsPerColor;
- cups->color_info.depth = cups->header.cupsBitsPerPixel;
- cups->color_info.num_components = 1;
-+ cups->color_info.dither_grays = 1L << cups->header.cupsBitsPerColor;
-+ cups->color_info.dither_colors = 1L << cups->header.cupsBitsPerColor;
-+ cups->color_info.max_gray = cups->color_info.dither_grays - 1;
-+ cups->color_info.max_color = cups->color_info.dither_grays - 1;
- break;
-
- case CUPS_CSPACE_CMY :
-
diff --git a/libre/ghostscript-libre/ghostscript-system-jasper.patch b/libre/ghostscript-libre/ghostscript-system-jasper.patch
deleted file mode 100644
index 444b76029..000000000
--- a/libre/ghostscript-libre/ghostscript-system-jasper.patch
+++ /dev/null
@@ -1,26 +0,0 @@
-diff -up ghostscript-8.64/base/sjpx.c.system-jasper ghostscript-8.64/base/sjpx.c
---- ghostscript-8.64/base/sjpx.c.system-jasper 2008-08-21 00:22:49.000000000 +0100
-+++ ghostscript-8.64/base/sjpx.c 2009-02-04 11:35:56.000000000 +0000
-@@ -34,14 +34,6 @@ static void s_jpxd_set_defaults(stream_s
- private_st_jpxd_state(); /* creates a gc object for our state,
- defined in sjpx.h */
-
--/* error reporting callback for the jpx library */
--static void
--s_jpx_jas_error_cb(jas_error_t err, char *msg)
--{
-- dprintf2("jasper (code %d) %s", (int)err, msg);
--}
--
--
- /* initialize the steam.
- this involves allocating the stream and image structures, and
- initializing the decoder.
-@@ -59,7 +51,6 @@ s_jpxd_init(stream_state * ss)
- }
-
- status = jas_init();
-- jas_set_error_cb(s_jpx_jas_error_cb);
- #ifdef JPX_DEBUG
- /* raise the error reporting threshold from the default (0) */
- jas_setdbglevel(1);