diff options
| author | Simon Sigurdhsson | 2012-06-29 22:11:30 +0200 |
|---|---|---|
| committer | Max Howell | 2012-09-03 09:47:03 -0400 |
| commit | 795c88b3f012376aa5020af9a3ef66335eb4566c (patch) | |
| tree | de9806d0dc44e43e25af7d13696c784cf49aa046 /Library | |
| parent | a9a669a1e7d1d9bac5f536b0835dfe9c8db92896 (diff) | |
| download | homebrew-795c88b3f012376aa5020af9a3ef66335eb4566c.tar.bz2 | |
+iniparser-3.1
An ANSI C library that parses ini files.
Closes #13104.
Signed-off-by: Max Howell <mxcl@me.com>
Use make CC=cc form rather than editing Makefiles.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/iniparser.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Library/Formula/iniparser.rb b/Library/Formula/iniparser.rb new file mode 100644 index 000000000..80a71ace3 --- /dev/null +++ b/Library/Formula/iniparser.rb @@ -0,0 +1,16 @@ +require 'formula' + +class Iniparser < Formula + homepage 'http://ndevilla.free.fr/iniparser/' + url 'http://ndevilla.free.fr/iniparser/iniparser-3.1.tar.gz' + sha1 '41eae7b414cad9cd42ae2c2a64394c10d7ab655e' + + head 'https://github.com/ndevilla/iniparser.git' + + def install + # Only make the *.a file; the *.so target is useless (and fails). + system "make", "libiniparser.a", "CC=#{ENV.cc}", "RANLIB=ranlib" + lib.install 'libiniparser.a' + include.install Dir['src/*.h'] + end +end |
