blob: 5a32b469d9a40150f5e7cb9609edc0fcb519fb08 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
require 'formula'
class Mlxcc < Formula
homepage 'http://community.marklogic.com/code/libmlxcc'
url 'http://community.marklogic.com/download/code/libmlxcc/releases/src/mlxcc-0.5.3.tar.gz'
sha1 'b786fce623e69e5f17c73a0917b2b0bac9bd992b'
def install
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make install"
end
def test
mktemp do
(Pathname.pwd / "test.c").write("int main(void) { return 0; }")
system ENV.cc, "-lmlxcc", "test.c"
end
end
end
|