aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorAdam Vandenberg2012-08-22 08:46:34 -0700
committerAdam Vandenberg2012-08-22 08:46:34 -0700
commite5e22b53512e134a6eaffd429b9faa05a36c0b8d (patch)
tree38684337c83a7274ece48f553b440e02eda347b0 /Library/Formula
parent2a7ab9298cdd38d91431f9a029287e0d655c5503 (diff)
downloadhomebrew-e5e22b53512e134a6eaffd429b9faa05a36c0b8d.tar.bz2
mpack: fix compilation with clang
Fixes #14375
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/mpack.rb14
1 files changed, 11 insertions, 3 deletions
diff --git a/Library/Formula/mpack.rb b/Library/Formula/mpack.rb
index fd399caf0..9a411dbe3 100644
--- a/Library/Formula/mpack.rb
+++ b/Library/Formula/mpack.rb
@@ -1,12 +1,20 @@
require 'formula'
class Mpack < Formula
- url 'http://ftp.andrew.cmu.edu/pub/mpack/mpack-1.6.tar.gz'
homepage 'http://ftp.andrew.cmu.edu/pub/mpack/'
- md5 'a70fa5afa76539a9afb70b9d81568fe8'
+ url 'http://ftp.andrew.cmu.edu/pub/mpack/mpack-1.6.tar.gz'
+ sha1 '7fd3a73e0f131412920b6ff34872e7e7fa03e03b'
+
+ # Fix missing return value; clang refuses to compile otherwise
+ def patches
+ {:p0 => [
+ "https://trac.macports.org/export/96943/trunk/dports/mail/mpack/files/uudecode.c.patch"
+ ]}
+ end
def install
- system "./configure", "--prefix=#{prefix}", "--mandir=#{man}"
+ system "./configure", "--prefix=#{prefix}",
+ "--mandir=#{man}"
system "make install"
end
end