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

class Mpack < Formula
  homepage 'http://ftp.andrew.cmu.edu/pub/mpack/'
  url 'http://ftp.andrew.cmu.edu/pub/mpack/mpack-1.6.tar.gz'
  sha1 '7fd3a73e0f131412920b6ff34872e7e7fa03e03b'

  # Fix missing return value; clang refuses to compile otherwise
  patch :p0 do
    url "https://trac.macports.org/export/96943/trunk/dports/mail/mpack/files/uudecode.c.patch"
    sha1 "ec6eaa234780184be216babb36ed132582789fc9"
  end

  def install
    system "./configure", "--prefix=#{prefix}",
                          "--mandir=#{man}"
    system "make install"
  end
end