aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/dos2unix.rb
blob: f2f183d2ac58bd757cadcaf0b6971e22bb5f715a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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