Re: [PATCH v4 01/16] add util/search-path.{c, h} to test for executables in $PATH
[notmuch-archives.git] / 31 / 1c56681b42bf83e97dfc05f91b06659eec47ef
1 Return-Path: <bremner@tethera.net>\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 8D58D429E2C\r
6         for <notmuch@notmuchmail.org>; Sun, 19 Jun 2011 12:54:10 -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: -2.3\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-2.3 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_MED=-2.3] 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 qEV3HJxQ7a4h for <notmuch@notmuchmail.org>;\r
16         Sun, 19 Jun 2011 12:54:10 -0700 (PDT)\r
17 Received: from tempo.its.unb.ca (tempo.its.unb.ca [131.202.1.21])\r
18         (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\r
19         (No client certificate requested)\r
20         by olra.theworths.org (Postfix) with ESMTPS id CC592431FB6\r
21         for <notmuch@notmuchmail.org>; Sun, 19 Jun 2011 12:54:09 -0700 (PDT)\r
22 Received: from zancas.localnet\r
23         (fctnnbsc30w-142167176081.pppoe-dynamic.High-Speed.nb.bellaliant.net\r
24         [142.167.176.81]) (authenticated bits=0)\r
25         by tempo.its.unb.ca (8.13.8/8.13.8) with ESMTP id p5JJs4be024280\r
26         (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO);\r
27         Sun, 19 Jun 2011 16:54:05 -0300\r
28 Received: from bremner by zancas.localnet with local (Exim 4.76)\r
29         (envelope-from <bremner@tethera.net>)\r
30         id 1QYO4K-00074v-My; Sun, 19 Jun 2011 16:54:04 -0300\r
31 From: david@tethera.net\r
32 To: notmuch@notmuchmail.org\r
33 Subject: [PATCH 1/2] Build debian package for python-bindings.\r
34 Date: Sun, 19 Jun 2011 16:53:42 -0300\r
35 Message-Id: <1308513223-27163-2-git-send-email-david@tethera.net>\r
36 X-Mailer: git-send-email 1.7.5.3\r
37 In-Reply-To: <1308513223-27163-1-git-send-email-david@tethera.net>\r
38 References: <1308507380-26896-1-git-send-email-david@tethera.net>\r
39         <1308513223-27163-1-git-send-email-david@tethera.net>\r
40 Cc: David Bremner <bremner@debian.org>\r
41 X-BeenThere: notmuch@notmuchmail.org\r
42 X-Mailman-Version: 2.1.13\r
43 Precedence: list\r
44 List-Id: "Use and development of the notmuch mail system."\r
45         <notmuch.notmuchmail.org>\r
46 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
47         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
48 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
49 List-Post: <mailto:notmuch@notmuchmail.org>\r
50 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
51 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
52         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
53 X-List-Received-Date: Sun, 19 Jun 2011 19:54:10 -0000\r
54 \r
55 From: David Bremner <bremner@debian.org>\r
56 \r
57 This uses dh_python2 (included with sufficiently recent versions of\r
58 the python/python-all packages). python-all brings in all of the\r
59 supported versions of python. The double calls to dh_auto_install are\r
60 to avoid looping over python versions ourselves.\r
61 ---\r
62  debian/control                |   17 ++++++++++++++++-\r
63  debian/python-notmuch.install |    1 +\r
64  debian/rules                  |   14 +++++++++++++-\r
65  3 files changed, 30 insertions(+), 2 deletions(-)\r
66  create mode 100644 debian/python-notmuch.install\r
67 \r
68 diff --git a/debian/control b/debian/control\r
69 index 3491e9a..fa5f762 100644\r
70 --- a/debian/control\r
71 +++ b/debian/control\r
72 @@ -3,7 +3,9 @@ Section: mail\r
73  Priority: extra\r
74  Maintainer: Carl Worth <cworth@debian.org>\r
75  Uploaders: Jameson Graef Rollins <jrollins@finestructure.net>, martin f. krafft <madduck@debian.org>\r
76 -Build-Depends: debhelper (>= 7.0.50~), pkg-config, libxapian-dev, libgmime-2.4-dev, libtalloc-dev, libz-dev, emacs (>= 23~)\r
77 +Build-Depends: debhelper (>= 7.0.50~), pkg-config, libxapian-dev, \r
78 + libgmime-2.4-dev, libtalloc-dev, libz-dev, emacs (>= 23~), \r
79 + python-all (>= 2.6.6-3~)\r
80  Standards-Version: 3.9.1.0\r
81  Homepage: http://notmuchmail.org/\r
82  Vcs-Git: git://notmuchmail.org/git/notmuch\r
83 @@ -49,3 +51,16 @@ Description: thread-based email index, search and tagging (development)\r
84   .\r
85   This package provides the necessary development libraries and header\r
86   files to allow you to develop new software using libnotmuch.\r
87 +\r
88 +Package: python-notmuch\r
89 +Architecture: all\r
90 +Section: python\r
91 +Depends: ${misc:Depends}, ${python:Depends}, libnotmuch1\r
92 +Description: python interface to the notmuch mail search and index library\r
93 + Notmuch is a system for indexing, searching, reading, and tagging\r
94 + large collections of email messages in maildir or mh format. It uses\r
95 + the Xapian library to provide fast, full-text search with a very\r
96 + convenient search syntax.\r
97 + .\r
98 + This package provides a Python interface to the notmuch\r
99 + functionality, directly interfacing with a shared notmuch library.\r
100 diff --git a/debian/python-notmuch.install b/debian/python-notmuch.install\r
101 new file mode 100644\r
102 index 0000000..607c065\r
103 --- /dev/null\r
104 +++ b/debian/python-notmuch.install\r
105 @@ -0,0 +1 @@\r
106 +usr/lib/python*\r
107 diff --git a/debian/rules b/debian/rules\r
108 index a4b526c..7343ac2 100755\r
109 --- a/debian/rules\r
110 +++ b/debian/rules\r
111 @@ -1,11 +1,23 @@\r
112  #!/usr/bin/make -f\r
113  \r
114  %:\r
115 -       dh $@\r
116 +       dh --with python2 $@\r
117  \r
118  override_dh_auto_configure:\r
119         dh_auto_configure -- --emacslispdir=/usr/share/emacs/site-lisp/notmuch\r
120  \r
121 +override_dh_auto_build:\r
122 +       dh_auto_build\r
123 +       dh_auto_build --sourcedirectory bindings/python\r
124 +\r
125 +override_dh_auto_clean:\r
126 +       dh_auto_clean\r
127 +       dh_auto_clean --sourcedirectory bindings/python\r
128 +\r
129 +override_dh_auto_install:\r
130 +       dh_auto_install\r
131 +       dh_auto_install --sourcedirectory bindings/python\r
132 +\r
133  override_dh_installdocs:\r
134         dh_installdocs\r
135         install -m644 vim/README debian/notmuch/usr/share/doc/notmuch/README.vim\r
136 -- \r
137 1.7.5.3\r
138 \r