summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmadeusz Żołnowski <aidecoe@gentoo.org>2017-08-03 23:20:27 +0100
committerAmadeusz Żołnowski <aidecoe@gentoo.org>2017-08-04 22:34:12 +0100
commit09d0f75ba1cf9b8195b0d34739f943da692666e8 (patch)
tree8181413ec2446b7a864d2101ba2102da31763359 /mail-filter
parentxfce-extra/xfce4-windowck-plugin: Shorter DESCRIPTION (diff)
downloadgentoo-09d0f75ba1cf9b8195b0d34739f943da692666e8.tar.gz
gentoo-09d0f75ba1cf9b8195b0d34739f943da692666e8.tar.bz2
gentoo-09d0f75ba1cf9b8195b0d34739f943da692666e8.zip
mail-filter/afew: Add new package
Gentoo-Bug: 404077 Package-Manager: Portage-2.3.6, Repoman-2.3.3
Diffstat (limited to 'mail-filter')
-rw-r--r--mail-filter/afew/Manifest1
-rw-r--r--mail-filter/afew/afew-1.1.0.ebuild37
-rw-r--r--mail-filter/afew/metadata.xml22
3 files changed, 60 insertions, 0 deletions
diff --git a/mail-filter/afew/Manifest b/mail-filter/afew/Manifest
new file mode 100644
index 000000000000..c5c0c4899510
--- /dev/null
+++ b/mail-filter/afew/Manifest
@@ -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
index 000000000000..056d2071a9bc
--- /dev/null
+++ b/mail-filter/afew/afew-1.1.0.ebuild
@@ -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
index 000000000000..cf80ebdd8a77
--- /dev/null
+++ b/mail-filter/afew/metadata.xml
@@ -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>
+