+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:
parent
72ee523cd7
commit
2949fde36c
1 changed files with 16 additions and 0 deletions
16
Formula/iniparser.rb
Normal file
16
Formula/iniparser.rb
Normal 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
|
Loading…
Reference in a new issue