blob: cd05c4a77e40bc15c1ecb2a27e22c7fb3b9665e0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
class SblimSfcc < Formula
homepage "https://sourceforge.net/projects/sblim/"
url "https://downloads.sourceforge.net/project/sblim/sblim-sfcc/sblim-sfcc-2.2.8.tar.bz2"
sha1 "794e9e15ed54f391f227427445789463560f0990"
bottle do
sha1 "3ee7ffa2d2daa39ae2488d9408ad8b8dafb2592f" => :yosemite
sha1 "8cfe583a363961d6fa360b5eba800d045fb4a263" => :mavericks
sha1 "57c0de85854ce44df4423729adb2dc433000d707" => :mountain_lion
end
depends_on :libtool
depends_on :autoconf
depends_on :automake
depends_on "openssl"
def install
system "./configure", "--prefix=#{prefix}", "--disable-dependency-tracking"
system "make", "install"
end
# based on the test at #https://github.com/Homebrew/homebrew/blob/master/Library/Formula/tinyxml.rb
test do
(testpath/"test.cpp").write <<-EOS.undent
#include <cimc/cimc.h>
int main()
{
return 0;
}
EOS
system ENV.cxx, "test.cpp", "-lcimcClient", "-o", "test"
system "./test"
end
end
|