Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ghostscript 10.04.0 #191187

Merged
merged 10 commits into from
Sep 19, 2024
67 changes: 7 additions & 60 deletions Formula/g/ghostscript.rb
Original file line number Diff line number Diff line change
@@ -1,27 +1,10 @@
class Ghostscript < Formula
desc "Interpreter for PostScript and PDF"
homepage "https://www.ghostscript.com/"
url "https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs10040/ghostpdl-10.04.0.tar.xz"
sha256 "0603f5629bc6f567b454911d104cd96702489c9e70e577787843f480b23d4a77"
license "AGPL-3.0-or-later"

stable do
url "https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs10031/ghostpdl-10.03.1.tar.xz"
sha256 "05eee45268f6bb2c6189f9a40685c4608ca089443a93f2af5f5194d83dc368db"

on_macos do
# 1. Prevent dependent rebuilds on minor version bumps.
# Reported upstream at:
# https://bugs.ghostscript.com/show_bug.cgi?id=705907
patch :DATA
end

# Backport fix for missing pointer dereference
# https://bugs.ghostscript.com/show_bug.cgi?id=707649
patch do
url "https://github.com/ArtifexSoftware/ghostpdl/commit/90cabe08422afdd16bac5dd9217602679d943045.patch?full_index=1"
sha256 "deed9573aa17adbab2776f44b58a851b5aac06e2cdd99440169ca16ec9504de0"
end
end

# The GitHub tags omit delimiters (e.g. `gs9533` for version 9.53.3). The
# `head` repository tags are formatted fine (e.g. `ghostpdl-9.53.3`) but a
# version may be tagged before the release is available on GitHub, so we
Expand Down Expand Up @@ -56,11 +39,14 @@ class Ghostscript < Formula
depends_on "freetype"
depends_on "jbig2dec"
depends_on "jpeg-turbo"
depends_on "leptonica"
depends_on "libarchive"
depends_on "libidn"
depends_on "libpng"
depends_on "libtiff"
depends_on "little-cms2"
depends_on "openjpeg"
depends_on "tesseract"

uses_from_macos "expat"
uses_from_macos "zlib"
Expand All @@ -77,7 +63,7 @@ class Ghostscript < Formula

def install
# Delete local vendored sources so build uses system dependencies
libs = %w[expat freetype jbig2dec jpeg lcms2mt libpng openjpeg tiff zlib]
libs = %w[expat freetype jbig2dec jpeg lcms2mt leptonica libpng openjpeg tesseract tiff zlib]
libs.each { |l| rm_r(buildpath/l) }

configure = build.head? ? "./autogen.sh" : "./configure"
Expand All @@ -87,9 +73,7 @@ def install
--disable-gtk
--with-system-libtiff
--without-x]
# Work around neon detection bug: https://bugs.ghostscript.com/show_bug.cgi?id=707993
odie "`--disable-neon` workaround should be removed!" if build.stable? && version > "10.03.1"
args << "--disable-neon" if DevelopmentTools.clang_build_version >= 1600

system configure, *std_configure_args, *args

# Install binaries and libraries
Expand All @@ -104,40 +88,3 @@ def install
assert_match "Hello World!", shell_output("#{bin}/ps2ascii #{ps}")
end
end

__END__
diff --git a/base/unix-dll.mak b/base/unix-dll.mak
index 89dfa5a..c907831 100644
--- a/base/unix-dll.mak
+++ b/base/unix-dll.mak
@@ -100,10 +100,26 @@ GS_DLLEXT=$(DLL_EXT)


# 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)
+
+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)
+
+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)
+
+PDF_SONAME=$(PDF_SONAME_BASE).$(GS_SOEXT)
+PDF_SONAME_MAJOR=$(PDF_SONAME_BASE).$(GS_VERSION_MAJOR).$(GS_SOEXT)
+PDF_SONAME_MAJOR_MINOR=$(PDF_SONAME_BASE).$(GS_VERSION_MAJOR).$(GS_VERSION_MINOR).$(GS_SOEXT)
+
+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)
#LDFLAGS_SO=-dynamiclib -flat_namespace
#LDFLAGS_SO_MAC=-dynamiclib -install_name $(GS_SONAME_MAJOR_MINOR)
#LDFLAGS_SO=-dynamiclib -install_name $(FRAMEWORK_NAME)
2 changes: 1 addition & 1 deletion Formula/i/imagemagick.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
class Imagemagick < Formula

Check warning on line 1 in Formula/i/imagemagick.rb

View workflow job for this annotation

GitHub Actions / Linux

`brew linkage --cached --test --strict imagemagick` failed on Linux!

Indirect dependencies with linkage: libxext
desc "Tools and libraries to manipulate images in many formats"
homepage "https://imagemagick.org/index.php"
url "https://imagemagick.org/archive/releases/ImageMagick-7.1.1-38.tar.xz"
sha256 "48de548d4977fc226c982ca03b9d6ad8001b47d8dc142b49fdca69333bc4ad82"
license "ImageMagick"
revision 1
revision 2
head "https://github.com/ImageMagick/ImageMagick.git", branch: "main"

livecheck do
Expand Down
1 change: 1 addition & 0 deletions Formula/i/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ class ImagemagickAT6 < Formula
url "https://imagemagick.org/archive/releases/ImageMagick-6.9.13-16.tar.xz"
sha256 "a2ca04c37ef56e669f442954d878bab7d096fadabdc75f6027f755bfdbf89a98"
license "ImageMagick"
revision 1
head "https://github.com/imagemagick/imagemagick6.git", branch: "main"

livecheck do
Expand Down
2 changes: 1 addition & 1 deletion Formula/lib/libspectre.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class Libspectre < Formula
url "https://libspectre.freedesktop.org/releases/libspectre-0.2.12.tar.gz"
sha256 "55a7517cd3572bd2565df0cf450944a04d5273b279ebb369a895391957f0f960"
license "GPL-2.0-or-later"
revision 1
revision 2

livecheck do
url "https://libspectre.freedesktop.org/releases/"
Expand Down
1 change: 1 addition & 0 deletions Formula/x/xfig.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ class Xfig < Formula
url "https://downloads.sourceforge.net/mcj/xfig-3.2.9.tar.xz"
sha256 "13ed9d04d1bbc2dec09da7ef49ceec278382d290f6cd926474c2f2d016fec2f7"
license "MIT"
revision 1

livecheck do
url :stable
Expand Down
Loading