2011-07-25 04:55:13 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Udis86 < Formula
|
2012-08-10 04:49:40 +00:00
|
|
|
homepage 'http://udis86.sourceforge.net'
|
2013-09-15 23:14:09 +00:00
|
|
|
url 'http://downloads.sourceforge.net/udis86/udis86-1.7.2.tar.gz'
|
|
|
|
sha1 'f55dec2d5319aac9d0a7ae2614ddcc7aa73d3744'
|
2011-07-25 04:55:13 +00:00
|
|
|
|
2012-08-10 04:49:40 +00:00
|
|
|
option :universal
|
2012-06-19 16:00:10 +00:00
|
|
|
|
2011-07-25 04:55:13 +00:00
|
|
|
def install
|
2012-08-10 04:49:40 +00:00
|
|
|
ENV.universal_binary if build.universal?
|
|
|
|
system "./configure", "--prefix=#{prefix}",
|
|
|
|
"--enable-shared"
|
2011-07-25 04:55:13 +00:00
|
|
|
system "make"
|
|
|
|
system "make install"
|
|
|
|
end
|
2014-02-10 17:35:42 +00:00
|
|
|
|
|
|
|
test do
|
|
|
|
IO.popen("#{bin}/udcli -x", "w+") do |pipe|
|
|
|
|
pipe.write "cd 80"
|
|
|
|
pipe.close_write
|
|
|
|
assert pipe.read.include?("int 0x80")
|
|
|
|
end
|
|
|
|
end
|
2011-07-25 04:55:13 +00:00
|
|
|
end
|