homebrew-core/Formula/dos2unix.rb

17 lines
473 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
url 'http://sourceforge.net/projects/dos2unix/files/dos2unix/3.2/dos2unix-3.2.tar.gz'
md5 'db3902feba8a4bae26e9a1bd27c7ce53'
homepage 'http://dos2unix.sourceforge.net/'
2009-06-08 15:00:25 +00:00
def install
2009-09-21 22:50:57 +00:00
# we don't use the Makefile as it doesn't optimize
2010-08-10 15:05:31 +00:00
system "#{ENV.cc} #{ENV.cflags} dos2unix.c -o dos2unix"
bin.install %w[dos2unix]
ln_sf bin+'dos2unix', bin+'mac2unix'
man1.install %w[mac2unix.1 dos2unix.1]
2009-06-08 15:00:25 +00:00
end
end