homebrew-core/Formula/udis86.rb

22 lines
520 B
Ruby
Raw Normal View History

require 'formula'
class Udis86 < Formula
2012-08-10 04:49:40 +00:00
homepage 'http://udis86.sourceforge.net'
url 'https://downloads.sourceforge.net/udis86/udis86-1.7.2.tar.gz'
sha1 'f55dec2d5319aac9d0a7ae2614ddcc7aa73d3744'
2012-08-10 04:49:40 +00:00
option :universal
def install
2012-08-10 04:49:40 +00:00
ENV.universal_binary if build.universal?
system "./configure", "--prefix=#{prefix}",
"--enable-shared"
system "make"
system "make install"
end
test do
2014-05-04 19:12:41 +00:00
assert pipe_output("#{bin}/udcli -x", "cd 80").include?("int 0x80")
end
end