1 Return-Path: <wael.nasreddine@gmail.com>
\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 30CF8431FC4
\r
6 for <notmuch@notmuchmail.org>; Fri, 23 May 2014 08:05:12 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5
\r
12 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
\r
13 FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled
\r
14 Received: from olra.theworths.org ([127.0.0.1])
\r
15 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
16 with ESMTP id fcAw2EB7hej6 for <notmuch@notmuchmail.org>;
\r
17 Fri, 23 May 2014 08:05:04 -0700 (PDT)
\r
18 Received: from mail-pb0-f52.google.com (mail-pb0-f52.google.com
\r
19 [209.85.160.52]) (using TLSv1 with cipher RC4-SHA (128/128 bits))
\r
20 (No client certificate requested)
\r
21 by olra.theworths.org (Postfix) with ESMTPS id CD54E431FBF
\r
22 for <notmuch@notmuchmail.org>; Fri, 23 May 2014 08:05:04 -0700 (PDT)
\r
23 Received: by mail-pb0-f52.google.com with SMTP id rr13so4298242pbb.11
\r
24 for <notmuch@notmuchmail.org>; Fri, 23 May 2014 08:05:04 -0700 (PDT)
\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
\r
26 h=from:to:cc:subject:in-reply-to:references:user-agent:date
\r
27 :message-id:mime-version:content-type;
\r
28 bh=0loDcWV4TJExt85MSt/AzL11HcWD3NmgbGcUetjV5Kw=;
\r
29 b=qW9DysoR35D/obOVHiGXLh1fPFTBT7/iqeWYKoajlJm7u9KgYPqxX63d24XszR8vFQ
\r
30 JoYaQaYwOEa/UG1w1VRmmd+i2ijeCZ/cAx9lbq8VgkNbmA2wu0o7vDbJepO+epkhrYZY
\r
31 Yc8hqEx9U9/A2pXTcanm8H46rEFJgpbfdEHtHy5y02NkL/34Nd8S4XYN6RTq3vRkpzD9
\r
32 bkgmwc8/Ky2VKgS1YNlUGMW3RQuiVPpyqHYorn9DGBjIpGwoo2C9m2zNczetc6mJeYB5
\r
33 DpvuGvvgthJpjcW036HlO2P6r/sEUEXcBGaJ551XKk5eNnTuFKEdQ8xtkqn2fnCR5qn9
\r
35 X-Received: by 10.66.124.163 with SMTP id mj3mr6830414pab.38.1400857504046;
\r
36 Fri, 23 May 2014 08:05:04 -0700 (PDT)
\r
37 Received: from localhost ([2620:0:1000:2e00:ec3f:a511:27dc:adef])
\r
38 by mx.google.com with ESMTPSA id no9sm5058063pbc.83.2014.05.23.08.05.01
\r
39 for <multiple recipients>
\r
40 (version=TLSv1.2 cipher=RC4-SHA bits=128/128);
\r
41 Fri, 23 May 2014 08:05:02 -0700 (PDT)
\r
42 From: Wael Nasreddine <wael.nasreddine@gmail.com>
\r
43 To: Felipe Contreras <felipe.contreras@gmail.com>, notmuch@notmuchmail.org
\r
44 Subject: Re: [PATCH 2/3] build: add support to build Ruby bindings
\r
45 In-Reply-To: <1400841267-12807-3-git-send-email-felipe.contreras@gmail.com>
\r
46 References: <1400841267-12807-1-git-send-email-felipe.contreras@gmail.com>
\r
47 <1400841267-12807-3-git-send-email-felipe.contreras@gmail.com>
\r
48 User-Agent: Notmuch/0.18+10~g7d81d70 (http://notmuchmail.org) Emacs/24.3.1
\r
49 (x86_64-pc-linux-gnu)
\r
50 Date: Fri, 23 May 2014 08:04:57 -0700
\r
51 Message-ID: <w52c61kwh6xy.fsf@gaea.mtv.corp.google.com>
\r
53 Content-Type: multipart/mixed; boundary="=-=-="
\r
54 Cc: Ali Polatel <alip@exherbo.org>
\r
55 X-BeenThere: notmuch@notmuchmail.org
\r
56 X-Mailman-Version: 2.1.13
\r
58 List-Id: "Use and development of the notmuch mail system."
\r
59 <notmuch.notmuchmail.org>
\r
60 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
61 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
62 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
63 List-Post: <mailto:notmuch@notmuchmail.org>
\r
64 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
65 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
66 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
67 X-List-Received-Date: Fri, 23 May 2014 15:05:12 -0000
\r
70 Content-Type: text/plain
\r
72 Felipe Contreras <felipe.contreras@gmail.com> writes:
\r
74 > So there's no need for the user to manually do that.
\r
76 > Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
\r
78 > bindings/ruby/Makefile.local | 21 +++++++++++++++++++++
\r
79 > bindings/ruby/extconf.rb | 14 ++------------
\r
80 > configure | 21 +++++++++++++++++++++
\r
81 > 3 files changed, 44 insertions(+), 12 deletions(-)
\r
82 > create mode 100644 bindings/ruby/Makefile.local
\r
84 > diff --git a/bindings/ruby/Makefile.local b/bindings/ruby/Makefile.local
\r
85 > new file mode 100644
\r
86 > index 0000000..8b1837c
\r
88 > +++ b/bindings/ruby/Makefile.local
\r
90 > +dir := bindings/ruby
\r
92 > +ifeq ($(WITH_RUBY),1)
\r
93 > +all: $(dir)/notmuch.so
\r
94 > +install: install-ruby
\r
95 > +clean: clean-ruby
\r
98 > +$(dir)/Makefile: $(dir)/extconf.rb
\r
99 > + @ruby -C $(dir) extconf.rb --vendor
\r
101 > +$(dir)/notmuch.so: | $(dir)/Makefile lib/libnotmuch.so
\r
102 > + @$(MAKE) -C $(dir) notmuch.so
\r
104 > +install-ruby: | $(dir)/Makefile
\r
105 > + @$(MAKE) -C $(dir) install prefix=$(DESTDIR)/$(prefix)
\r
107 > +clean-ruby: | $(dir)/Makefile
\r
108 > + $(MAKE) -C $(dir) clean
\r
110 > +.PHONY: install-ruby
\r
111 > diff --git a/bindings/ruby/extconf.rb b/bindings/ruby/extconf.rb
\r
112 > index 6160db2..abd67fc 100644
\r
113 > --- a/bindings/ruby/extconf.rb
\r
114 > +++ b/bindings/ruby/extconf.rb
\r
115 > @@ -13,18 +13,8 @@ $INCFLAGS = "-I#{dir} #{$INCFLAGS}"
\r
116 > # make sure there are no undefined symbols
\r
117 > $LDFLAGS += ' -Wl,--no-undefined'
\r
119 > -def have_local_library(lib, path, func, headers = nil)
\r
120 > - checking_for checking_message(func, lib) do
\r
121 > - lib = File.join(path, lib)
\r
122 > - if try_func(func, lib, headers)
\r
123 > - $LOCAL_LIBS += lib
\r
128 > -if not have_local_library('libnotmuch.so', dir, 'notmuch_database_create', 'notmuch.h')
\r
132 > +$LOCAL_LIBS += "#{dir}/libnotmuch.so"
\r
134 > # Create Makefile
\r
135 > dir_config('notmuch')
\r
136 > diff --git a/configure b/configure
\r
137 > index 9bde2eb..3bdf6d7 100755
\r
140 > @@ -21,6 +21,7 @@ srcdir=$(dirname "$0")
\r
142 > subdirs="util compat lib parse-time-string completion doc emacs"
\r
143 > subdirs="${subdirs} performance-test test test/test-databases"
\r
144 > +subdirs="${subdirs} bindings/ruby"
\r
146 > # For a non-srcdir configure invocation (such as ../configure), create
\r
147 > # the directory structure and copy Makefiles.
\r
148 > @@ -65,6 +66,7 @@ LIBDIR=
\r
154 > # Compatible GMime versions (with constraints).
\r
155 > # If using GMime 2.6, we need to have a version >= 2.6.5 to avoid a
\r
156 > @@ -212,6 +214,14 @@ for option; do
\r
157 > elif [ "${option#*=}" = '2.6' ]; then
\r
158 > WITH_GMIME_VERSIONS=$GMIME_26_VERSION
\r
160 > + elif [ "${option%%=*}" = '--with-ruby' ]; then
\r
161 > + if [ "${option#*=}" = 'no' ]; then
\r
166 > + elif [ "${option}" = '--without-ruby' ] ; then
\r
168 > elif [ "${option%%=*}" = '--build' ] ; then
\r
170 > elif [ "${option%%=*}" = '--host' ] ; then
\r
171 > @@ -383,6 +393,14 @@ else
\r
175 > +printf "Checking for ruby... "
\r
176 > +if pkg-config --exists ruby-2.1; then
\r
177 Why don't you do an OR check for ruby 1.9, 2.0 and 2.1 allowing it to
\r
178 build with any Ruby version?
\r
180 > + printf "Yes.\n"
\r
182 > + printf "No (will not install Ruby bindings).\n"
\r
186 > if [ -z "${EMACSLISPDIR}" ]; then
\r
187 > if pkg-config --exists emacs; then
\r
188 > EMACSLISPDIR=$(pkg-config emacs --variable sitepkglispdir)
\r
189 > @@ -906,6 +924,9 @@ WITH_BASH = ${WITH_BASH}
\r
190 > # Support for zsh completion
\r
191 > WITH_ZSH = ${WITH_ZSH}
\r
193 > +# Support for Ruby
\r
194 > +WITH_RUBY = ${WITH_RUBY}
\r
196 > # Combined flags for compiling and linking against all of the above
\r
197 > CONFIGURE_CFLAGS = -DHAVE_GETLINE=\$(HAVE_GETLINE) \$(GMIME_CFLAGS) \\
\r
198 > -DHAVE_CANONICALIZE_FILE_NAME=\$(HAVE_CANONICALIZE_FILE_NAME) \\
\r
200 > 1.9.3+fc1~5~gfaddd51
\r
202 > _______________________________________________
\r
203 > notmuch mailing list
\r
204 > notmuch@notmuchmail.org
\r
205 > http://notmuchmail.org/mailman/listinfo/notmuch
\r
208 Content-Type: multipart/signed; boundary="==-=-=";
\r
209 micalg=pgp-sha1; protocol="application/pgp-signature"
\r
212 Content-Type: text/plain
\r
213 Content-Transfer-Encoding: quoted-printable
\r
216 Wael Nasreddine | SRE at Google | wael.nasreddine@gmail.com | (650) 735-1773
\r
219 Content-Type: application/pgp-signature
\r
221 -----BEGIN PGP SIGNATURE-----
\r
224 iEYEARECAAYFAlN/Y5kACgkQVWU5RcjdGKL6JwCgp84Bd8O94oUEZvqD/iFNzoJQ
\r
225 S1IAn10tie1PhxKN4EvEDzdjyD8ugxgs
\r
227 -----END PGP SIGNATURE-----
\r