aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/dc3dd.rb
blob: db028cf539a7383e362b130ed941504b1abc080c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
require 'formula'

class Dc3dd < Formula
  homepage 'http://sourceforge.net/projects/dc3dd/'
  url 'http://downloads.sourceforge.net/project/dc3dd/dc3dd/7.1.0/dc3dd-7.1.614.tar.gz'
  md5 'b6c4ec16e7f539b17224d7f334f8396e'

  # remove explicit dependency on automake 1.10.1
  def patches
    'https://raw.github.com/gist/1159050/611c91779ba90edc77b8489e006c96a8e0078462/dc3dd-automake.patch'
  end

  def install
    system "./configure", "--disable-debug", "--disable-dependency-tracking",
                          "--prefix=#{prefix}",
                          "--infodir=#{info}"
    system "make"
    system "make install"
    rm (lib+'charset.alias')
    prefix.install %w[README Options_Reference.txt Sample_Commands.txt]
  end
end