mail-filter/afew: Add new package
authorAmadeusz Żołnowski <aidecoe@gentoo.org>
Thu, 3 Aug 2017 22:20:27 +0000 (23:20 +0100)
committerAmadeusz Żołnowski <aidecoe@gentoo.org>
Fri, 4 Aug 2017 21:34:12 +0000 (22:34 +0100)
Gentoo-Bug: 404077
Package-Manager: Portage-2.3.6, Repoman-2.3.3

mail-filter/afew/Manifest [new file with mode: 0644]
mail-filter/afew/afew-1.1.0.ebuild [new file with mode: 0644]
mail-filter/afew/metadata.xml [new file with mode: 0644]

diff --git a/mail-filter/afew/Manifest b/mail-filter/afew/Manifest
new file mode 100644 (file)
index 0000000..c5c0c48
--- /dev/null
@@ -0,0 +1 @@
+DIST afew-1.1.0.tar.gz 31119 SHA256 07bffe3263b97acc862bc75e43d0bbc80982de5f6139be91610f0ef2996977b8 SHA512 4f3c7234b15184b03264763cd271503cc8e49d9698169744718f17d6c4af9674bb50e592b23875991f9b1671b40dbea960a0e6153fa731aee92d4d1bd5c4548f WHIRLPOOL 6359122490c81607432a36a8475ce919f66c9201962e4706f592683f97d1562910092e55417c0cfdafb8ae2a9b61da32ba6d11a70cc931b052cae433c8ae4c4e
diff --git a/mail-filter/afew/afew-1.1.0.ebuild b/mail-filter/afew/afew-1.1.0.ebuild
new file mode 100644 (file)
index 0000000..056d207
--- /dev/null
@@ -0,0 +1,37 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DISTUTILS_SINGLE_IMPL=1
+PYTHON_COMPAT=( python{3_4,3_5,3_6} )
+
+inherit distutils-r1
+
+DESCRIPTION="Initial tagging script for Notmuch"
+HOMEPAGE="https://github.com/afewmail/afew"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="ISC"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
+RDEPEND="dev-python/chardet[${PYTHON_USEDEP}]
+       net-mail/notmuch[python,${PYTHON_USEDEP}]"
+
+DOCS=( "README.rst" )
+
+src_prepare() {
+       sed -r \
+               -e "s/^([[:space:]]+)use_scm_version=.*,$/\1version='${PV}',/" \
+               -e "/^([[:space:]]+)setup_requires=.*,$/d" \
+               -i setup.py || die
+       distutils-r1_src_prepare
+}
+
+src_install() {
+       distutils-r1_src_install
+       dodoc afew/defaults/afew.config
+}
diff --git a/mail-filter/afew/metadata.xml b/mail-filter/afew/metadata.xml
new file mode 100644 (file)
index 0000000..cf80ebd
--- /dev/null
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+       <maintainer type="person">
+               <email>aidecoe@gentoo.org</email>
+               <name>Amadeusz Żołnowski</name>
+       </maintainer>
+       <longdescription lang="en">
+               afew is an initial tagging script for Notmuch.  Its basic task is to
+               provide automatic tagging each time new mail is registered with Notmuch.
+
+               In addition to more elementary features such as adding tags based on
+               e-mail headers or maildir folders, handling killed threads and spam, it
+               can do some heavy magic in order to learn how to initially tag your
+               mails based on their content.
+
+               In move mode, afew will move mails between maildir folders according to
+               configurable rules that can contain arbitrary notmuch queries to match
+               against any searchable attributes.
+       </longdescription>
+</pkgmetadata>
+