homebrew-core/Formula/dos2unix.rb
Jack Nagel 0550f5fede dos2unix: always use gettext
gettext is now bottled on three of the platforms we support, so remove
the hackery and just depend on it.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-13 09:36:30 -05: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.1.tar.gz'
sha1 '4f07a16ab3c875cd668e8d9ac3845c6dedce2980'
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