aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/libcsv.rb
blob: 40d11ab834524e2ead11975e7cdac257643b3361 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
require 'formula'

class Libcsv < Formula
  url 'http://downloads.sourceforge.net/project/libcsv/libcsv/libcsv-3.0.1/libcsv-3.0.1.tar.gz'
  homepage 'http://sourceforge.net/projects/libcsv/'
  md5 '926b55d732b775a49ed2539c4db5c102'

  def install
    inreplace 'Makefile' do |s|
      s.change_make_var! "INCDIR", include
      s.change_make_var! "MANDIR", man
      s.change_make_var! "LIBDIR", lib
    end
    man.mkpath
    lib.mkpath
    include.mkpath
    system "make"
    system "make install"
  end
end