homebrew-core/Formula/iniparser.rb
Simon Sigurdhsson 2949fde36c +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.
2012-09-03 09:47:03 -04:00

16 lines
490 B
Ruby

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