2011-02-05 23:16:09 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class X3270 < Formula
|
2011-11-04 01:42:41 +00:00
|
|
|
url 'http://sourceforge.net/projects/x3270/files/x3270/3.3.12ga7/suite3270-3.3.12ga7-src.tgz'
|
2011-02-05 23:16:09 +00:00
|
|
|
homepage 'http://x3270.bgp.nu/'
|
2011-11-04 01:42:41 +00:00
|
|
|
md5 '5a501ed84d522c02d3c7ed3e36a00d0a'
|
|
|
|
version '3.3.12ga7'
|
2011-02-05 23:16:09 +00:00
|
|
|
|
|
|
|
def options
|
|
|
|
[
|
|
|
|
["--with-c3270", "Include c3270 (curses-based version)"],
|
|
|
|
["--with-s3270", "Include s3270 (displayless version)"],
|
|
|
|
["--with-tcl3270", "Include tcl3270 (integrated with Tcl)"],
|
|
|
|
["--with-pr3287", "Include pr3287 (printer emulation)"]
|
|
|
|
]
|
|
|
|
end
|
|
|
|
|
|
|
|
def make_directory(directory)
|
|
|
|
Dir.chdir 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 ARGV.include? "--with-c3270"
|
|
|
|
make_directory 'pr3287-3.3' if ARGV.include? "--with-pr3287"
|
|
|
|
make_directory 's3270-3.3' if ARGV.include? "--with-s3270"
|
|
|
|
make_directory 'tcl3270-3.3' if ARGV.include? "--with-tcl3270"
|
|
|
|
end
|
|
|
|
end
|