aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/iniparser.rb
blob: 535522e34584f2f6a475e436dd340f0ab4579a5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
require 'formula'

class Iniparser < Formula
  homepage 'http://ndevilla.free.fr/iniparser/'
  head 'https://github.com/ndevilla/iniparser.git'
  url 'http://ndevilla.free.fr/iniparser/iniparser-3.1.tar.gz'
  sha1 '41eae7b414cad9cd42ae2c2a64394c10d7ab655e'

  conflicts_with 'fastbit', :because => 'Both install `include/dictionary.h`'

  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