net-mail/notmuch: Added ruby bindings and docs.
authorAmadeusz Żołnowski <aidecoe@gentoo.org>
Fri, 4 Nov 2011 14:49:13 +0000 (14:49 +0000)
committerAmadeusz Żołnowski <aidecoe@gentoo.org>
Fri, 4 Nov 2011 14:49:13 +0000 (14:49 +0000)
Added ruby bindings and API documentation for both python and ruby bindings.

Package-Manager: portage-2.1.10.32/cvs/Linux x86_64

net-mail/notmuch/ChangeLog
net-mail/notmuch/Manifest
net-mail/notmuch/metadata.xml
net-mail/notmuch/notmuch-0.9-r2.ebuild [new file with mode: 0644]

index 7d7927cc2d56ffc6fc903d77e7d56a73b3d940fc..6ef9110d0c0f2bf3fdfc0819b13bcb889b6385ea 100644 (file)
@@ -1,6 +1,12 @@
 # ChangeLog for net-mail/notmuch
 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-mail/notmuch/ChangeLog,v 1.8 2011/11/03 18:32:23 aidecoe Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-mail/notmuch/ChangeLog,v 1.9 2011/11/04 14:49:13 aidecoe Exp $
+
+*notmuch-0.9-r2 (04 Nov 2011)
+
+  04 Nov 2011; Amadeusz Żołnowski <aidecoe@gentoo.org>
+  +notmuch-0.9-r2.ebuild, metadata.xml:
+  Added ruby bindings and API documentation for both python and ruby bindings.
 
   03 Nov 2011; Amadeusz Żołnowski <aidecoe@gentoo.org> -notmuch-0.9.ebuild:
   Removed old 0.9 revision.
index c2099084adf7bc06a49ba3e3b5c0b279a862a054..c0fd3cc308ea09d2103211205da0870e8e204db0 100644 (file)
@@ -6,16 +6,17 @@ AUX 0.9-fix-lib-makefile-local.patch 1897 RMD160 b7e1092958b3d0cee7f150eae7bd354
 AUX 50notmuch-gentoo.el 291 RMD160 7e036b8700f50cde6c3b27622193ddf08812229b SHA1 cc087fe76f750e84171a6ddef9dc10139b8450cc SHA256 68c0ecfd3d10246fb65ec48b097c1b477ce33f44014f602f903c16b752ba7d3b
 DIST notmuch-0.9.tar.gz 398868 RMD160 b956ceb629943bfa65c1c6fab6b10dc78639588b SHA1 988e93545880e9465380383f00d591d8a23c61dd SHA256 e6f1046941d2894d143cb7c19d4810f97946f98742f6d9b8a7208ddb858c57e4
 EBUILD notmuch-0.9-r1.ebuild 2396 RMD160 7a6abdaf07e658e461261ffba8840baf49a371a0 SHA1 3066630d85067691e4480d3545b3018ea07abd99 SHA256 2fa966bd281dd358e02e0299af40fe46440b5b7b35e8629d44b4f2833098fba6
-MISC ChangeLog 2370 RMD160 a5cbe804a3fd511c78b54561cf0d76dd97b20998 SHA1 8abc831fcd0a4daa90d81c5e3238caf4db0a7a84 SHA256 155871f8898e81772ca543870f40c84a12239e5884b980ce70d48ab45874e45d
-MISC metadata.xml 797 RMD160 85a1375f5c1b25be9ed9537cb3a4a335e4f4dd94 SHA1 c58165bf39b97ac449684c56105383a93ace9b22 SHA256 2115fb17a181a8960b0c94f288b72013ebae7db2c25fe529b980c27779125dca
+EBUILD notmuch-0.9-r2.ebuild 3163 RMD160 00750c83bc299acce6f940de75715e2d747e00b1 SHA1 84e7c226d6e8a34db638e518bdb0168dff591bd6 SHA256 aa69a1fc3743a895d88cb5e07c217a4ddcf107494687690c00684fa7b7992e34
+MISC ChangeLog 2578 RMD160 c36e418c0ea364b850a1fbe2a9469dd19010e010 SHA1 6bee3a21c7646f3491e23b4800b5c52712c35d89 SHA256 19efe51f28373e5f6ffafa7a6f16e9c095c57a6eee64817958ca60f385c4c009
+MISC metadata.xml 870 RMD160 1ea6d669111c3e30f719c2337bb1fbebe7ab14aa SHA1 49ddae312621716998b7fe205f93536b2c2d20b4 SHA256 37955cc892c0585089e4dfb7ea2a8d1cb819164c4d098ba1be7253929be9890f
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2.0.18 (GNU/Linux)
 
-iQEcBAEBAgAGBQJOst49AAoJEPATRTHh2/q1uEMH/AqhrDndvxNNkMofX0/Z6Vcr
-ZgjIG8W709FxJPgZ5bYmHIlTzhfpQWweJopPGfm7M7EzHMfHFC86d8NyQ4hUKQnb
-V1ougMjJUdDzm1Q9V5vPei2FlW806O4Ngd1c5HN3sy13J4Axqh7hy9wDHRmA6YF/
-QxCObztqxiowTfmOOA3CvcYGvzbz/PsoYyqvlFRoguLt2e5ZWgM9VZXjeEuW6ESe
-7v2yhB1LGYZ8Wul1KfRrvo9Tmoba9p7AWHSmcFQgc+b13nuCAEVfUjxpjwTDc+mX
-2K80rg865bEI0bCs3gYCHjdwbDjj20q85903Qd5082MrmOgzUIHYtyBTMekYujM=
-=nVtl
+iQEcBAEBAgAGBQJOs/tvAAoJEPATRTHh2/q1PEoH/iioafY7RylIvtb1V78/xTcG
+mnHnK4eJc8a4YxKhE+VJvWiyLl0S3fcUuk6F50heaaeZ5SpSv49kDmyITzTPijjA
+x103vBVYY0BBO6zkvBlRSuDUz21Ii2Dq7craRxRuKlXl+N9374mnsCoVNrCltr5o
+Sx9xsWRnE0DD20/xzj7ahE/ETbEu1P8ssqSeYtE729zFoTACo+3tyi14uboWE6Vi
+3ypX4SGZPJ5fcs5XprRbsjjWountgYV43WZ6DAeZ3Yfg87pxrQWvVtA9GpUCWwL5
+G8nzlblMYDoUWcVt/QzVBGpjynX1o/T0WBFHDGgn07Sqohd917KMwqUyKqsbpp4=
+=l89Y
 -----END PGP SIGNATURE-----
index 0acb6acdbe066a64f08467473d8e832d7c324488..fd29f9393040714924b5a928a327d90b850d3767 100644 (file)
@@ -6,6 +6,7 @@
                <name>Amadeusz Żołnowski</name>
        </maintainer>
        <use>
+               <flag name="doc">Install API documentation for enabled bindings</flag>
                <flag name="crypt">Support decryption and verification of PGP/MIME
                        messages and in Emacs UI - encryption</flag>
                <flag name="emacs">Install Notmuch client for Emacs (main client)</flag>
diff --git a/net-mail/notmuch/notmuch-0.9-r2.ebuild b/net-mail/notmuch/notmuch-0.9-r2.ebuild
new file mode 100644 (file)
index 0000000..4dde5bd
--- /dev/null
@@ -0,0 +1,151 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-mail/notmuch/notmuch-0.9-r2.ebuild,v 1.1 2011/11/04 14:49:13 aidecoe Exp $
+
+EAPI=4
+
+PYTHON_DEPEND="python? 2:2.5"
+SUPPORT_PYTHON_ABIS="1"
+RESTRICT_PYTHON_ABIS="2.4 3.*"
+RUBY="/usr/bin/ruby18"
+RDOC="/usr/bin/rdoc18"
+
+inherit elisp-common distutils
+inherit autotools-utils
+
+DESCRIPTION="The mail indexer"
+HOMEPAGE="http://notmuchmail.org/"
+SRC_URI="${HOMEPAGE}/releases/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+REQUIRED_USE="test? ( crypt emacs )"
+IUSE="bash-completion crypt debug doc emacs python ruby test vim zsh-completion"
+
+CDEPEND="
+       >=dev-libs/glib-2.14
+       dev-libs/gmime:2.4
+       dev-libs/xapian
+       doc? ( python? ( dev-python/sphinx ) )
+       sys-libs/talloc
+       debug? ( dev-util/valgrind )
+       emacs? ( >=virtual/emacs-23 )
+       ruby? ( dev-lang/ruby:1.8 )
+       x86? ( >=dev-libs/xapian-1.2.7-r2 )
+       vim? ( || ( >=app-editors/vim-7.0 >=app-editors/gvim-7.0 ) )
+       "
+DEPEND="${CDEPEND}
+       dev-util/pkgconfig
+       test? ( sys-devel/gdb )
+       "
+RDEPEND="${CDEPEND}
+       crypt? ( app-crypt/gnupg )
+       zsh-completion? ( app-shells/zsh )
+       "
+
+DOCS=( AUTHORS NEWS README TODO )
+PATCHES=(
+       "${FILESDIR}/${PV}-fix-lib-makefile-local.patch"
+       "${FILESDIR}/${PV}-emacsetcdir.patch"
+       )
+SITEFILE="50${PN}-gentoo.el"
+
+bindings() {
+       if use $1; then
+               pushd bindings/$1 || die
+               shift
+               $@
+               popd || die
+       fi
+}
+
+pkg_setup() {
+       if use emacs; then
+               elisp-need-emacs 23 || die "Emacs version too low"
+       fi
+       use python && python_pkg_setup
+}
+
+src_prepare() {
+       echo "S=${S}"
+       autotools-utils_src_prepare
+       bindings python distutils_src_prepare
+}
+
+src_configure() {
+       local myeconfargs=(
+               --bashcompletiondir="${ROOT}/usr/share/bash-completion"
+               --emacslispdir="${ROOT}/${SITELISP}/${PN}"
+               --emacsetcdir="${ROOT}/${SITEETC}/${PN}"
+               --zshcompletiondir="${ROOT}/usr/share/zsh/site-functions"
+               $(use_with bash-completion)
+               $(use_with emacs)
+               $(use_with zsh-completion)
+       )
+       autotools-utils_src_configure
+
+       r_conf() {
+               ${RUBY} extconf.rb || die
+       }
+       bindings ruby r_conf
+}
+
+src_compile() {
+       autotools-utils_src_compile
+       bindings python distutils_src_compile
+       bindings ruby emake
+
+       if use doc; then
+               pydocs() {
+                       pushd docs || die
+                       emake html
+                       mv html ../python || die
+                       popd || die
+               }
+
+               rdocs() {
+                       ${RDOC} --main 'Notmuch' --title 'Notmuch Ruby API' --op ruby *.c
+               }
+
+               bindings python pydocs
+               bindings ruby rdocs
+       fi
+}
+
+src_install() {
+       autotools-utils_src_install
+
+       if use emacs; then
+               elisp-site-file-install "${FILESDIR}/${SITEFILE}" || die
+       fi
+
+       if use vim; then
+               insinto /usr/share/vim/vimfiles
+               doins -r vim/plugin vim/syntax
+       fi
+
+       DOCS="" bindings python distutils_src_install
+       bindings ruby emake DESTDIR="'${D}'" install
+
+       if use doc; then
+               bindings python dohtml -r python
+               bindings ruby dohtml -r ruby
+       fi
+}
+
+pkg_postinst() {
+       use emacs && elisp-site-regen
+       use python && distutils_pkg_postinst
+
+       if use python; then
+               echo
+               einfo "Python API documentation is also online available at:"
+               einfo "  http://packages.python.org/notmuch/"
+       fi
+}
+
+pkg_postrm() {
+       use emacs && elisp-site-regen
+       use python && distutils_pkg_postrm
+}