Gentoo Archives: gentoo-commits

From: "Amadeusz Zolnowski (aidecoe)" <aidecoe@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-mail/notmuch: ChangeLog notmuch-0.10.1.ebuild
Date: Fri, 02 Dec 2011 08:39:10
Message-Id: 20111202083853.B57D02004B@flycatcher.gentoo.org
1 aidecoe 11/12/02 08:38:53
2
3 Modified: ChangeLog
4 Added: notmuch-0.10.1.ebuild
5 Log:
6 net-mail/notmuch: Version bump to 0.10.1.
7
8 (Portage version: 2.1.10.39/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.17 net-mail/notmuch/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-mail/notmuch/ChangeLog?rev=1.17&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-mail/notmuch/ChangeLog?rev=1.17&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-mail/notmuch/ChangeLog?r1=1.16&r2=1.17
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-mail/notmuch/ChangeLog,v
20 retrieving revision 1.16
21 retrieving revision 1.17
22 diff -u -r1.16 -r1.17
23 --- ChangeLog 25 Nov 2011 10:40:23 -0000 1.16
24 +++ ChangeLog 2 Dec 2011 08:38:53 -0000 1.17
25 @@ -1,6 +1,19 @@
26 # ChangeLog for net-mail/notmuch
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-mail/notmuch/ChangeLog,v 1.16 2011/11/25 10:40:23 aidecoe Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-mail/notmuch/ChangeLog,v 1.17 2011/12/02 08:38:53 aidecoe Exp $
30 +
31 +*notmuch-0.10.1 (02 Dec 2011)
32 +
33 + 02 Dec 2011; Amadeusz Żołnowski <aidecoe@g.o>
34 + +files/0.10.1-fix-test-build.patch, +notmuch-0.10.1.ebuild:
35 + Version bump.
36 +
37 + NEWS
38 + ~~~~
39 + Fix --help argument
40 +
41 + Argument processing changes in 0.10 introduced a bug where "notmuch --help"
42 + crashed while "notmuch help" worked fine.
43
44 25 Nov 2011; Amadeusz Żołnowski <aidecoe@g.o>
45 -files/0.9-emacsetcdir.patch, -files/0.9-fix-lib-makefile-local.patch,
46
47
48
49 1.1 net-mail/notmuch/notmuch-0.10.1.ebuild
50
51 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-mail/notmuch/notmuch-0.10.1.ebuild?rev=1.1&view=markup
52 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-mail/notmuch/notmuch-0.10.1.ebuild?rev=1.1&content-type=text/plain
53
54 Index: notmuch-0.10.1.ebuild
55 ===================================================================
56 # Copyright 1999-2011 Gentoo Foundation
57 # Distributed under the terms of the GNU General Public License v2
58 # $Header: /var/cvsroot/gentoo-x86/net-mail/notmuch/notmuch-0.10.1.ebuild,v 1.1 2011/12/02 08:38:53 aidecoe Exp $
59
60 EAPI=4
61
62 PYTHON_DEPEND="python? 2:2.6"
63 SUPPORT_PYTHON_ABIS="1"
64 RESTRICT_PYTHON_ABIS="2.[45] 3.*"
65 RUBY="/usr/bin/ruby18"
66 RDOC="/usr/bin/rdoc18"
67
68 inherit elisp-common distutils
69 inherit autotools-utils
70
71 DESCRIPTION="The mail indexer"
72 HOMEPAGE="http://notmuchmail.org/"
73 SRC_URI="${HOMEPAGE}/releases/${P}.tar.gz"
74
75 LICENSE="GPL-3"
76 SLOT="0"
77 KEYWORDS="~amd64 ~x86"
78 REQUIRED_USE="test? ( crypt emacs )"
79 IUSE="bash-completion crypt debug doc emacs python ruby test vim zsh-completion"
80
81 CDEPEND="
82 >=dev-libs/glib-2.14
83 dev-libs/gmime:2.4
84 dev-libs/xapian
85 doc? ( python? ( dev-python/sphinx ) )
86 sys-libs/talloc
87 debug? ( dev-util/valgrind )
88 emacs? ( >=virtual/emacs-23 )
89 ruby? ( dev-lang/ruby:1.8 )
90 x86? ( >=dev-libs/xapian-1.2.7-r2 )
91 vim? ( || ( >=app-editors/vim-7.0 >=app-editors/gvim-7.0 ) )
92 "
93 DEPEND="${CDEPEND}
94 dev-util/pkgconfig
95 test? ( app-misc/dtach sys-devel/gdb )
96 "
97 RDEPEND="${CDEPEND}
98 crypt? ( app-crypt/gnupg )
99 zsh-completion? ( app-shells/zsh )
100 "
101
102 PATCHES=( "${FILESDIR}/${PV}-fix-test-build.patch" )
103 DOCS=( AUTHORS NEWS README TODO )
104 SITEFILE="50${PN}-gentoo.el"
105
106 bindings() {
107 if use $1; then
108 pushd bindings/$1 || die
109 shift
110 $@
111 popd || die
112 fi
113 }
114
115 pkg_setup() {
116 if use emacs; then
117 elisp-need-emacs 23 || die "Emacs version too low"
118 fi
119 use python && python_pkg_setup
120 }
121
122 src_prepare() {
123 autotools-utils_src_prepare
124 bindings python distutils_src_prepare
125
126 r_fix() {
127 local pattern="\(find_library('notmuch', '[^']*', '\)\([^']*\)\(')\)"
128 local replace="\1${WORKDIR}/${PF}_build/lib\3"
129
130 sed -i "s|$pattern|$replace|" extconf.rb || die
131 }
132 bindings ruby r_fix
133 }
134
135 src_configure() {
136 local myeconfargs=(
137 --bashcompletiondir="${ROOT}/usr/share/bash-completion"
138 --emacslispdir="${ROOT}/${SITELISP}/${PN}"
139 --emacsetcdir="${ROOT}/${SITEETC}/${PN}"
140 --zshcompletiondir="${ROOT}/usr/share/zsh/site-functions"
141 $(use_with bash-completion)
142 $(use_with emacs)
143 $(use_with zsh-completion)
144 )
145 autotools-utils_src_configure
146 }
147
148 src_compile() {
149 autotools-utils_src_compile
150 bindings python distutils_src_compile
151
152 r_make() {
153 ${RUBY} extconf.rb || die
154 emake
155 }
156 bindings ruby r_make
157
158 if use doc; then
159 pydocs() {
160 pushd docs || die
161 emake html
162 mv html ../python || die
163 popd || die
164 }
165
166 rdocs() {
167 ${RDOC} --main 'Notmuch' --title 'Notmuch Ruby API' --op ruby *.c
168 }
169
170 LD_LIBRARY_PATH="${WORKDIR}/${PF}_build/lib" bindings python pydocs
171 bindings ruby rdocs
172 fi
173 }
174
175 src_install() {
176 autotools-utils_src_install
177
178 if use emacs; then
179 elisp-site-file-install "${FILESDIR}/${SITEFILE}" || die
180 fi
181
182 if use vim; then
183 insinto /usr/share/vim/vimfiles
184 doins -r vim/plugin vim/syntax
185 fi
186
187 DOCS="" bindings python distutils_src_install
188 bindings ruby emake DESTDIR="'${D}'" install
189
190 if use doc; then
191 bindings python dohtml -r python
192 bindings ruby dohtml -r ruby
193 fi
194 }
195
196 pkg_postinst() {
197 use emacs && elisp-site-regen
198 use python && distutils_pkg_postinst
199
200 if use python; then
201 echo
202 elog "Python API documentation is also available online at:"
203 elog " http://packages.python.org/notmuch/"
204 fi
205 }
206
207 pkg_postrm() {
208 use emacs && elisp-site-regen
209 use python && distutils_pkg_postrm
210 }