--- /dev/null
+Return-Path: <felipe.contreras@gmail.com>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by olra.theworths.org (Postfix) with ESMTP id B0301431FB6\r
+ for <notmuch@notmuchmail.org>; Tue, 16 Apr 2013 12:09:55 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.799\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5\r
+ tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
+ FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+ by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id 0B70Z2YNErQ1 for <notmuch@notmuchmail.org>;\r
+ Tue, 16 Apr 2013 12:09:55 -0700 (PDT)\r
+Received: from mail-qa0-f50.google.com (mail-qa0-f50.google.com\r
+ [209.85.216.50]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+ (No client certificate requested)\r
+ by olra.theworths.org (Postfix) with ESMTPS id 3B05E431FAF\r
+ for <notmuch@notmuchmail.org>; Tue, 16 Apr 2013 12:09:55 -0700 (PDT)\r
+Received: by mail-qa0-f50.google.com with SMTP id dx4so487665qab.9\r
+ for <notmuch@notmuchmail.org>; Tue, 16 Apr 2013 12:09:54 -0700 (PDT)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
+ h=x-received:from:to:cc:subject:date:message-id:x-mailer;\r
+ bh=MNP6uzyYEW0Lolvas+64zXXAIjspcCAmMCekAN5cRLU=;\r
+ b=x5qxdPbTEuXldKMvSsBv8wRLIcCHbD2To/O0jO4Sd1nXd7rEH2kDLOm3kYfCZMKeY9\r
+ nW95PI/qIMypOWxxzWhGqb7wMn70H1tP/s+jwWTuHMtON5+lbP4QlvchddbbmbdHtSao\r
+ 6h93+EY7uOxBfA1eB2oLXLZ0OzgNeFC/xe/caLYVY8vx16Nozz6vXl8yqbD+q6M7DsSr\r
+ gMr+8hwyn2Fru65tRcDNKuTF1y4Fp/pIwdWPnKCJNfy2hKSwgj1mFgzma4OmNBIkfqFw\r
+ 08I115Qr/gdDLCMGb9kad6Upk7E4cy7kClQPQaXf+fG5wszzyCptE8XAAPHp/LWVLNwQ\r
+ vF7A==\r
+X-Received: by 10.49.107.193 with SMTP id he1mr4506068qeb.2.1366139392641;\r
+ Tue, 16 Apr 2013 12:09:52 -0700 (PDT)\r
+Received: from localhost (187-163-100-70.static.axtel.net. [187.163.100.70])\r
+ by mx.google.com with ESMTPS id ei3sm4909623qab.10.2013.04.16.12.09.49\r
+ (version=TLSv1.2 cipher=RC4-SHA bits=128/128);\r
+ Tue, 16 Apr 2013 12:09:51 -0700 (PDT)\r
+From: Felipe Contreras <felipe.contreras@gmail.com>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH v2] debian: package ruby bindings\r
+Date: Tue, 16 Apr 2013 14:08:39 -0500\r
+Message-Id: <1366139319-6985-1-git-send-email-felipe.contreras@gmail.com>\r
+X-Mailer: git-send-email 1.8.2.1.679.g509521a\r
+Cc: David Bremner <bremner@debian.org>\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Tue, 16 Apr 2013 19:09:55 -0000\r
+\r
+Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>\r
+---\r
+ debian/control | 14 ++++++++++++++\r
+ debian/notmuch-ruby.install | 1 +\r
+ debian/rules | 3 +++\r
+ 3 files changed, 18 insertions(+)\r
+ create mode 100644 debian/notmuch-ruby.install\r
+\r
+diff --git a/debian/control b/debian/control\r
+index 854a32a..c59d3ea 100644\r
+--- a/debian/control\r
++++ b/debian/control\r
+@@ -15,6 +15,7 @@ Build-Depends:\r
+ libz-dev,\r
+ python-all (>= 2.6.6-3~),\r
+ python3-all (>= 3.1.2-7~),\r
++ ruby, ruby-dev,\r
+ emacs23-nox | emacs23 (>=23~) | emacs23-lucid (>=23~) |\r
+ emacs24-nox | emacs24 (>=24~) | emacs24-lucid (>=24~),\r
+ gdb,\r
+@@ -89,6 +90,19 @@ Description: Python 3 interface to the notmuch mail search and index library\r
+ This package provides a Python 3 interface to the notmuch\r
+ functionality, directly interfacing with a shared notmuch library.\r
+ \r
++Package: notmuch-ruby\r
++Architecture: any\r
++Section: ruby\r
++Depends: ${shlibs:Depends}, ${misc:Depends}\r
++Description: Ruby interface to the notmuch mail search and index library\r
++ Notmuch is a system for indexing, searching, reading, and tagging\r
++ large collections of email messages in maildir or mh format. It uses\r
++ the Xapian library to provide fast, full-text search with a very\r
++ convenient search syntax.\r
++ .\r
++ This package provides a Ruby interface to the notmuch\r
++ functionality, directly interfacing with a shared notmuch library.\r
++\r
+ Package: notmuch-emacs\r
+ Architecture: all\r
+ Section: mail\r
+diff --git a/debian/notmuch-ruby.install b/debian/notmuch-ruby.install\r
+new file mode 100644\r
+index 0000000..98e7050\r
+--- /dev/null\r
++++ b/debian/notmuch-ruby.install\r
+@@ -0,0 +1 @@\r
++usr/lib/ruby/vendor_ruby/*/*/notmuch.so\r
+diff --git a/debian/rules b/debian/rules\r
+index c4e3930..71a5602 100755\r
+--- a/debian/rules\r
++++ b/debian/rules\r
+@@ -12,15 +12,18 @@ override_dh_auto_build:\r
+ dh_auto_build\r
+ dh_auto_build --sourcedirectory bindings/python\r
+ cd bindings/python && $(python3_all) setup.py build\r
++ cd bindings/ruby && ruby extconf.rb --vendor && make\r
+ $(MAKE) -C contrib/notmuch-mutt\r
+ \r
+ override_dh_auto_clean:\r
+ dh_auto_clean\r
+ dh_auto_clean --sourcedirectory bindings/python\r
+ cd bindings/python && $(python3_all) setup.py clean -a\r
++ dh_auto_clean --sourcedirectory bindings/ruby\r
+ $(MAKE) -C contrib/notmuch-mutt clean\r
+ \r
+ override_dh_auto_install:\r
+ dh_auto_install\r
+ dh_auto_install --sourcedirectory bindings/python\r
+ cd bindings/python && $(python3_all) setup.py install --install-layout=deb --root=$(CURDIR)/debian/tmp\r
++ dh_auto_install --sourcedirectory bindings/ruby\r
+-- \r
+1.8.2.1.679.g509521a\r
+\r