Skip to content

Commit

Permalink
x3270: import from homebrew/x11.
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeMcQuaid committed Jan 27, 2017
1 parent e968739 commit 5e9deac
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions Formula/x3270.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
class X3270 < Formula
desc "IBM 3270 terminal emulator for the X Window System and Windows"
homepage "http://x3270.bgp.nu/"
url "https://downloads.sourceforge.net/project/x3270/x3270/3.5ga9/suite3270-3.5ga9-src.tgz"
sha256 "654756cc1204fd69a861d416d350a0ab3c9cea317173a80b06aca0402a517d3e"

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)"

depends_on :x11
depends_on "openssl"

def install
args = ["--prefix=#{prefix}"]
args << "--enable-x3270"
args << "--enable-c3270" if build.with? "c3270"
args << "--enable-s3270" if build.with? "s3270"
args << "--enable-tcl3270" if build.with? "tcl3270"
args << "--enable-pr3287" if build.with? "pr3287"

system "./configure", *args
system "make", "install"
system "make", "install.man"
end

test do
system bin/"x3270", "--version"
end
end

0 comments on commit 5e9deac

Please sign in to comment.