homebrew-core/Formula/snap7.rb

27 lines
810 B
Ruby
Raw Normal View History

2014-03-19 11:24:16 +00:00
require "formula"
class Snap7 < Formula
homepage "http://snap7.sourceforge.net/"
url "https://downloads.sourceforge.net/project/snap7/1.2.1/snap7-full-1.2.1.tar.gz"
sha1 "1e661fea17c26586599c11a1a840f4ac013060b6"
2014-05-02 20:15:00 +00:00
bottle do
cellar :any
sha1 "89adc1a116219fccee8f6cc8c9bdb1632afa7069" => :mavericks
sha1 "6293333e1262e08b0d9ba4eeda2b8cf16d1396d3" => :mountain_lion
sha1 "66e715df7e668c98c000b778e4f820eb69637f1f" => :lion
end
2014-03-19 11:24:16 +00:00
def install
lib.mkpath
2014-05-04 18:45:47 +00:00
system "make", "-C", "build/osx",
"-f", "#{MacOS.preferred_arch}_osx.mk",
"install", "LibInstall=#{lib}"
2014-03-19 11:24:16 +00:00
include.install "release/Wrappers/c-cpp/snap7.h"
end
test do
system "python", "-c", "import ctypes.util,sys;ctypes.util.find_library('snap7') or sys.exit(1)"
end
end