diff options
Diffstat (limited to 'homebrew/ghostscript')
-rw-r--r-- | homebrew/ghostscript/.beer | 113 | ||||
-rw-r--r-- | homebrew/ghostscript/.make.sh-auto | 10 | ||||
-rw-r--r-- | homebrew/ghostscript/_metadata/description | 1 | ||||
-rw-r--r-- | homebrew/ghostscript/_metadata/homepage | 1 | ||||
-rw-r--r-- | homebrew/ghostscript/_metadata/name | 1 | ||||
-rw-r--r-- | homebrew/ghostscript/_metadata/version | 1 | ||||
-rwxr-xr-x | homebrew/ghostscript/download.sh | 1 | ||||
-rwxr-xr-x | homebrew/ghostscript/patches.sh | 47 |
8 files changed, 175 insertions, 0 deletions
diff --git a/homebrew/ghostscript/.beer b/homebrew/ghostscript/.beer new file mode 100644 index 000000000..8cf5f0f3a --- /dev/null +++ b/homebrew/ghostscript/.beer @@ -0,0 +1,113 @@ +{ + "name": "Ghostscript", + "description": "Interpreter for PostScript and PDF", + "url": "https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs926/ghostpdl-9.26.tar.xz", + "mirror": null, + "homepage": "https://www.ghostscript.com/", + "depends": [ + { + "depend": "autoconf", + "build-depend": true + }, + { + "depend": "automake", + "build-depend": true + }, + { + "depend": "libtool", + "build-depend": true + }, + { + "depend": "pkg-config", + "build-depend": true + }, + { + "depend": "libtiff", + "build-depend": false + } + ], + "resource": [ + { + "name": "fonts", + "url": "https://downloads.sourceforge.net/project/gs-fonts/gs-fonts/8.11%20%28base%2035%2C%20GPL%29/ghostscript-fonts-std-8.11.tar.gz" + } + ], + "conflicts": [], + "patches": [ + { + "url": "https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs926/0001-Bug700317-Address-.force-operators-exposure.tgz", + "strip": "1" + }, + { + "url": null, + "data": [ + "diff --git i/base/unix-dll.mak w/base/unix-dll.mak\n", + "index f50c09c00adb..8855133b400c 100644\n", + "--- i/base/unix-dll.mak\n", + "+++ w/base/unix-dll.mak\n", + "@@ -89,18 +89,33 @@ GPDL_SONAME_MAJOR_MINOR=$(GPDL_SONAME_BASE)$(GS_SOEXT)$(SO_LIB_VERSION_SEPARATOR\n", + " # similar linkers it must containt the trailing \"=\"\n", + " # LDFLAGS_SO=-shared -Wl,$(LD_SET_DT_SONAME)$(LDFLAGS_SO_PREFIX)$(GS_SONAME_MAJOR)\n", + " \n", + " \n", + " # MacOS X\n", + "-#GS_SOEXT=dylib\n", + "-#GS_SONAME=$(GS_SONAME_BASE).$(GS_SOEXT)\n", + "-#GS_SONAME_MAJOR=$(GS_SONAME_BASE).$(GS_VERSION_MAJOR).$(GS_SOEXT)\n", + "-#GS_SONAME_MAJOR_MINOR=$(GS_SONAME_BASE).$(GS_VERSION_MAJOR).$(GS_VERSION_MINOR).$(GS_SOEXT)\n", + "+GS_SOEXT=dylib\n", + "+GS_SONAME=$(GS_SONAME_BASE).$(GS_SOEXT)\n", + "+GS_SONAME_MAJOR=$(GS_SONAME_BASE).$(GS_VERSION_MAJOR).$(GS_SOEXT)\n", + "+GS_SONAME_MAJOR_MINOR=$(GS_SONAME_BASE).$(GS_VERSION_MAJOR).$(GS_VERSION_MINOR).$(GS_SOEXT)\n", + " #LDFLAGS_SO=-dynamiclib -flat_namespace\n", + "-#LDFLAGS_SO_MAC=-dynamiclib -install_name $(GS_SONAME_MAJOR_MINOR)\n", + "+GS_LDFLAGS_SO=-dynamiclib -install_name $(GS_SONAME_MAJOR_MINOR)\n", + " #LDFLAGS_SO=-dynamiclib -install_name $(FRAMEWORK_NAME)\n", + " \n", + "+PCL_SONAME=$(PCL_SONAME_BASE).$(GS_SOEXT)\n", + "+PCL_SONAME_MAJOR=$(PCL_SONAME_BASE).$(GS_VERSION_MAJOR).$(GS_SOEXT)\n", + "+PCL_SONAME_MAJOR_MINOR=$(PCL_SONAME_BASE).$(GS_VERSION_MAJOR).$(GS_VERSION_MINOR).$(GS_SOEXT)\n", + "+PCL_LDFLAGS_SO=-dynamiclib -install_name $(PCL_SONAME_MAJOR_MINOR)\n", + "+\n", + "+XPS_SONAME=$(XPS_SONAME_BASE).$(GS_SOEXT)\n", + "+XPS_SONAME_MAJOR=$(XPS_SONAME_BASE).$(GS_VERSION_MAJOR).$(GS_SOEXT)\n", + "+XPS_SONAME_MAJOR_MINOR=$(XPS_SONAME_BASE).$(GS_VERSION_MAJOR).$(GS_VERSION_MINOR).$(GS_SOEXT)\n", + "+XPS_LDFLAGS_SO=-dynamiclib -install_name $(XPS_SONAME_MAJOR_MINOR)\n", + "+\n", + "+GPDL_SONAME=$(GPDL_SONAME_BASE).$(GS_SOEXT)\n", + "+GPDL_SONAME_MAJOR=$(GPDL_SONAME_BASE).$(GS_VERSION_MAJOR).$(GS_SOEXT)\n", + "+GPDL_SONAME_MAJOR_MINOR=$(GPDL_SONAME_BASE).$(GS_VERSION_MAJOR).$(GS_VERSION_MINOR).$(GS_SOEXT)\n", + "+GPDL_LDFLAGS_SO=-dynamiclib -install_name $(GPDL_SONAME_MAJOR_MINOR)\n", + "+\n", + " GS_SO=$(BINDIR)/$(GS_SONAME)\n", + " GS_SO_MAJOR=$(BINDIR)/$(GS_SONAME_MAJOR)\n", + " GS_SO_MAJOR_MINOR=$(BINDIR)/$(GS_SONAME_MAJOR_MINOR)\n", + "\n", + " PCL_SO=$(BINDIR)/$(PCL_SONAME)\n" + ] + } + ], + "install": [ + "args = %W[", + "--prefix=#{prefix}", + "--disable-cups", + "--disable-compile-inits", + "--disable-gtk", + "--disable-fontconfig", + "--without-libidn", + "--with-system-libtiff", + "--without-x", + "]", + "if build.head?", + "system \"./autogen.sh\", *args", + "else", + "system \"./configure\", *args", + "end", + "system \"make\", \"install\"", + "system \"make\", \"install-so\"", + "(pkgshare/\"fonts\").install resource(\"fonts\")", + "(man/\"de\").rmtree" + ], + "version": "9.26", + "file": "ghostscript.rb" +}
\ No newline at end of file diff --git a/homebrew/ghostscript/.make.sh-auto b/homebrew/ghostscript/.make.sh-auto new file mode 100644 index 000000000..27608ef63 --- /dev/null +++ b/homebrew/ghostscript/.make.sh-auto @@ -0,0 +1,10 @@ +pkg:setup +args = %W[--prefix=#{prefix} --disable-cups --disable-compile-inits --disable-gtk --disable-fontconfig --without-libidn --with-system-libtiff --without-x ] +./autogen.sh *args +else +pkg:configure *args +end +make DESTDIR=${PKG_DEST} install +make DESTDIR=${PKG_DEST} install-so +(pkgshare/"fonts").install resource("fonts") +(man/"de").rmtree diff --git a/homebrew/ghostscript/_metadata/description b/homebrew/ghostscript/_metadata/description new file mode 100644 index 000000000..61618154a --- /dev/null +++ b/homebrew/ghostscript/_metadata/description @@ -0,0 +1 @@ +Interpreter for PostScript and PDF diff --git a/homebrew/ghostscript/_metadata/homepage b/homebrew/ghostscript/_metadata/homepage new file mode 100644 index 000000000..c001035cc --- /dev/null +++ b/homebrew/ghostscript/_metadata/homepage @@ -0,0 +1 @@ +https://www.ghostscript.com/ diff --git a/homebrew/ghostscript/_metadata/name b/homebrew/ghostscript/_metadata/name new file mode 100644 index 000000000..d5507e9e1 --- /dev/null +++ b/homebrew/ghostscript/_metadata/name @@ -0,0 +1 @@ +Ghostscript diff --git a/homebrew/ghostscript/_metadata/version b/homebrew/ghostscript/_metadata/version new file mode 100644 index 000000000..aaf2f6262 --- /dev/null +++ b/homebrew/ghostscript/_metadata/version @@ -0,0 +1 @@ +9.26 diff --git a/homebrew/ghostscript/download.sh b/homebrew/ghostscript/download.sh new file mode 100755 index 000000000..42e4e979a --- /dev/null +++ b/homebrew/ghostscript/download.sh @@ -0,0 +1 @@ +wget https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs926/ghostpdl-9.26.tar.xz
\ No newline at end of file diff --git a/homebrew/ghostscript/patches.sh b/homebrew/ghostscript/patches.sh new file mode 100755 index 000000000..b9050fdc5 --- /dev/null +++ b/homebrew/ghostscript/patches.sh @@ -0,0 +1,47 @@ +wget https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs926/0001-Bug700317-Address-.force-operators-exposure.tgz +echo 'Creating brew-patch.diff' +cat << EOF >> brew-patch.diff +diff --git i/base/unix-dll.mak w/base/unix-dll.mak +index f50c09c00adb..8855133b400c 100644 +--- i/base/unix-dll.mak ++++ w/base/unix-dll.mak +@@ -89,18 +89,33 @@ GPDL_SONAME_MAJOR_MINOR=$(GPDL_SONAME_BASE)$(GS_SOEXT)$(SO_LIB_VERSION_SEPARATOR + # similar linkers it must containt the trailing "=" + # LDFLAGS_SO=-shared -Wl,$(LD_SET_DT_SONAME)$(LDFLAGS_SO_PREFIX)$(GS_SONAME_MAJOR) + + + # MacOS X +-#GS_SOEXT=dylib +-#GS_SONAME=$(GS_SONAME_BASE).$(GS_SOEXT) +-#GS_SONAME_MAJOR=$(GS_SONAME_BASE).$(GS_VERSION_MAJOR).$(GS_SOEXT) +-#GS_SONAME_MAJOR_MINOR=$(GS_SONAME_BASE).$(GS_VERSION_MAJOR).$(GS_VERSION_MINOR).$(GS_SOEXT) ++GS_SOEXT=dylib ++GS_SONAME=$(GS_SONAME_BASE).$(GS_SOEXT) ++GS_SONAME_MAJOR=$(GS_SONAME_BASE).$(GS_VERSION_MAJOR).$(GS_SOEXT) ++GS_SONAME_MAJOR_MINOR=$(GS_SONAME_BASE).$(GS_VERSION_MAJOR).$(GS_VERSION_MINOR).$(GS_SOEXT) + #LDFLAGS_SO=-dynamiclib -flat_namespace +-#LDFLAGS_SO_MAC=-dynamiclib -install_name $(GS_SONAME_MAJOR_MINOR) ++GS_LDFLAGS_SO=-dynamiclib -install_name $(GS_SONAME_MAJOR_MINOR) + #LDFLAGS_SO=-dynamiclib -install_name $(FRAMEWORK_NAME) + ++PCL_SONAME=$(PCL_SONAME_BASE).$(GS_SOEXT) ++PCL_SONAME_MAJOR=$(PCL_SONAME_BASE).$(GS_VERSION_MAJOR).$(GS_SOEXT) ++PCL_SONAME_MAJOR_MINOR=$(PCL_SONAME_BASE).$(GS_VERSION_MAJOR).$(GS_VERSION_MINOR).$(GS_SOEXT) ++PCL_LDFLAGS_SO=-dynamiclib -install_name $(PCL_SONAME_MAJOR_MINOR) ++ ++XPS_SONAME=$(XPS_SONAME_BASE).$(GS_SOEXT) ++XPS_SONAME_MAJOR=$(XPS_SONAME_BASE).$(GS_VERSION_MAJOR).$(GS_SOEXT) ++XPS_SONAME_MAJOR_MINOR=$(XPS_SONAME_BASE).$(GS_VERSION_MAJOR).$(GS_VERSION_MINOR).$(GS_SOEXT) ++XPS_LDFLAGS_SO=-dynamiclib -install_name $(XPS_SONAME_MAJOR_MINOR) ++ ++GPDL_SONAME=$(GPDL_SONAME_BASE).$(GS_SOEXT) ++GPDL_SONAME_MAJOR=$(GPDL_SONAME_BASE).$(GS_VERSION_MAJOR).$(GS_SOEXT) ++GPDL_SONAME_MAJOR_MINOR=$(GPDL_SONAME_BASE).$(GS_VERSION_MAJOR).$(GS_VERSION_MINOR).$(GS_SOEXT) ++GPDL_LDFLAGS_SO=-dynamiclib -install_name $(GPDL_SONAME_MAJOR_MINOR) ++ + GS_SO=$(BINDIR)/$(GS_SONAME) + GS_SO_MAJOR=$(BINDIR)/$(GS_SONAME_MAJOR) + GS_SO_MAJOR_MINOR=$(BINDIR)/$(GS_SONAME_MAJOR_MINOR) + + PCL_SO=$(BINDIR)/$(PCL_SONAME) +EOF |