+iniparser-3.1

An ANSI C library that parses ini files.

Closes Homebrew/homebrew#13104.

Signed-off-by: Max Howell <mxcl@me.com>

Use make CC=cc form rather than editing Makefiles.
This commit is contained in:
Simon Sigurdhsson 2012-06-29 22:11:30 +02:00 committed by Max Howell
parent 72ee523cd7
commit 2949fde36c

16
Formula/iniparser.rb Normal file
View file

@ -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