aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/libcsv.rb
diff options
context:
space:
mode:
authornibbles 2bits2012-07-14 16:09:08 -0700
committerMisty De Meo2012-07-18 23:21:47 -0500
commit6095018ba48e5f86008a35ab971a12d1fac13863 (patch)
tree625361b4add7c37132a0832a91849bb3fbc83e60 /Library/Formula/libcsv.rb
parent6fda99801435861326a6e8fe7c596a86329a5493 (diff)
downloadhomebrew-6095018ba48e5f86008a35ab971a12d1fac13863.tar.bz2
libcsv 3.0.2 & use configure
Upgrade libcsv to version 3.0.2. Add code to use `configure` and make to build this. Remove code that sets env vars on the `make` command line because `configure` establishes the correct values. Tested on Lion with clang and llvm from XCode-4.3.3 by getting libcsv to pass make check (~.25sec). Closes #13404. Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
Diffstat (limited to 'Library/Formula/libcsv.rb')
-rw-r--r--Library/Formula/libcsv.rb16
1 files changed, 5 insertions, 11 deletions
diff --git a/Library/Formula/libcsv.rb b/Library/Formula/libcsv.rb
index 9f1d4badc..eb6e3dae9 100644
--- a/Library/Formula/libcsv.rb
+++ b/Library/Formula/libcsv.rb
@@ -2,18 +2,12 @@ require 'formula'
class Libcsv < Formula
homepage 'http://sourceforge.net/projects/libcsv/'
- url 'http://downloads.sourceforge.net/project/libcsv/libcsv/libcsv-3.0.1/libcsv-3.0.1.tar.gz'
- md5 '926b55d732b775a49ed2539c4db5c102'
+ url 'http://downloads.sourceforge.net/project/libcsv/libcsv/libcsv-3.0.2/libcsv-3.0.2.tar.gz'
+ sha1 '253f23ecedcfdc5b3e4884458d77d6806c07a48d'
def install
- include.mkpath
- lib.mkpath
- man.mkpath
-
- system "make", "CC=#{ENV.cc}",
- "INCDIR=#{include}",
- "LIBDIR=#{lib}",
- "MANDIR=#{man}",
- "install"
+ system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
+ system 'make'
+ system 'make install'
end
end