aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorSimon Sigurdhsson2012-06-29 22:11:30 +0200
committerMax Howell2012-09-03 09:47:03 -0400
commit795c88b3f012376aa5020af9a3ef66335eb4566c (patch)
treede9806d0dc44e43e25af7d13696c784cf49aa046 /Library/Formula
parenta9a669a1e7d1d9bac5f536b0835dfe9c8db92896 (diff)
downloadhomebrew-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/Formula')
-rw-r--r--Library/Formula/iniparser.rb16
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