x3270: make x11 dependency optional.
X11 is massive and is not always required for such a simple tool. Closes #12508. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
parent
a92c012be1
commit
a771b95c66
1 changed files with 8 additions and 7 deletions
|
@ -10,17 +10,18 @@ class X3270 < Formula
|
|||
sha256 "897d18de2b85172e751719687710f20b1717293b10dac669d6eb052e08d4b02a" => :yosemite
|
||||
end
|
||||
|
||||
option "with-c3270", "Include c3270 (curses-based version)"
|
||||
option "with-s3270", "Include s3270 (displayless version)"
|
||||
option "with-tcl3270", "Include tcl3270 (integrated with Tcl)"
|
||||
option "with-pr3287", "Include pr3287 (printer emulation)"
|
||||
option "with-x11", "Include x3270 (X11-based version)"
|
||||
option "without-c3270", "Exclude c3270 (curses-based version)"
|
||||
option "without-s3270", "Exclude s3270 (displayless version)"
|
||||
option "without-tcl3270", "Exclude tcl3270 (integrated with Tcl)"
|
||||
option "without-pr3287", "Exclude pr3287 (printer emulation)"
|
||||
|
||||
depends_on :x11
|
||||
depends_on :x11 => :optional
|
||||
depends_on "openssl"
|
||||
|
||||
def install
|
||||
args = ["--prefix=#{prefix}"]
|
||||
args << "--enable-x3270"
|
||||
args << "--enable-x3270" if build.with? "x11"
|
||||
args << "--enable-c3270" if build.with? "c3270"
|
||||
args << "--enable-s3270" if build.with? "s3270"
|
||||
args << "--enable-tcl3270" if build.with? "tcl3270"
|
||||
|
@ -32,6 +33,6 @@ class X3270 < Formula
|
|||
end
|
||||
|
||||
test do
|
||||
system bin/"x3270", "--version"
|
||||
system bin/"c3270", "--version"
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue