1 Return-Path: <egg@only-an-egg.org>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id 6869E429E25
\r
6 for <notmuch@notmuchmail.org>; Sun, 2 Oct 2011 14:30:33 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]
\r
13 Received: from olra.theworths.org ([127.0.0.1])
\r
14 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id KWyO60eTRO7Z for <notmuch@notmuchmail.org>;
\r
16 Sun, 2 Oct 2011 14:30:32 -0700 (PDT)
\r
17 Received: from mail.forlackofawittyname.com (forlackofawittyname.com
\r
19 by olra.theworths.org (Postfix) with ESMTP id 08512431FB6
\r
20 for <notmuch@notmuchmail.org>; Sun, 2 Oct 2011 14:30:32 -0700 (PDT)
\r
21 Received: from localhost (cpe-071-070-245-238.nc.res.rr.com [71.70.245.238])
\r
22 by mail.forlackofawittyname.com (Postfix) with ESMTPSA id E322312801C
\r
23 for <notmuch@notmuchmail.org>; Sun, 2 Oct 2011 14:30:20 -0700 (PDT)
\r
24 Date: Sun, 2 Oct 2011 17:29:55 -0400
\r
25 From: Toni Janz <toni@forlackofawittyname.com>
\r
26 To: notmuch@notmuchmail.org
\r
27 Subject: notmuch 0.9~rc1 install on OS X Lion using homebrew
\r
28 Message-ID: <20111002212955.GB70670@argentum>
\r
30 Content-Type: text/plain; charset=us-ascii
\r
31 Content-Disposition: inline
\r
32 Organization: Cthulhu Caos Club FNORD!!
\r
33 User-Agent: Mutt/1.5.21 (2010-09-15)
\r
34 X-BeenThere: notmuch@notmuchmail.org
\r
35 X-Mailman-Version: 2.1.13
\r
37 Reply-To: Toni Janz <toni@forlackofawittyname.com>
\r
38 List-Id: "Use and development of the notmuch mail system."
\r
39 <notmuch.notmuchmail.org>
\r
40 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
41 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
42 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
43 List-Post: <mailto:notmuch@notmuchmail.org>
\r
44 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
45 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
46 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
47 X-List-Received-Date: Sun, 02 Oct 2011 21:30:33 -0000
\r
49 tldr; I got notmuch running on OS X 10.7.1 (Lion) and have posted the
\r
50 homebrew formulas below.
\r
52 If you are on OS X and don't know what Homebrew is then http://mxcl.github.com/homebrew/
\r
53 may be worth your time.
\r
55 I thought I'd post on this list in the hopes that some other people find
\r
56 it useful and ends up saving them time.
\r
59 Short Dependency Version Summary:
\r
65 The Homebrew formulas for these are below
\r
67 Talloc caused my problems because OS X can't deal with relative pathing
\r
68 so I changed the formula to include an "--disable-rpath" to configure.
\r
70 Gmime caused me problems with homebrew because the current formula in
\r
71 homebrew git compiles it with "--disable-dependancy-checking" which
\r
72 leads to the error below.
\r
74 dyld: Symbol not found: _url_addrspec_end
\r
75 Referenced from: /usr/local/Cellar/gmime/2.4.24/lib/libgmime-2.4.2.dylib
\r
76 Expected in: flat namespace
\r
77 in /usr/local/Cellar/gmime/2.4.24/lib/libgmime-2.4.2.dylib
\r
78 [1] 66350 trace trap ./notmuch-shared
\r
81 The formulas begin below. (I may go ahead and submit them to the
\r
82 homebrew repo as well, but I figure having this in the mailing archive
\r
85 Now, I'm posting it here because "It Works For Me", and "It *might* work
\r
86 for you"--but, again, YMMV.
\r
89 ## begin homebrew formula for 0.9~rc1 (current Head and subject to change)
\r
92 class Notmuch < Formula
\r
93 head 'git://notmuchmail.org/git/notmuch'
\r
94 homepage 'http://notmuchmail.org'
\r
95 md5 '983cd907a7bf5ee0d12ebfb54cff784f'
\r
102 system "./configure", "--prefix=#{prefix}"
\r
104 # notmuch requires a newer emacs than macosx provides. So we either
\r
105 # disable the emacs bindings or make notmuch depend on the homebrew
\r
107 # And there is a race condition in the makefile, so we have to either
\r
108 # deparallelize the process or run make and make install separately.
\r
110 system "make HAVE_EMACS=0"
\r
111 system "make install HAVE_EMACS=0"
\r
116 ## Begin homebrew formula for gmime 2.4.24
\r
119 class Gmime < Formula
\r
120 homepage 'http://spruce.sourceforge.net/gmime/'
\r
121 url 'ftp://ftp.gnome.org/pub/GNOME/sources/gmime/2.4/gmime-2.4.24.tar.bz2'
\r
122 sha256 'e1255dc565416b65e6f8e7b207074b86d955897169eb19a975e90b34ae660c14'
\r
124 depends_on 'pkg-config' => :build
\r
128 system "./configure", "--prefix=#{prefix}",
\r
129 "--enable-largefile",
\r
131 system "make install"
\r
135 ## Begin Homebrew formula for talloc
\r
138 class Talloc < Formula
\r
139 url 'http://www.samba.org/ftp/talloc/talloc-2.0.7.tar.gz'
\r
140 homepage 'http://talloc.samba.org/'
\r
141 md5 'dbfb3146f4cc47054e13b8a2988299f9'
\r
145 system "./configure", "--prefix=#{prefix}", "--disable-rpath"
\r
146 # See https://bugzilla.samba.org/show_bug.cgi?id=7000
\r
147 # It seems that the patch included there is not enough
\r
148 inreplace 'Makefile', 'SONAMEFLAG = #', 'SONAMEFLAG = -install_name'
\r
150 system "make install"
\r
155 ## Begin homebrew formula for Xapian
\r
158 class XapianBindings < Formula
\r
159 url 'http://oligarchy.co.uk/xapian/1.2.7/xapian-bindings-1.2.7.tar.gz'
\r
160 homepage 'http://xapian.org'
\r
161 md5 '44b83efe4b025c3b5ea3eff4e0f17a9a'
\r
164 class Xapian < Formula
\r
165 url 'http://oligarchy.co.uk/xapian/1.2.7/xapian-core-1.2.7.tar.gz'
\r
166 homepage 'http://xapian.org'
\r
167 md5 '6684eb7a990b9cedf4257f41bfddb584'
\r
171 ["--ruby", "Ruby bindings"],
\r
172 ["--python", "Python bindings"],
\r
173 ["--php", "PHP bindings"],
\r
174 ["--java", "Java bindings"],
\r
178 def skip_clean? path
\r
179 path.extname == '.la'
\r
182 def build_any_bindings?
\r
183 ARGV.include? '--ruby' or ARGV.include? '--python' or ARGV.include? '--java' or ARGV.include? '--php'
\r
186 def arg_for_lang lang
\r
187 (ARGV.include? "--#{lang}") ? "--with-#{lang}" : "--without-#{lang}"
\r
191 ENV.O3 # takes forever otherwise
\r
193 system "./configure", "--prefix=#{prefix}", "--disable-assertions",
\r
194 "--disable-dependency-tracking"
\r
195 system "make install"
\r
197 if build_any_bindings?
\r
198 XapianBindings.new.brew do
\r
200 "XAPIAN_CONFIG=#{bin}/xapian-config",
\r
201 "--prefix=#{prefix}",
\r
203 "--disable-dependency-tracking",
\r
204 "--without-csharp",
\r
208 args << arg_for_lang('ruby')
\r
209 args << arg_for_lang('java')
\r
211 if ARGV.include? '--python'
\r
212 python_lib = lib + "python"
\r
213 ENV.append 'PYTHONPATH', python_lib
\r
215 ENV['OVERRIDE_MACOSX_DEPLOYMENT_TARGET'] = '10.4'
\r
216 ENV['PYTHON_LIB'] = "#{python_lib}"
\r
217 args << "--with-python"
\r
219 args << "--without-python"
\r
222 if ARGV.include? '--php'
\r
223 extension_dir = lib+'php/extensions'
\r
224 extension_dir.mkpath
\r
225 args << "--with-php PHP_EXTENSION_DIR=#{extension_dir}"
\r
227 args << "--without-php"
\r
230 system "./configure", *args
\r
231 system "make install"
\r
238 if ARGV.include? "--python"
\r
240 The Python bindings won't function until you amend your PYTHONPATH like so:
\r
241 export PYTHONPATH=#{HOMEBREW_PREFIX}/lib/python:$PYTHONPATH
\r