2011-06-09 05:26:05 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Libcsv < Formula
|
|
|
|
homepage 'http://sourceforge.net/projects/libcsv/'
|
2012-02-10 05:09:00 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/libcsv/libcsv/libcsv-3.0.1/libcsv-3.0.1.tar.gz'
|
2011-06-09 05:26:05 +00:00
|
|
|
md5 '926b55d732b775a49ed2539c4db5c102'
|
|
|
|
|
|
|
|
def install
|
|
|
|
include.mkpath
|
2012-02-10 05:09:00 +00:00
|
|
|
lib.mkpath
|
|
|
|
man.mkpath
|
|
|
|
|
|
|
|
system "make", "CC=#{ENV.cc}",
|
|
|
|
"INCDIR=#{include}",
|
|
|
|
"LIBDIR=#{lib}",
|
|
|
|
"MANDIR=#{man}",
|
|
|
|
"install"
|
2011-06-09 05:26:05 +00:00
|
|
|
end
|
|
|
|
end
|