homebrew-core/Formula/x3270.rb
Josa Gesell 8f0f0e5494 x3270 3.3.14ga6
Closes Homebrew/homebrew#26190.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-01-26 18:00:56 -06:00

31 lines
999 B
Ruby

require 'formula'
class X3270 < Formula
homepage 'http://x3270.bgp.nu/'
url 'http://downloads.sourceforge.net/project/x3270/x3270/3.3.14ga6/suite3270-3.3.14ga6-src.tgz'
sha1 '4788ea7396d4aff04685382e82c440689e8014aa'
depends_on :x11
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)'
def make_directory(directory)
cd directory do
system "./configure", "--prefix=#{prefix}"
system "make"
system "make install"
system "make install.man"
end
end
def install
make_directory 'x3270-3.3'
make_directory 'c3270-3.3' if build.include? "with-c3270"
make_directory 'pr3287-3.3' if build.include? "with-pr3287"
make_directory 's3270-3.3' if build.include? "with-s3270"
make_directory 'tcl3270-3.3' if build.include? "with-tcl3270"
end
end