Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / 73 / fcdd7432077798a2b563b7a033181f4aa94a36
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
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 0\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
12         autolearn=disabled\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
18         [173.203.194.240])\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
29 MIME-Version: 1.0\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
36 Precedence: list\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
48 \r
49 tldr; I got notmuch running on OS X 10.7.1 (Lion) and have posted the\r
50 homebrew formulas below.\r
51 \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
54 \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
57 \r
58 \r
59 Short Dependency Version Summary:\r
60 talloc: 2.0.7\r
61 gmime:  2.4.24\r
62 xapian: 1.2.7 \r
63 notmuch: 0.9~rc1\r
64 \r
65 The Homebrew formulas for these are below\r
66 \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
69 \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
73 \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
79 \r
80 \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
83 shouldn't hurt).\r
84 \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
87 \r
88 \r
89 ## begin homebrew formula for 0.9~rc1 (current Head and subject to change)\r
90 require 'formula'\r
91 \r
92 class Notmuch < Formula\r
93   head 'git://notmuchmail.org/git/notmuch'\r
94   homepage 'http://notmuchmail.org'\r
95   md5 '983cd907a7bf5ee0d12ebfb54cff784f'\r
96 \r
97   depends_on 'xapian'\r
98   depends_on 'talloc'\r
99   depends_on 'gmime'\r
100 \r
101   def install\r
102     system "./configure", "--prefix=#{prefix}"\r
103 \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
106     # emacs package.\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
109 \r
110     system "make HAVE_EMACS=0"\r
111     system "make install HAVE_EMACS=0"\r
112   end\r
113 end\r
114 \r
115 \r
116 ## Begin homebrew formula for gmime 2.4.24\r
117 require 'formula'\r
118 \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
123 \r
124   depends_on 'pkg-config' => :build\r
125   depends_on 'glib'\r
126 \r
127   def install\r
128     system "./configure", "--prefix=#{prefix}",\r
129                           "--enable-largefile",\r
130                           "--disable-mono"\r
131     system "make install"\r
132   end\r
133 end\r
134 \r
135 ## Begin Homebrew formula for talloc\r
136 require 'formula'\r
137 \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
142 \r
143 \r
144   def install\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
149 \r
150     system "make install"\r
151   end\r
152 end\r
153 \r
154 \r
155 ## Begin homebrew formula for Xapian\r
156 require 'formula'\r
157 \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
162 end\r
163 \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
168 \r
169   def options\r
170     [\r
171       ["--ruby", "Ruby bindings"],\r
172       ["--python", "Python bindings"],\r
173       ["--php", "PHP bindings"],\r
174       ["--java", "Java bindings"],\r
175     ]\r
176   end\r
177 \r
178   def skip_clean? path\r
179     path.extname == '.la'\r
180   end\r
181 \r
182   def build_any_bindings?\r
183     ARGV.include? '--ruby' or ARGV.include? '--python' or ARGV.include? '--java' or ARGV.include? '--php'\r
184   end\r
185 \r
186   def arg_for_lang lang\r
187     (ARGV.include? "--#{lang}") ? "--with-#{lang}" : "--without-#{lang}"\r
188   end\r
189 \r
190   def install\r
191     ENV.O3 # takes forever otherwise\r
192 \r
193     system "./configure", "--prefix=#{prefix}", "--disable-assertions",\r
194                           "--disable-dependency-tracking"\r
195     system "make install"\r
196 \r
197     if build_any_bindings?\r
198       XapianBindings.new.brew do\r
199         args = [\r
200           "XAPIAN_CONFIG=#{bin}/xapian-config",\r
201           "--prefix=#{prefix}",\r
202           "--disable-debug",\r
203           "--disable-dependency-tracking",\r
204           "--without-csharp",\r
205           "--without-tcl"\r
206         ]\r
207 \r
208         args << arg_for_lang('ruby')\r
209         args << arg_for_lang('java')\r
210 \r
211         if ARGV.include? '--python'\r
212           python_lib = lib + "python"\r
213           ENV.append 'PYTHONPATH', python_lib\r
214           python_lib.mkpath\r
215           ENV['OVERRIDE_MACOSX_DEPLOYMENT_TARGET'] = '10.4'\r
216           ENV['PYTHON_LIB'] = "#{python_lib}"\r
217           args << "--with-python"\r
218         else\r
219           args << "--without-python"\r
220         end\r
221 \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
226         else\r
227           args << "--without-php"\r
228         end\r
229 \r
230         system "./configure", *args\r
231         system "make install"\r
232       end\r
233     end\r
234   end\r
235 \r
236   def caveats\r
237     s = ""\r
238     if ARGV.include? "--python"\r
239       s += <<-EOS.undent\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
242       EOS\r
243     end\r
244   end\r
245 end\r
246 \r
247 -- \r
248  __\r
249 (oO) \r
250 /||\...   Toni \r
251 \r