forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mail-filter/afew: version bump 3.0.1
Closes: https://bugs.gentoo.org/739436 Package-Manager: Portage-2.3.103, Repoman-2.3.23 Signed-off-by: Guillaume Seren <[email protected]> Signed-off-by: Sam James <[email protected]>
- Loading branch information
1 parent
4acc40c
commit dc33cf1
Showing
2 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# Copyright 1999-2020 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=7 | ||
|
||
DISTUTILS_SINGLE_IMPL=1 | ||
DISTUTILS_USE_SETUPTOOLS=rdepend | ||
PYTHON_COMPAT=( python3_{6,7,8} ) | ||
|
||
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="doc" | ||
|
||
RDEPEND=" | ||
$(python_gen_cond_dep ' | ||
dev-python/chardet[${PYTHON_MULTI_USEDEP}] | ||
dev-python/dkimpy[${PYTHON_MULTI_USEDEP}] | ||
net-mail/notmuch[python,${PYTHON_MULTI_USEDEP}] | ||
')" | ||
DEPEND=" | ||
$(python_gen_cond_dep ' | ||
dev-python/sphinx[${PYTHON_MULTI_USEDEP}] | ||
')" | ||
|
||
DOCS=( "README.rst" ) | ||
|
||
python_prepare_all() { | ||
sed -r \ | ||
-e "s/^([[:space:]]+)use_scm_version=.*,$/\1version='${PV}',/" \ | ||
-e "/^([[:space:]]+)setup_requires=.*,$/d" \ | ||
-i setup.py || die | ||
distutils-r1_python_prepare_all | ||
} | ||
|
||
python_compile_all() { | ||
esetup.py build_sphinx -b man --build-dir=docs/build | ||
use doc && esetup.py build_sphinx -b html --build-dir=docs/build | ||
} | ||
|
||
python_install_all() { | ||
doman docs/build/man/* | ||
dodoc afew/defaults/afew.config | ||
use doc && HTML_DOCS=( docs/build/html/. ) | ||
einstalldocs | ||
} |