diff options
| author | Paul Mucur | 2012-05-16 11:29:54 +0100 |
|---|---|---|
| committer | Jack Nagel | 2012-08-29 16:08:56 -0500 |
| commit | ff5ca47ffe5d03b3078b5caed00a7e2a0c43cdd6 (patch) | |
| tree | a44b051e9121f9eee9d46ecce2c79299525e3834 /Library | |
| parent | 6f1c1b96f7c5f984a082e358098f9ceabc1e5e31 (diff) | |
| download | homebrew-ff5ca47ffe5d03b3078b5caed00a7e2a0c43cdd6.tar.bz2 | |
New formula: mlxcc
Closes #12272.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/mlxcc.rb | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Library/Formula/mlxcc.rb b/Library/Formula/mlxcc.rb new file mode 100644 index 000000000..5a32b469d --- /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 |
