mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-11-26 19:09:48 -05:00
New formula: mlxcc
Closes #12272. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
1 parent
6f1c1b96f7
commit
ff5ca47ffe
1 file changed
+22
@@ -0,0 +1,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
|
||||
Reference in new issue
Block a user