2011-02-05 23:16:09 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class X3270 < Formula
|
2011-02-05 23:16:09 +00:00
|
|
|
homepage 'http://x3270.bgp.nu/'
|
2013-01-13 01:58:44 +00:00
|
|
|
url 'http://sourceforge.net/projects/x3270/files/x3270/3.3.12ga11/suite3270-3.3.12ga11-src.tgz'
|
|
|
|
sha1 '72f98b2f990959ec412392dcad546ea1e9288dcf'
|
2011-02-05 23:16:09 +00:00
|
|
|
|
2012-08-13 14:36:11 +00:00
|
|
|
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)'
|
2011-02-05 23:16:09 +00:00
|
|
|
|
|
|
|
def make_directory(directory)
|
2012-02-21 06:04:21 +00:00
|
|
|
cd directory do
|
|
|
|
system "./configure", "--prefix=#{prefix}"
|
2011-02-05 23:16:09 +00:00
|
|
|
system "make"
|
|
|
|
system "make install"
|
|
|
|
system "make install.man"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
def install
|
|
|
|
make_directory 'x3270-3.3'
|
2012-08-13 14:36:11 +00:00
|
|
|
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"
|
2011-02-05 23:16:09 +00:00
|
|
|
end
|
|
|
|
end
|