diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-11-10 00:43:02 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-11-10 00:43:02 +0000 |
commit | a5332b59346f7cbf0fdbd148b54aa8a84aaf8190 (patch) | |
tree | e6d8d3589fcd01fbc3f1286185639163daa81424 /net-mail/notmuch | |
parent | fceeaf01a28ee71065cf3798b70b77d3bc4ef199 (diff) |
gentoo resync : 10.11.2017
Diffstat (limited to 'net-mail/notmuch')
-rw-r--r-- | net-mail/notmuch/Manifest | 2 | ||||
-rw-r--r-- | net-mail/notmuch/notmuch-0.25.2.ebuild | 208 |
2 files changed, 210 insertions, 0 deletions
diff --git a/net-mail/notmuch/Manifest b/net-mail/notmuch/Manifest index 3ab63a44f3ed..c2f91e096661 100644 --- a/net-mail/notmuch/Manifest +++ b/net-mail/notmuch/Manifest @@ -3,10 +3,12 @@ DIST database-v1.tar.xz 204876 SHA256 4299e051b10e1fa7b33ea2862790a09ebfe9685968 DIST notmuch-0.23.7.tar.gz 692230 SHA256 f11bb10d71945f6c3f16d23117afc70810aa485878e66bb4bf43cc3f08038913 SHA512 e71da3bd6ce1b344aae79b277b695a4668d4fe1b8838618d6970a0b27df9867bac66a3240473ef31fc30ed8af2b0a558203ed5ffb34da873c991b1ecc6c08522 WHIRLPOOL 0b14cd6fb2b584b27b7893bb9c45724725069a6bc980cfe52f80ec3f6ec95c3a8f631975875f44b46b2799d5a0c31a62ff845b2400b7389cd8aa6f55361a0851 DIST notmuch-0.24.2.tar.gz 709272 SHA256 aa76a96684d5c5918d940182b6fe40f7d6745f144476fdda57388479d586cc51 SHA512 fcdc4ad5a65c57dd3077d93aeb384378f8dee105362fa8c2755daf14bbeb5376f8d1580fd79c8bd8e8d2d88cd44846ca9972b2f942133a447eb99d08ef9056dc WHIRLPOOL 679094ca2bd57a3b2f0f4ae5f2022c8bd1922e55fb095780b67de13c75758b4daa5892843e187405f294ed406ce47922bd6b854759984c5518bad8dc058236a6 DIST notmuch-0.25.1.tar.gz 882141 SHA256 b4bf09ec9b7b64180704faa26d66cad5f911a5a00ef812da34cb02c3f8872831 SHA512 989acc5eda7d2f9512741c8ae850e34c6fbbdd5fa5fa23f25a6096250d414919007c5cfda68d6f48606c0a024692e082a28cb358e6d3fc2afc0502b5bcbf5f54 WHIRLPOOL 391d0bc17e55967ed6e4c2d9a7876eea93e992b190e083343e488c153697053284cee8d01687c0a23e1063de29d933f358acb6bc723c3307eeb01706e920f79b +DIST notmuch-0.25.2.tar.gz 882672 SHA256 e4b6ba9d4016b10249a4acc24e063d23e0c52ed6f8c1cbe4f98e7f9ef4da262a SHA512 5ee7bded69cbcc980e23f1e1562bf0cc9294c20bddcc3e442030c4f29373ecbbaef79144ad38470bfc97dac87f8dfb3bc7aee2d7eb974f6998f933369aa46006 WHIRLPOOL 4ceda3a3424f1d3dcf298883fab2f6b5449fbc75a81dcff8d267c6d0ceddf048c7e2568f922ff70f6786a86e50c3dc531f46baaf71adc120abbc9c39f7b20a39 DIST notmuch-0.25.tar.gz 882093 SHA256 65d28d1f783d02629039f7d15d9a2bada147a7d3809f86fe8d13861b0f6ae60b SHA512 5f4961818c8c0350e3fbbedd86f407a55fecf211971003a770d99ea2db89bb6b98c2294e114d6abff4d40985f506b7f4b52736a7ee5c78390eb4f2363a65c6f5 WHIRLPOOL 94ec2cb30c92b8c88da9b66f2a8afa7c01977671cdc018113a1716414a8555a9bec7d77b933df6dd4c3c339e3a2dfd46319f86725f1b84b608e7066c60b91f1c EBUILD notmuch-0.23.7.ebuild 4581 SHA256 f13f26ec138064e0d0c47bc1e6fb1ef88b8b8010f75c1e2f5130d3f9368289ac SHA512 005d76df24ebfb59fd13179db01ce00f0281e02af04a73ccb9b4504c7b9a37e765a6a521d56b7507c80d47365eb92a98d5c53a04081b5ff497e44568444ac243 WHIRLPOOL ff52919b393837a634bff35fb16e39f0d8631f309db70752088ae8f6a74e0f70c8c4df283c884ca719baa1e79d2aa939613bcd7013e12673761b71623b886b82 EBUILD notmuch-0.24.2.ebuild 4769 SHA256 df06ba75b6857bc20b4fe6009f8981133a18e7cda8a53093c403a2239c8302bf SHA512 8d671d77b214e2476c7df568e15cbabd3767a4872c48b178b76680dd4dd58f364be9d9ce0b3a27058896a0bba846e8b3eec8664841e387512fff299623664781 WHIRLPOOL 981b325a7505ac842e12f69bbda9a11cd3e0dad647ceb1186085409390266421e430845cef4069f89d1dad60bdd07adb1b388c830ef0460a9e98678f306aa185 EBUILD notmuch-0.25.1.ebuild 4771 SHA256 258f9216fbecf00a261244176c53a3a5898e395d2fd1f5e9a5aca5355913b7bc SHA512 489356e9dd86490664d923721391390c7eeda813237d88a28cf9cf84202f853a7b8bece856e47d25cefbd567734e7e04cf828105045c4a86c17d85f6c7262a21 WHIRLPOOL 15b48892dfce788e03e9e0c0c5da923bf0b6f2914567a365eaa71c0723094fdf00fba2342be4bcbe47776db458fc4b74e82d51570c24c24345b991e98cc5fd0c +EBUILD notmuch-0.25.2.ebuild 4848 SHA256 430392ad598a89f447ec77c58c31f5119d60fff4539f8bf58ab65f962cf6f62d SHA512 e51a6342a6507fb1bcd1625d24652bab92840afe89575d574a5ebbe733a81b458a1119f210cf25384436bfd50df5eba69e26f3347b70d7068efd0d2e35400629 WHIRLPOOL 48bdf626e9378fd41e4c56dfd503ccc6db479c096d7247b13e1274dc256788bcb576e384256e0f15ea115fe1efc7c0c31d4d31f21104ce2b753290a4d1dc30c6 EBUILD notmuch-0.25.ebuild 4848 SHA256 430392ad598a89f447ec77c58c31f5119d60fff4539f8bf58ab65f962cf6f62d SHA512 e51a6342a6507fb1bcd1625d24652bab92840afe89575d574a5ebbe733a81b458a1119f210cf25384436bfd50df5eba69e26f3347b70d7068efd0d2e35400629 WHIRLPOOL 48bdf626e9378fd41e4c56dfd503ccc6db479c096d7247b13e1274dc256788bcb576e384256e0f15ea115fe1efc7c0c31d4d31f21104ce2b753290a4d1dc30c6 MISC ChangeLog 10651 SHA256 faca6ac21134429e6c54b3fa502dae96f817f6b9bab5294ee0d2b5c29ced4194 SHA512 874bcb5c28f9e272669a84625a9243b4da23aeb4ca9178b2e482d291c507485fea581fd392e786c2696183238bc567d423bb117e45673ba0455903a0bb811275 WHIRLPOOL ced47134beac267e59b367473f35529bc98f3179d04b4e49a8dd1c92d36801ce66fbf9b9f3f8c8a0ea4bd5057416ddcd98c68b771a73f8b5fe5d058c411fc481 MISC ChangeLog-2015 35051 SHA256 2d59738e71e8f4275c93c7c9f40c5bfaee5119d8b9b90ec6e986a5347616d308 SHA512 40bf45e0e9265a2298d54fe2c7bcbeadb4deb0659613b6c694416e802f41f42e965040a929fc8c88efec15e37a6a0b556fff04d6c88c4e43e3bd5c1d785a0b67 WHIRLPOOL 4c036cf3e69564985c2eff55a1147eea26698d45749a153ca5b6648ebef66c606eff5ac57d87d300654f23cd865b9d5da53ca260c640d345c332d0c524067191 diff --git a/net-mail/notmuch/notmuch-0.25.2.ebuild b/net-mail/notmuch/notmuch-0.25.2.ebuild new file mode 100644 index 000000000000..5c7f9d0860ec --- /dev/null +++ b/net-mail/notmuch/notmuch-0.25.2.ebuild @@ -0,0 +1,208 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +DISTUTILS_OPTIONAL=1 +PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} ) + +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 + test? ( ${HOMEPAGE%/}/releases/test-databases/database-v1.tar.xz )" + +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/5" +KEYWORDS="~alpha ~amd64 ~x86 ~x64-solaris" +REQUIRED_USE=" + nmbug? ( python ) + python? ( ${PYTHON_REQUIRED_USE} ) + test? ( crypt emacs python valgrind ) + " +IUSE="crypt doc emacs mutt nmbug python test valgrind" + +CDEPEND=" + !!<app-shells/bash-completion-1.9 + >=dev-libs/glib-2.22:2 + >=dev-libs/gmime-2.6.20-r2:2.6 + >=dev-libs/xapian-1.2.7-r2:= + dev-python/sphinx[${PYTHON_USEDEP}] + >=sys-libs/zlib-1.2.5.2 + sys-libs/talloc + crypt? ( >=dev-libs/gmime-2.6.20-r2:2.6[smime] ) + emacs? ( >=virtual/emacs-23 ) + python? ( ${PYTHON_DEPS} ) + " +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 + crypt? ( app-crypt/gnupg dev-libs/openssl ) ) + valgrind? ( dev-util/valgrind ) + " +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" + +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_unpack() { + unpack "${P}".tar.gz + if use test; then + mkdir -p "${S}"/test/test-databases || die + cp "${DISTDIR}"/database-v1.tar.xz "${S}"/test/test-databases/ || die + fi +} + +src_prepare() { + default + + 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 test; then + append-cflags -g + append-cxxflags -g + fi + + [[ ${CHOST} == *-solaris* ]] && append-ldflags -lnsl -lsocket +} + +src_configure() { + local myeconfargs=( + --bashcompletiondir="$(get_bashcompdir)" + --emacslispdir="${EPREFIX}/${SITELISP}/${PN}" + --emacsetcdir="${EPREFIX}/${SITEETC}/${PN}" + --without-desktop + --without-ruby + --zshcompletiondir="${EPREFIX}/usr/share/zsh/site-functions" + $(use_with emacs) + $(use_with doc api-docs) + ) + 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 + rm -r html/_sources || die + rm html/{objects.inv,.buildinfo} || die + mkdir -p ../html && mv html ../html/python || die + popd || die + } + LD_LIBRARY_PATH="${MY_LD_LIBRARY_PATH}" bindings python pydocs + fi +} + +src_test() { + pax-mark -m notmuch + 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/notmuch-report + 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 dodoc -r html +} + +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 + + if has_version '<dev-libs/xapian-1.4'; then + elog "Regular expression searches supported for from: and subject:" + elog "require >=dev-libs/xapian-1.4." + fi +} + +pkg_postrm() { + use emacs && elisp-site-regen +} |