Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Added '--with-x11' option. #16924

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 4 additions & 1 deletion Library/Formula/ghostscript.rb
Expand Up @@ -13,6 +13,8 @@ class Ghostscript < Formula

head 'git://git.ghostscript.com/ghostpdl.git'

option 'with-x11', 'Install with X11 support'

if build.head?
depends_on :automake
depends_on :libtool
Expand All @@ -24,6 +26,7 @@ class Ghostscript < Formula
depends_on 'jbig2dec'
depends_on 'little-cms2'
depends_on :libpng
depends_on :x11 => '2.7.2' if build.include? 'with-x11'

# Fix dylib names, per installation instructions
def patches
Expand Down Expand Up @@ -54,8 +57,8 @@ def install
--disable-compile-inits
--disable-gtk
--with-system-libtiff
--without-x
]
args << '--without-x' unless build.include? 'with-x11'

if build.head?
system './autogen.sh', *args
Expand Down