diff options
author | Amadeusz Żołnowski <aidecoe@gentoo.org> | 2017-01-25 22:46:06 +0000 |
---|---|---|
committer | Amadeusz Żołnowski <aidecoe@gentoo.org> | 2017-01-25 22:46:18 +0000 |
commit | 8520993f20691cb7a548f0af6ce5f5619471c141 (patch) | |
tree | 1cd055ff3869b2bd9a364da912c529240924e744 /net-mail/notmuch | |
parent | app-text/tesseract: fix DOCS typo (diff) | |
download | gentoo-8520993f20691cb7a548f0af6ce5f5619471c141.tar.gz gentoo-8520993f20691cb7a548f0af6ce5f5619471c141.tar.bz2 gentoo-8520993f20691cb7a548f0af6ce5f5619471c141.zip |
net-mail/notmuch: Remove oldest versions
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'net-mail/notmuch')
7 files changed, 0 insertions, 685 deletions
diff --git a/net-mail/notmuch/Manifest b/net-mail/notmuch/Manifest index 3ad9bd649b60..b43ef2d095e6 100644 --- a/net-mail/notmuch/Manifest +++ b/net-mail/notmuch/Manifest @@ -1,7 +1,4 @@ DIST database-v1.tar.xz 204876 SHA256 4299e051b10e1fa7b33ea2862790a09ebfe96859681804e5251e130f800e69d2 SHA512 e2d87373e00b65756d7fea40c54fb236d7a37ce839145c3afd99ab26efdc17796e540c021e2c24e521df2d0a01ccbf918994f87a0d83235ff9b109a51555b3d0 WHIRLPOOL c3a4d99405ce5143ee2ac0cbdebdabbee0213ecfcb25615612b1577165547dd7c5b6b1d1930302dc3a8afc92b3691a6a4cc48255e91b08a297f9d2510e789233 -DIST notmuch-0.18.2.tar.gz 635438 SHA256 e99f7bfee1250aa9f23e05d926ec278316fb8dd135262b0e24f4ba1a78febc9c SHA512 f6c7c9f17b1a7560bae8d3c7023be2fa6661a1dee5d69a6449a7b7c4468730b6917a857f015b67f09e18801e084a4c65a24a01603683e0ed12fc24b9feb9250e WHIRLPOOL 40191e7078088b45deda2ab2d61a3e2448c61e63b69dd725a88ff68cfaedf68a6270f2d9171ef6a8cb475c4faefd9d84b899f7239953b53aebceede79a76199c -DIST notmuch-0.19.tar.gz 659038 SHA256 396fc6548423785ebbbe9a6cce321d957d3b2e856edb8225bb0988470833eeeb SHA512 41eba85d2e6f89693f53d607abdef837973204e709f2c7385e64507a19b316913851f17b3b6dc93d8a622c72756b3e696aad8189570a563df38994cf346791a5 WHIRLPOOL 380d2508f106fc08b31f7928d63587cfc7ed63835a0cde287d7ba09d3f6814070c789aad1d0bf6a3bab387273b2d37a8c783d939c2f4afa475b9785f2618a25a -DIST notmuch-0.20.2.tar.gz 652945 SHA256 f741a26345bff389fd8a4a119c4174c6585730f71844809583a54ef2a865adec SHA512 08ab75df324f232edd7c36f73d01d7453c058ffb55c4f548afdf9abe843317c1d7066f21e7600c66c53577f7d31787914bf69743aa5d221e239e182452681c75 WHIRLPOOL 1698cb1b09046f50a57ebf23625a2dd68f86cac7cb1142be81e77b5625e49960cb2311c8acff44de0894238bced48853cdd72b7edf34109ecee0bc53d5b086fc DIST notmuch-0.21.tar.gz 663600 SHA256 d06f8ffed168c7d53ffc449dd611038b5fa90f7ee22d58f3bec3b379571e25b3 SHA512 2485c422433be21f6bf89aaf997e1468c31a52029ddc8336e78a632b292c659569448c29813ea550ed27fb6815558522a451a7fa10e8fb3f87d9538b4dd7b01a WHIRLPOOL 303c6427822272834e3d95ac94760f0fbaf3f2947a984a6770a9b2918fe0fbad289ef95fb9a8300cb6db08ab3ef0ff56810b3a60879c6a2a3eac524689f0a2f0 DIST notmuch-0.22.2.tar.gz 683796 SHA256 6cd19c61634079981b2d8f4b7cb4eb953cba2a36272520603682d813d2bd7ed1 SHA512 cc11feb8d1c2c7959a42e032c1e36e828290a8e8477af8936a27654117fbc2e080c71fe69ec92bd80763d9d3b163d45b7c0fa9fe9c4ec649600fa928110da4ee WHIRLPOOL 6aa41fa26a92a11393193b6f7e147b69de00f57fe712486805b2b7019d9bf9887d6d10962ef4144ca9ef07d6f63bbb1ddb2f7104c6eb89841285620d439743be DIST notmuch-0.23.3.tar.gz 691361 SHA256 0f5da5cf0203b774e345c50d56e975a87c2fc5407ef4ea284b6e2b55a8951882 SHA512 232a4133d70d074e6d38b00471145ecec342a5e138822cce01b6915e2b3de29fc1181e116d1df30e2fea04d519f53297fd8ea0e9d0df91bc8d6fce549feed1e3 WHIRLPOOL 82c30f3137132504ed41c42619c3645b74680d01a835e6074122b6ff3ab8d1a5dfe138a583872d09ea9f70a7312021fafa1bd2c08c3b6b9a319f55e5c81f28ff diff --git a/net-mail/notmuch/files/0.19-0001-doc-gzipped-notmuch.3-before-trying-to.patch b/net-mail/notmuch/files/0.19-0001-doc-gzipped-notmuch.3-before-trying-to.patch deleted file mode 100644 index 3890328f75ac..000000000000 --- a/net-mail/notmuch/files/0.19-0001-doc-gzipped-notmuch.3-before-trying-to.patch +++ /dev/null @@ -1,28 +0,0 @@ -From a95173249ae8811241da7640814934837abce53b Mon Sep 17 00:00:00 2001 -From: David Bremner <david@tethera.net> -Date: Sun, 25 Jan 2015 15:04:51 +0100 -Subject: [PATCH] doc: gzipped notmuch.3 before trying to install notmuch.3.gz - -If HAVE_SPHINX=0 but HAVE_DOXYGEN=1, then the previous version was -trying to install notmuch.3.gz but only got as far as creating -notmuch.3 ---- - doc/Makefile.local | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/doc/Makefile.local b/doc/Makefile.local -index e7d0bac..a719d8b 100644 ---- a/doc/Makefile.local -+++ b/doc/Makefile.local -@@ -63,7 +63,7 @@ install-man: install-apidocs - ifeq ($(HAVE_DOXYGEN),1) - MAN_GZIP_FILES += ${APIMAN}.gz - apidocs: $(APIMAN) --install-apidocs: apidocs -+install-apidocs: ${APIMAN}.gz - mkdir -p "$(DESTDIR)$(mandir)/man3" - install -m0644 $(DOCBUILDDIR)/man/man3/*.3.gz $(DESTDIR)/$(mandir)/man3 - --- -2.2.2 - diff --git a/net-mail/notmuch/files/0.19-0002-Rename-rst2man-to-rst2man.py-for-Gento.patch b/net-mail/notmuch/files/0.19-0002-Rename-rst2man-to-rst2man.py-for-Gento.patch deleted file mode 100644 index beda83ddff3f..000000000000 --- a/net-mail/notmuch/files/0.19-0002-Rename-rst2man-to-rst2man.py-for-Gento.patch +++ /dev/null @@ -1,38 +0,0 @@ -From dcae4803d006af1a7b961a492d65c28a3cffbc3c Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Amadeusz=20=C5=BBo=C5=82nowski?= <aidecoe@aidecoe.name> -Date: Thu, 29 Jan 2015 14:17:01 +0100 -Subject: [PATCH 2/2] Rename rst2man to rst2man.py for Gentoo - -Gentoo doesn't provide symlink rst2man.py -> rst2man. ---- - configure | 2 +- - doc/prerst2man.py | 2 +- - 2 files changed, 2 insertions(+), 2 deletions(-) - -diff --git a/configure b/configure -index d14e7d1..bf78066 100755 ---- a/configure -+++ b/configure -@@ -436,7 +436,7 @@ else - have_sphinx=0 - - printf "Checking if rst2man is available... " -- if rst2man -V > /dev/null 2>&1; then -+ if rst2man.py -V > /dev/null 2>&1; then - printf "Yes.\n" - have_rst2man=1 - else -diff --git a/doc/prerst2man.py b/doc/prerst2man.py -index 437dea9..22b8258 100644 ---- a/doc/prerst2man.py -+++ b/doc/prerst2man.py -@@ -59,5 +59,5 @@ for page in man_pages: - outfile.write("".join(lines)) - outfile.close() - -- system('set -x; rst2man {0} {1}/{2}.{3}' -+ system('set -x; rst2man.py {0} {1}/{2}.{3}' - .format(filename, outdir, page[0], page[4])) --- -2.2.2 - diff --git a/net-mail/notmuch/files/0.19-0003-build-eliminate-use-of-python-execfile.patch b/net-mail/notmuch/files/0.19-0003-build-eliminate-use-of-python-execfile.patch deleted file mode 100644 index 2eff9d63612d..000000000000 --- a/net-mail/notmuch/files/0.19-0003-build-eliminate-use-of-python-execfile.patch +++ /dev/null @@ -1,47 +0,0 @@ -From 381385ccb7581bb16b72c23fd804c40b0330fe71 Mon Sep 17 00:00:00 2001 -From: David Bremner <david@tethera.net> -Date: Sat, 3 Jan 2015 14:14:03 +0100 -Subject: [PATCH 3/3] build: eliminate use of python execfile command - -As discussed in -id:8cc9dd580ad672527e12f43706f9803b2c8e99d8.1405220724.git.wking@tremily.us, -execfile is unavailable in python3. - -The approach of this commit avoids modifying the python module path, -which is arguably preferable since it avoids potentially accidentally -importing a module from the wrong place. ---- - devel/release-checks.sh | 2 +- - doc/prerst2man.py | 3 ++- - 2 files changed, 3 insertions(+), 2 deletions(-) - -diff --git a/devel/release-checks.sh b/devel/release-checks.sh -index 797d62a..ae02f55 100755 ---- a/devel/release-checks.sh -+++ b/devel/release-checks.sh -@@ -130,7 +130,7 @@ else - fi - - echo -n "Checking that python bindings version is $VERSION... " --py_version=`python -c "execfile('$PV_FILE'); print __VERSION__"` -+py_version=`python -c "with open('$PV_FILE') as vf: exec(vf.read()); print __VERSION__"` - if [ "$py_version" = "$VERSION" ] - then - echo Yes. -diff --git a/doc/prerst2man.py b/doc/prerst2man.py -index 22b8258..45dddca 100644 ---- a/doc/prerst2man.py -+++ b/doc/prerst2man.py -@@ -10,7 +10,8 @@ outdir = argv[2] - if not isdir(outdir): - makedirs(outdir, 0o755) - --execfile(sourcedir + "/conf.py") -+with open(sourcedir + "/conf.py") as cf: -+ exec(cf.read()) - - - def header(file, startdocname, command, description, authors, section): --- -2.2.2 - diff --git a/net-mail/notmuch/notmuch-0.18.2.ebuild b/net-mail/notmuch/notmuch-0.18.2.ebuild deleted file mode 100644 index 7a9e6cac2f95..000000000000 --- a/net-mail/notmuch/notmuch-0.18.2.ebuild +++ /dev/null @@ -1,181 +0,0 @@ -# Copyright 1999-2016 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI=5 - -DISTUTILS_OPTIONAL=1 -PYTHON_COMPAT=( python{2_7,3_4} ) - -inherit bash-completion-r1 elisp-common eutils pax-utils distutils-r1 \ - toolchain-funcs - -DESCRIPTION="Thread-based e-mail indexer, supporting quick search and tagging" -HOMEPAGE="http://notmuchmail.org/" -SRC_URI="${HOMEPAGE%/}/releases/${P}.tar.gz" - -LICENSE="GPL-3" -# Sub-slot corresponds to major wersion of libnotmuch.so.X.Y. Bump of Y is -# meant to be binary backward compatible. -SLOT="0/3" -KEYWORDS="amd64 x86" -REQUIRED_USE=" - python? ( ${PYTHON_REQUIRED_USE} ) - test? ( crypt emacs python ) - " -IUSE="crypt debug doc emacs mutt nmbug python test" - -CDEPEND=" - >=app-shells/bash-completion-1.9 - >=dev-libs/glib-2.22 - >=dev-libs/gmime-2.6.7 - !=dev-libs/gmime-2.6.19 - <dev-libs/xapian-1.3 - >=sys-libs/zlib-1.2.5.2 - sys-libs/talloc - debug? ( dev-util/valgrind ) - emacs? ( >=virtual/emacs-23 ) - python? ( ${PYTHON_DEPS} ) - x86? ( >=dev-libs/xapian-1.2.7-r2 ) - " -DEPEND="${CDEPEND} - virtual/pkgconfig - doc? ( python? ( dev-python/sphinx[${PYTHON_USEDEP}] ) ) - test? ( app-misc/dtach || ( >=app-editors/emacs-23[libxml2] - >=app-editors/emacs-vcs-23[libxml2] ) sys-devel/gdb ) - " -RDEPEND="${CDEPEND} - crypt? ( app-crypt/gnupg ) - nmbug? ( dev-vcs/git virtual/perl-File-Temp virtual/perl-Pod-Parser ) - mutt? ( dev-perl/File-Which dev-perl/Mail-Box dev-perl/MailTools - dev-perl/String-ShellQuote dev-perl/Term-ReadLine-Gnu - virtual/perl-Digest-SHA virtual/perl-File-Path virtual/perl-Getopt-Long - virtual/perl-Pod-Parser - ) - " - -DOCS=( AUTHORS NEWS README ) -SITEFILE="50${PN}-gentoo.el" -MY_LD_LIBRARY_PATH="${WORKDIR}/${P}/lib" -MY_PATCHES=( ) - -bindings() { - local ret=0 - - if use $1; then - pushd bindings/$1 || die - shift - "$@" - ret=$? - popd || die - fi - - return $ret -} - -pkg_pretend() { - if has_version '<net-mail/notmuch-0.18'; then - ewarn - ewarn "Notmuch 0.18 comes with few not backward compatible changes." - ewarn "See NEWS file for details before first use!" - ewarn - fi -} - -pkg_setup() { - if use emacs; then - elisp-need-emacs 23 || die "Emacs version too low" - fi -} - -src_prepare() { - [[ "${MY_PATCHES[@]}" ]] && epatch "${MY_PATCHES[@]}" - - bindings python distutils-r1_src_prepare - bindings python mv README README-python || die - mv contrib/notmuch-mutt/README contrib/notmuch-mutt/README-mutt || die -} - -src_configure() { - local myeconfargs=( - --bashcompletiondir="$(get_bashcompdir)" - --emacslispdir="${EPREFIX}/${SITELISP}/${PN}" - --emacsetcdir="${EPREFIX}/${SITEETC}/${PN}" - --with-gmime-version=2.6 - --zshcompletiondir="${EPREFIX}/usr/share/zsh/site-functions" - $(use_with emacs) - ) - tc-export CC CXX - econf "${myeconfargs[@]}" -} - -src_compile() { - V=1 default - bindings python distutils-r1_src_compile - - if use mutt; then - pushd contrib/notmuch-mutt || die - emake notmuch-mutt.1 - popd || die - fi - - if use doc; then - pydocs() { - pushd docs || die - emake html - mv html ../python || die - popd || die - } - LD_LIBRARY_PATH="${MY_LD_LIBRARY_PATH}" bindings python pydocs - fi -} - -src_test() { - pax-mark -m notmuch - emake download-test-databases - LD_LIBRARY_PATH="${MY_LD_LIBRARY_PATH}" V=1 default - pax-mark -ze notmuch -} - -src_install() { - default - - if use emacs; then - elisp-site-file-install "${FILESDIR}/${SITEFILE}" || die - fi - - if use nmbug; then - dobin devel/nmbug/nmbug - dobin devel/nmbug/nmbug-status - fi - - if use mutt; then - pushd contrib/notmuch-mutt || die - dobin notmuch-mutt - doman notmuch-mutt.1 - insinto /etc/mutt - doins notmuch-mutt.rc - dodoc README-mutt - popd || die - fi - - DOCS="" bindings python distutils-r1_src_install - use doc && bindings python dohtml -r python -} - -pkg_preinst() { - if use mutt && ! [[ -e ${ROOT}/etc/mutt/notmuch-mutt.rc ]]; then - elog "To enable notmuch support in mutt, add the following line into" - elog "your mutt config file, please:" - elog "" - elog " source /etc/mutt/notmuch-mutt.rc" - fi -} - -pkg_postinst() { - use emacs && elisp-site-regen -} - -pkg_postrm() { - use emacs && elisp-site-regen -} diff --git a/net-mail/notmuch/notmuch-0.19-r1.ebuild b/net-mail/notmuch/notmuch-0.19-r1.ebuild deleted file mode 100644 index c31a9fa2cf5b..000000000000 --- a/net-mail/notmuch/notmuch-0.19-r1.ebuild +++ /dev/null @@ -1,196 +0,0 @@ -# Copyright 1999-2017 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI=5 - -DISTUTILS_OPTIONAL=1 -PYTHON_COMPAT=( python{2_7,3_4} ) - -inherit bash-completion-r1 elisp-common eutils flag-o-matic pax-utils \ - distutils-r1 toolchain-funcs - -DESCRIPTION="Thread-based e-mail indexer, supporting quick search and tagging" -HOMEPAGE="http://notmuchmail.org/" -SRC_URI="${HOMEPAGE%/}/releases/${P}.tar.gz" - -LICENSE="GPL-3" -# Sub-slot corresponds to major wersion of libnotmuch.so.X.Y. Bump of Y is -# meant to be binary backward compatible. -SLOT="0/4" -KEYWORDS="amd64 x86" -REQUIRED_USE=" - nmbug? ( python ) - python? ( ${PYTHON_REQUIRED_USE} ) - test? ( crypt debug emacs python ) - " -IUSE="crypt debug doc emacs mutt nmbug python test" - -CDEPEND=" - >=app-shells/bash-completion-1.9 - >=dev-libs/glib-2.22 - >=dev-libs/gmime-2.6.7 - !=dev-libs/gmime-2.6.19 - <dev-libs/xapian-1.3 - >=sys-libs/zlib-1.2.5.2 - sys-libs/talloc - debug? ( dev-util/valgrind ) - emacs? ( >=virtual/emacs-23 ) - python? ( ${PYTHON_DEPS} ) - x86? ( >=dev-libs/xapian-1.2.7-r2 ) - " -DEPEND="${CDEPEND} - virtual/pkgconfig - doc? ( app-doc/doxygen - python? ( dev-python/sphinx[${PYTHON_USEDEP}] ) ) - test? ( app-misc/dtach || ( >=app-editors/emacs-23[libxml2] - >=app-editors/emacs-vcs-23[libxml2] ) sys-devel/gdb ) - " -RDEPEND="${CDEPEND} - crypt? ( app-crypt/gnupg ) - nmbug? ( dev-vcs/git ) - mutt? ( dev-perl/File-Which dev-perl/Mail-Box dev-perl/MailTools - dev-perl/String-ShellQuote dev-perl/Term-ReadLine-Gnu - virtual/perl-Digest-SHA virtual/perl-File-Path virtual/perl-Getopt-Long - virtual/perl-Pod-Parser - ) - " - -DOCS=( AUTHORS NEWS README ) -SITEFILE="50${PN}-gentoo.el" -MY_LD_LIBRARY_PATH="${WORKDIR}/${P}/lib" -MY_PATCHES=( - "${FILESDIR}/${PV}-0001-doc-gzipped-notmuch.3-before-trying-to.patch" - "${FILESDIR}/${PV}-0002-Rename-rst2man-to-rst2man.py-for-Gento.patch" - "${FILESDIR}/${PV}-0003-build-eliminate-use-of-python-execfile.patch" - ) - -bindings() { - local ret=0 - - if use $1; then - pushd bindings/$1 || die - shift - "$@" - ret=$? - popd || die - fi - - return $ret -} - -pkg_pretend() { - if has_version '<net-mail/notmuch-0.18'; then - ewarn - ewarn "There are few not backward compatible changes between" - ewarn "<notmuch-0.18 and >=notmuch-0.18. See NEWS file" - ewarn "(0.18 section) for details before first use!" - ewarn - fi -} - -pkg_setup() { - if use emacs; then - elisp-need-emacs 23 || die "Emacs version too low" - fi -} - -src_prepare() { - [[ "${MY_PATCHES[@]}" ]] && epatch "${MY_PATCHES[@]}" - - bindings python distutils-r1_src_prepare - bindings python mv README README-python || die - mv contrib/notmuch-mutt/README contrib/notmuch-mutt/README-mutt || die - - # assure that new Makefile.config will be generated - rm -f Makefile.config || die - - if use debug; then - append-cflags -g - append-cxxflags -g - fi -} - -src_configure() { - local myeconfargs=( - --bashcompletiondir="$(get_bashcompdir)" - --emacslispdir="${EPREFIX}/${SITELISP}/${PN}" - --emacsetcdir="${EPREFIX}/${SITEETC}/${PN}" - --with-gmime-version=2.6 - --zshcompletiondir="${EPREFIX}/usr/share/zsh/site-functions" - $(use_with emacs) - ) - tc-export CC CXX - econf "${myeconfargs[@]}" -} - -src_compile() { - V=1 default - bindings python distutils-r1_src_compile - - if use mutt; then - pushd contrib/notmuch-mutt || die - emake notmuch-mutt.1 - popd || die - fi - - if use doc; then - pydocs() { - pushd docs || die - emake html - mv html ../python || die - popd || die - } - LD_LIBRARY_PATH="${MY_LD_LIBRARY_PATH}" bindings python pydocs - fi -} - -src_test() { - pax-mark -m notmuch - emake download-test-databases - LD_LIBRARY_PATH="${MY_LD_LIBRARY_PATH}" V=1 default - pax-mark -ze notmuch -} - -src_install() { - default - - if use emacs; then - elisp-site-file-install "${FILESDIR}/${SITEFILE}" || die - fi - - if use nmbug; then - dobin devel/nmbug/nmbug - dobin devel/nmbug/nmbug-status - fi - - if use mutt; then - pushd contrib/notmuch-mutt || die - dobin notmuch-mutt - doman notmuch-mutt.1 - insinto /etc/mutt - doins notmuch-mutt.rc - dodoc README-mutt - popd || die - fi - - DOCS="" bindings python distutils-r1_src_install - use doc && bindings python dohtml -r python -} - -pkg_preinst() { - if use mutt && ! [[ -e ${ROOT}/etc/mutt/notmuch-mutt.rc ]]; then - elog "To enable notmuch support in mutt, add the following line into" - elog "your mutt config file, please:" - elog "" - elog " source /etc/mutt/notmuch-mutt.rc" - fi -} - -pkg_postinst() { - use emacs && elisp-site-regen -} - -pkg_postrm() { - use emacs && elisp-site-regen -} diff --git a/net-mail/notmuch/notmuch-0.20.2.ebuild b/net-mail/notmuch/notmuch-0.20.2.ebuild deleted file mode 100644 index 66ecf2e81c69..000000000000 --- a/net-mail/notmuch/notmuch-0.20.2.ebuild +++ /dev/null @@ -1,192 +0,0 @@ -# Copyright 1999-2017 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI=5 - -DISTUTILS_OPTIONAL=1 -PYTHON_COMPAT=( python{2_7,3_4} ) - -inherit bash-completion-r1 elisp-common eutils flag-o-matic pax-utils \ - distutils-r1 toolchain-funcs - -DESCRIPTION="Thread-based e-mail indexer, supporting quick search and tagging" -HOMEPAGE="http://notmuchmail.org/" -SRC_URI="${HOMEPAGE%/}/releases/${P}.tar.gz" - -LICENSE="GPL-3" -# Sub-slot corresponds to major wersion of libnotmuch.so.X.Y. Bump of Y is -# meant to be binary backward compatible. -SLOT="0/4" -KEYWORDS="amd64 x86" -REQUIRED_USE=" - nmbug? ( python ) - python? ( ${PYTHON_REQUIRED_USE} ) - test? ( crypt debug emacs python ) - " -IUSE="crypt debug doc emacs mutt nmbug python test" - -CDEPEND=" - >=app-shells/bash-completion-1.9 - >=dev-libs/glib-2.22 - >=dev-libs/gmime-2.6.7 - !=dev-libs/gmime-2.6.19 - <dev-libs/xapian-1.3 - dev-python/sphinx[${PYTHON_USEDEP}] - >=sys-libs/zlib-1.2.5.2 - sys-libs/talloc - debug? ( dev-util/valgrind ) - emacs? ( >=virtual/emacs-23 ) - python? ( ${PYTHON_DEPS} ) - x86? ( >=dev-libs/xapian-1.2.7-r2 ) - " -DEPEND="${CDEPEND} - virtual/pkgconfig - doc? ( app-doc/doxygen ) - test? ( app-misc/dtach || ( >=app-editors/emacs-23[libxml2] - >=app-editors/emacs-vcs-23[libxml2] ) sys-devel/gdb ) - " -RDEPEND="${CDEPEND} - crypt? ( app-crypt/gnupg ) - nmbug? ( dev-vcs/git ) - mutt? ( dev-perl/File-Which dev-perl/Mail-Box dev-perl/MailTools - dev-perl/String-ShellQuote dev-perl/Term-ReadLine-Gnu - virtual/perl-Digest-SHA virtual/perl-File-Path virtual/perl-Getopt-Long - virtual/perl-Pod-Parser - ) - " - -DOCS=( AUTHORS NEWS README ) -SITEFILE="50${PN}-gentoo.el" -MY_LD_LIBRARY_PATH="${WORKDIR}/${P}/lib" -MY_PATCHES=( ) - -bindings() { - local ret=0 - - if use $1; then - pushd bindings/$1 || die - shift - "$@" - ret=$? - popd || die - fi - - return $ret -} - -pkg_pretend() { - if has_version '<net-mail/notmuch-0.18'; then - ewarn - ewarn "There are few not backward compatible changes between" - ewarn "<notmuch-0.18 and >=notmuch-0.18. See NEWS file" - ewarn "(0.18 section) for details before first use!" - ewarn - fi -} - -pkg_setup() { - if use emacs; then - elisp-need-emacs 23 || die "Emacs version too low" - fi -} - -src_prepare() { - [[ "${MY_PATCHES[@]}" ]] && epatch "${MY_PATCHES[@]}" - - bindings python distutils-r1_src_prepare - bindings python mv README README-python || die - mv contrib/notmuch-mutt/README contrib/notmuch-mutt/README-mutt || die - - # assure that new Makefile.config will be generated - rm -f Makefile.config || die - - if use debug; then - append-cflags -g - append-cxxflags -g - fi -} - -src_configure() { - local myeconfargs=( - --bashcompletiondir="$(get_bashcompdir)" - --emacslispdir="${EPREFIX}/${SITELISP}/${PN}" - --emacsetcdir="${EPREFIX}/${SITEETC}/${PN}" - --with-gmime-version=2.6 - --zshcompletiondir="${EPREFIX}/usr/share/zsh/site-functions" - $(use_with emacs) - ) - tc-export CC CXX - econf "${myeconfargs[@]}" -} - -src_compile() { - V=1 default - bindings python distutils-r1_src_compile - - if use mutt; then - pushd contrib/notmuch-mutt || die - emake notmuch-mutt.1 - popd || die - fi - - if use doc; then - pydocs() { - pushd docs || die - emake html - mv html ../python || die - popd || die - } - LD_LIBRARY_PATH="${MY_LD_LIBRARY_PATH}" bindings python pydocs - fi -} - -src_test() { - pax-mark -m notmuch - emake download-test-databases - LD_LIBRARY_PATH="${MY_LD_LIBRARY_PATH}" V=1 default - pax-mark -ze notmuch -} - -src_install() { - default - - if use emacs; then - elisp-site-file-install "${FILESDIR}/${SITEFILE}" || die - fi - - if use nmbug; then - dobin devel/nmbug/nmbug - dobin devel/nmbug/nmbug-status - fi - - if use mutt; then - pushd contrib/notmuch-mutt || die - dobin notmuch-mutt - doman notmuch-mutt.1 - insinto /etc/mutt - doins notmuch-mutt.rc - dodoc README-mutt - popd || die - fi - - DOCS="" bindings python distutils-r1_src_install - use doc && bindings python dohtml -r python -} - -pkg_preinst() { - if use mutt && ! [[ -e ${ROOT}/etc/mutt/notmuch-mutt.rc ]]; then - elog "To enable notmuch support in mutt, add the following line into" - elog "your mutt config file, please:" - elog "" - elog " source /etc/mutt/notmuch-mutt.rc" - fi -} - -pkg_postinst() { - use emacs && elisp-site-regen -} - -pkg_postrm() { - use emacs && elisp-site-regen -} |