changeset 6386:d81b4e9ab914

Fix darwin-{x86|ppc}::ghostscript Resource directory
author Masamichi Hosoda <trueroad@users.noreply.github.com>
date Wed, 18 Mar 2015 21:34:40 +0900
parents 7941370171bf
children bac82a635c18
files gub/specs/ghostscript.py patches/ghostscript-9.15-Resource-directory.patch
diffstat 2 files changed, 25 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/gub/specs/ghostscript.py	Sun Mar 15 18:24:50 2015 +0900
+++ b/gub/specs/ghostscript.py	Wed Mar 18 21:34:40 2015 +0900
@@ -301,6 +301,9 @@
                            '%(builddir)s/Makefile')
 
 class Ghostscript__darwin (Ghostscript):
+    patches = Ghostscript.patches + [
+        'ghostscript-9.15-Resource-directory.patch'
+    ]
     def configure (self):
         Ghostscript.configure (self)
         if 'linux' in self.settings.build_architecture:
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/patches/ghostscript-9.15-Resource-directory.patch	Wed Mar 18 21:34:40 2015 +0900
@@ -0,0 +1,22 @@
+--- ghostscript-9.15/Resource/Init/gs_lev2.ps.org	2014-09-22 19:17:33.000000000 +0900
++++ ghostscript-9.15/Resource/Init/gs_lev2.ps	2015-03-18 19:43:48.202037700 +0900
+@@ -653,7 +653,7 @@
+     % Search for valid (iccprofiles) directory as a sibling to (Resource)
+     % and set it as a default if found.
+     LIBPATH {
+-      (Resource) search {
++      (Resource/) search {
+         exch pop exch pop (iccprofiles) concatstrings
+         .file_name_separator concatstrings
+         dup (default_gray.icc) concatstrings status {
+--- ghostscript-9.15/Resource/Init/gs_res.ps.org	2014-09-22 19:17:33.000000000 +0900
++++ ghostscript-9.15/Resource/Init/gs_res.ps	2015-03-18 19:44:06.280211600 +0900
+@@ -284,7 +284,7 @@
+     dup .file_name_current eq {
+       pop
+     } {
+-      (Resource) search {
++      (Resource/) search {
+         exch concatstrings
+         exch pop
+         .file_name_separator concatstrings exit