2012-06-29 20:11:30 +00:00
|
|
|
class Iniparser < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Library for parsing ini files"
|
2015-08-03 12:55:31 +00:00
|
|
|
homepage "http://ndevilla.free.fr/iniparser/"
|
|
|
|
head "https://github.com/ndevilla/iniparser.git"
|
|
|
|
url "http://ndevilla.free.fr/iniparser/iniparser-3.1.tar.gz"
|
|
|
|
sha256 "aedf23881b834519aea5e861b2400606d211da049cd59d3cfb4568e0d9eff5c5"
|
2012-06-29 20:11:30 +00:00
|
|
|
|
2015-08-03 12:55:31 +00:00
|
|
|
conflicts_with "fastbit", :because => "Both install `include/dictionary.h`"
|
2012-06-29 20:11:30 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
# Only make the *.a file; the *.so target is useless (and fails).
|
|
|
|
system "make", "libiniparser.a", "CC=#{ENV.cc}", "RANLIB=ranlib"
|
2015-08-03 12:55:31 +00:00
|
|
|
lib.install "libiniparser.a"
|
|
|
|
include.install Dir["src/*.h"]
|
2012-06-29 20:11:30 +00:00
|
|
|
end
|
|
|
|
end
|