aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2012-08-25 23:39:35 -0700
committerAdam Vandenberg2012-08-25 23:39:35 -0700
commit509b8405ba0ce2fbd575e7f0dcf8b090b7eda6a0 (patch)
tree17676dac25807b4d0d113ed4499c06cc03de426c /Library
parenta7e193b06b6fb4e67fddbc32d8cb4c8ecc41c9c3 (diff)
downloadhomebrew-509b8405ba0ce2fbd575e7f0dcf8b090b7eda6a0.tar.bz2
mu 0.9.8.5
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/mu.rb43
1 files changed, 11 insertions, 32 deletions
diff --git a/Library/Formula/mu.rb b/Library/Formula/mu.rb
index 7512cba92..4358846c9 100644
--- a/Library/Formula/mu.rb
+++ b/Library/Formula/mu.rb
@@ -22,41 +22,33 @@ end
class Mu < Formula
homepage 'http://www.djcbsoftware.nl/code/mu/'
- url 'http://mu0.googlecode.com/files/mu-0.9.8.4.tar.gz'
- sha1 'd586dddcc5b2f73e0bc1c835c199644a65c0f5b5'
+ url 'http://mu0.googlecode.com/files/mu-0.9.8.5.tar.gz'
+ sha1 'dfcf1c5ae014f464e083822e3ece420479b64b2a'
head 'https://github.com/djcb/mu.git'
+ option 'with-emacs', 'Build with emacs support'
+
depends_on 'gettext'
depends_on 'glib'
depends_on 'gmime'
depends_on 'xapian'
- depends_on Emacs23Installed.new if ARGV.include? '--with-emacs'
+ depends_on Emacs23Installed.new if build.include? 'with-emacs'
- if ARGV.build_head?
+ if build.head?
depends_on :automake
depends_on :libtool
end
- # Fixes configure error using Xapian-1.2.10, where it thinks 1.2.10 < 1.2
- # Patch submitted upstream: https://github.com/djcb/mu/issues/19
- # Fixed in head. Remove at 0.9.8.5
- def patches
- DATA unless ARGV.build_head?
- end
-
- def options
- [['--with-emacs', 'Build with emacs support']]
- end
-
def install
# Explicitly tell the build not to include emacs support as the version
# shipped by default with Mac OS X is too old.
- ENV['EMACS'] = 'no' unless ARGV.include? '--with-emacs'
+ ENV['EMACS'] = 'no' unless build.include? 'with-emacs'
- system 'autoreconf', '-ivf' if ARGV.build_head?
- system "./configure", "--prefix=#{prefix}",
- "--disable-dependency-tracking", "--with-gui=none"
+ system 'autoreconf', '-ivf' if build.head?
+ system "./configure", "--disable-dependency-tracking",
+ "--prefix=#{prefix}",
+ "--with-gui=none"
system "make"
system "make install"
end
@@ -68,16 +60,3 @@ class Mu < Formula
EOS
end
end
-
-__END__
---- a/configure 2012-05-08 04:26:10.000000000 -0700
-+++ b/configure 2012-05-11 23:20:57.000000000 -0700
-@@ -17640,7 +17640,7 @@
- xapian_version=$($XAPIAN_CONFIG --version | sed -e 's/.* //')
- fi
- case $xapian_version in #(
-- 1.[2-9].[0-9]) :
-+ 1.[2-9].[0-9]*) :
- ;; #(
- *) :
- as_fn_error $? "*** xapian version >= 1.2 needed, but version $xapian_version found." "$LINENO" 5 ;;