homebrew-core/Formula/dos2unix.rb

21 lines
607 B
Ruby
Raw Normal View History

require 'formula'
2009-06-08 15:00:25 +00:00
2011-03-10 05:11:03 +00:00
class Dos2unix < Formula
homepage 'http://waterlan.home.xs4all.nl/dos2unix.html'
url 'http://waterlan.home.xs4all.nl/dos2unix/dos2unix-6.0.3.tar.gz'
sha1 '2c9ae9177fcb0d8b63d141f73a75c928c38ace01'
2009-06-08 15:00:25 +00:00
depends_on 'gettext'
2009-06-08 15:00:25 +00:00
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"
2009-06-08 15:00:25 +00:00
end
end