aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/unix2dos.rb
blob: 40d473fc631085bfa2116753d26904e51e27f299 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
require 'formula'

class Unix2dos < Formula
  url 'http://www.sfr-fresh.com/linux/misc/old/unix2dos-2.2.src.tar.gz'
  md5 'caf9f33155073d3efd310eff9103170b'
  homepage 'http://www.sfr-fresh.com/linux/misc/'

  def install
    # we don't use the Makefile as it doesn't optimize
    system "#{ENV.cc} #{ENV['CFLAGS']} unix2dos.c -o unix2dos"

    bin.install %w[unix2dos]
    man1.install %w[unix2dos.1]
  end
end