# HG changeset patch # User Masamichi Hosoda # Date 1426682080 -32400 # Node ID d81b4e9ab9147702e78b3f648a2d6bcac155e8e5 # Parent 7941370171bf2d51f01405aebe10fb3548ca7121 Fix darwin-{x86|ppc}::ghostscript Resource directory diff -r 7941370171bf -r d81b4e9ab914 gub/specs/ghostscript.py --- 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: diff -r 7941370171bf -r d81b4e9ab914 patches/ghostscript-9.15-Resource-directory.patch --- /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