2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-06-08 15:00:25 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Dos2unix < Formula
|
2011-09-08 22:56:09 +00:00
|
|
|
homepage 'http://waterlan.home.xs4all.nl/dos2unix.html'
|
2012-08-06 01:55:52 +00:00
|
|
|
url 'http://waterlan.home.xs4all.nl/dos2unix/dos2unix-6.0.1.tar.gz'
|
|
|
|
sha1 '4f07a16ab3c875cd668e8d9ac3845c6dedce2980'
|
2009-06-08 15:00:25 +00:00
|
|
|
|
2012-08-13 14:36:30 +00:00
|
|
|
depends_on 'gettext'
|
2011-06-29 15:47:52 +00:00
|
|
|
|
2009-06-08 15:00:25 +00:00
|
|
|
def install
|
2012-08-13 14:36:30 +00:00
|
|
|
gettext = Formula.factory("gettext")
|
|
|
|
system "make", "prefix=#{prefix}",
|
|
|
|
"CC=#{ENV.cc}",
|
|
|
|
"CPP=#{ENV.cc}",
|
|
|
|
"CFLAGS=#{ENV.cflags}",
|
|
|
|
"CFLAGS_OS=-I#{gettext.include}",
|
|
|
|
"LDFLAGS_EXTRA=-L#{gettext.lib} -lintl",
|
|
|
|
"install"
|
2009-06-08 15:00:25 +00:00
|
|
|
end
|
|
|
|
end
|