homebrew-core/Formula/dos2unix.rb
Brett Koonce a47df58d0c dos2unix 6.0.2
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-10-19 19:03:18 -07:00

20 lines
607 B
Ruby

require 'formula'
class Dos2unix < Formula
homepage 'http://waterlan.home.xs4all.nl/dos2unix.html'
url 'http://waterlan.home.xs4all.nl/dos2unix/dos2unix-6.0.2.tar.gz'
sha1 '270a07b281ce293414641221623a5c4fc9540252'
depends_on 'gettext'
def install
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"
end
end