From ff5ca47ffe5d03b3078b5caed00a7e2a0c43cdd6 Mon Sep 17 00:00:00 2001
From: Paul Mucur
Date: Wed, 16 May 2012 11:29:54 +0100
Subject: [PATCH] New formula: mlxcc
Closes #12272.
Signed-off-by: Jack Nagel
---
Library/Formula/mlxcc.rb | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
create mode 100644 Library/Formula/mlxcc.rb
diff --git a/Library/Formula/mlxcc.rb b/Library/Formula/mlxcc.rb
new file mode 100644
index 0000000000..5a32b469d9
--- /dev/null
+++ b/Library/Formula/mlxcc.rb
@@ -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