From c6dfc0b03040857d811bba7288bd275a8e9f9436 Mon Sep 17 00:00:00 2001 From: Felipe Contreras Date: Thu, 4 Apr 2013 17:27:58 +1800 Subject: [PATCH] [PATCH] debian: package ruby bindings --- 83/f0728bd57a35cc742800b31f0a3418728e8396 | 139 ++++++++++++++++++++++ 1 file changed, 139 insertions(+) create mode 100644 83/f0728bd57a35cc742800b31f0a3418728e8396 diff --git a/83/f0728bd57a35cc742800b31f0a3418728e8396 b/83/f0728bd57a35cc742800b31f0a3418728e8396 new file mode 100644 index 000000000..145a1ec9e --- /dev/null +++ b/83/f0728bd57a35cc742800b31f0a3418728e8396 @@ -0,0 +1,139 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by olra.theworths.org (Postfix) with ESMTP id B5262431FAF + for ; Wed, 3 Apr 2013 16:28:57 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: -0.799 +X-Spam-Level: +X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5 + tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, + FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled +Received: from olra.theworths.org ([127.0.0.1]) + by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id qkhHsHY734hT for ; + Wed, 3 Apr 2013 16:28:57 -0700 (PDT) +Received: from mail-ie0-f173.google.com (mail-ie0-f173.google.com + [209.85.223.173]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id 3C562431FAE + for ; Wed, 3 Apr 2013 16:28:57 -0700 (PDT) +Received: by mail-ie0-f173.google.com with SMTP id 9so2398294iec.4 + for ; Wed, 03 Apr 2013 16:28:54 -0700 (PDT) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; + h=x-received:from:to:cc:subject:date:message-id:x-mailer; + bh=DHka+rAlPne4mnJV1NrH2935Y0WIR0hLQ5S3sybxJjU=; + b=nAKN8igY/jY2qj+X3sDhfYjzukT7zXDWeHHBqm0kJYcvtsoLgavXJfLKdGpTu5pUKn + soaP1xMqPt4e3isfNLzbuF9p6pdHKbBQtYe2YRPWsdNRVQYFqh5HJiFapCHXHiTk7bFD + Awatj6rOwx11rNx4MkUyhEfbAl6fBDZPY5DL6N/sxtSDgzSqMZdRPp6nFsOVPjnI9rU0 + aXguCB6vq+yeGoDxuxiKh1vaDUEoEBnZK49NZfGXijsaDh4C6Po9tx3kjxUAmNaxt1ia + x0FPT+uF3H59H7o9C25FY6peW0VHCBdO88b5MQbGLOxnONlu0vAkl7621czFe9XRnsFu + LVag== +X-Received: by 10.50.46.133 with SMTP id v5mr8362075igm.94.1365031734748; + Wed, 03 Apr 2013 16:28:54 -0700 (PDT) +Received: from localhost (187-163-100-70.static.axtel.net. [187.163.100.70]) + by mx.google.com with ESMTPS id wn10sm10903633igb.2.2013.04.03.16.28.52 + (version=TLSv1.2 cipher=RC4-SHA bits=128/128); + Wed, 03 Apr 2013 16:28:53 -0700 (PDT) +From: Felipe Contreras +To: notmuch@notmuchmail.org +Subject: [PATCH] debian: package ruby bindings +Date: Wed, 3 Apr 2013 17:27:58 -0600 +Message-Id: <1365031678-25188-1-git-send-email-felipe.contreras@gmail.com> +X-Mailer: git-send-email 1.8.2 +Cc: Stefano Zacchiroli , David Bremner +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.13 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Wed, 03 Apr 2013 23:28:57 -0000 + +Signed-off-by: Felipe Contreras +--- + debian/control | 14 ++++++++++++++ + debian/notmuch-ruby.install | 1 + + debian/rules | 9 +++++++++ + 3 files changed, 24 insertions(+) + create mode 100644 debian/notmuch-ruby.install + +diff --git a/debian/control b/debian/control +index 854a32a..620c5ce 100644 +--- a/debian/control ++++ b/debian/control +@@ -15,6 +15,7 @@ Build-Depends: + libz-dev, + python-all (>= 2.6.6-3~), + python3-all (>= 3.1.2-7~), ++ ruby-dev, + emacs23-nox | emacs23 (>=23~) | emacs23-lucid (>=23~) | + emacs24-nox | emacs24 (>=24~) | emacs24-lucid (>=24~), + gdb, +@@ -89,6 +90,19 @@ Description: Python 3 interface to the notmuch mail search and index library + This package provides a Python 3 interface to the notmuch + functionality, directly interfacing with a shared notmuch library. + ++Package: notmuch-ruby ++Architecture: any ++Section: ruby ++Depends: ${shlibs:Depends}, ${misc:Depends} ++Description: Ruby interface to the notmuch mail search and index library ++ Notmuch is a system for indexing, searching, reading, and tagging ++ large collections of email messages in maildir or mh format. It uses ++ the Xapian library to provide fast, full-text search with a very ++ convenient search syntax. ++ . ++ This package provides a Ruby interface to the notmuch ++ functionality, directly interfacing with a shared notmuch library. ++ + Package: notmuch-emacs + Architecture: all + Section: mail +diff --git a/debian/notmuch-ruby.install b/debian/notmuch-ruby.install +new file mode 100644 +index 0000000..f92f09c +--- /dev/null ++++ b/debian/notmuch-ruby.install +@@ -0,0 +1 @@ ++usr/local/lib/site_ruby/*/*/notmuch.so +diff --git a/debian/rules b/debian/rules +index c4e3930..7c7247a 100755 +--- a/debian/rules ++++ b/debian/rules +@@ -12,15 +12,24 @@ override_dh_auto_build: + dh_auto_build + dh_auto_build --sourcedirectory bindings/python + cd bindings/python && $(python3_all) setup.py build ++ dh_auto_build --sourcedirectory bindings/ruby ++ cd bindings/ruby && ruby extconf.rb && make + $(MAKE) -C contrib/notmuch-mutt + + override_dh_auto_clean: + dh_auto_clean + dh_auto_clean --sourcedirectory bindings/python + cd bindings/python && $(python3_all) setup.py clean -a ++ dh_auto_build --sourcedirectory bindings/ruby ++ cd bindings/ruby && test -f Makefile && make clean || true + $(MAKE) -C contrib/notmuch-mutt clean + + override_dh_auto_install: + dh_auto_install + dh_auto_install --sourcedirectory bindings/python + cd bindings/python && $(python3_all) setup.py install --install-layout=deb --root=$(CURDIR)/debian/tmp ++ dh_auto_build --sourcedirectory bindings/ruby ++ cd bindings/ruby && make install DESTDIR=$(CURDIR)/debian/tmp ++ ++# ruby's site is configured in /usr/local ++override_dh_usrlocal: +-- +1.8.2 + -- 2.26.2