From: "Justin Lecher" <jlec@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/python-levenshtein/
Date: Tue, 9 Feb 2016 12:19:26 +0000 (UTC) [thread overview]
Message-ID: <1455020361.99eaf7fb21765a3a7c16293348edc0ec69c03fa4.jlec@gentoo> (raw)
commit: 99eaf7fb21765a3a7c16293348edc0ec69c03fa4
Author: Justin Lecher <jlec <AT> gentoo <DOT> org>
AuthorDate: Tue Feb 9 11:07:52 2016 +0000
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Tue Feb 9 12:19:21 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=99eaf7fb
dev-python/python-levenshtein: properly build docs
Chop DESCRIPTION to 80 chars
Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=574230
Package-Manager: portage-2.2.27
Signed-off-by: Justin Lecher <jlec <AT> gentoo.org>
.../python-levenshtein-0.11.2.ebuild | 23 ++++++++++++---------
.../python-levenshtein-0.12.0.ebuild | 24 +++++++++++++---------
2 files changed, 27 insertions(+), 20 deletions(-)
diff --git a/dev-python/python-levenshtein/python-levenshtein-0.11.2.ebuild b/dev-python/python-levenshtein/python-levenshtein-0.11.2.ebuild
index ff974da..186d265 100644
--- a/dev-python/python-levenshtein/python-levenshtein-0.11.2.ebuild
+++ b/dev-python/python-levenshtein/python-levenshtein-0.11.2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
@@ -10,8 +10,9 @@ inherit distutils-r1
MY_PN="python-Levenshtein"
MY_P="${MY_PN}-${PV}"
-DESCRIPTION="Functions for fast computation of Levenshtein (edit) distance, and edit operations"
-HOMEPAGE="https://github.com/miohtama/python-Levenshtein/tree/
+DESCRIPTION="Functions for fast computation of Levenshtein distance, and edit operations"
+HOMEPAGE="
+ https://github.com/miohtama/python-Levenshtein/tree/
https://pypi.python.org/pypi/python-Levenshtein/"
SRC_URI="mirror://pypi/${PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
@@ -20,20 +21,22 @@ SLOT="0"
KEYWORDS="amd64 ia64 x86"
IUSE="doc"
+REQUIRED_USE="doc? ( || ( $(python_gen_useflags 'python2*' pypy) ) )"
+
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
RDEPEND=""
S="${WORKDIR}/${MY_P}"
+pkg_setup() {
+ use doc && DISTUTILS_ALL_SUBPHASE_IMPLS=( 'python2*' pypy )
+}
+
python_compile_all() {
if use doc; then
- # Cannot assume user has a system py2 or pypy
- if python_is_python3; then
- die "The build of Levenshtein.html is not supported by python3"
- else
- einfo "Generation of documentation"
- "${PYTHON}" "${FILESDIR}/genextdoc.py" Levenshtein || die "Generation of documentation failed"
- fi
+ einfo "Generation of documentation"
+ "${PYTHON}" "${FILESDIR}/genextdoc.py" Levenshtein \
+ || die "Generation of documentation failed"
fi
}
diff --git a/dev-python/python-levenshtein/python-levenshtein-0.12.0.ebuild b/dev-python/python-levenshtein/python-levenshtein-0.12.0.ebuild
index d25b40f..e878494 100644
--- a/dev-python/python-levenshtein/python-levenshtein-0.12.0.ebuild
+++ b/dev-python/python-levenshtein/python-levenshtein-0.12.0.ebuild
@@ -1,8 +1,9 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
+
PYTHON_COMPAT=( python{2_7,3_3,3_4} pypy )
inherit distutils-r1
@@ -10,8 +11,9 @@ inherit distutils-r1
MY_PN="python-Levenshtein"
MY_P="${MY_PN}-${PV}"
-DESCRIPTION="Functions for fast computation of Levenshtein (edit) distance, and edit operations"
-HOMEPAGE="https://github.com/miohtama/python-Levenshtein/tree/
+DESCRIPTION="Functions for fast computation of Levenshtein distance, and edit operations"
+HOMEPAGE="
+ https://github.com/miohtama/python-Levenshtein/tree/
https://pypi.python.org/pypi/python-Levenshtein/"
SRC_URI="mirror://pypi/${PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
@@ -20,20 +22,22 @@ SLOT="0"
KEYWORDS="~amd64 ~ia64 ~x86"
IUSE="doc"
+REQUIRED_USE="doc? ( || ( $(python_gen_useflags 'python2*' pypy) ) )"
+
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
RDEPEND=""
S="${WORKDIR}/${MY_P}"
+pkg_setup() {
+ use doc && DISTUTILS_ALL_SUBPHASE_IMPLS=( 'python2*' pypy )
+}
+
python_compile_all() {
if use doc; then
- # Cannot assume user has a system py2 or pypy
- if python_is_python3; then
- die "The build of Levenshtein.html is not supported by python3"
- else
- einfo "Generation of documentation"
- "${PYTHON}" "${FILESDIR}/genextdoc.py" Levenshtein || die "Generation of documentation failed"
- fi
+ einfo "Generation of documentation"
+ "${PYTHON}" "${FILESDIR}/genextdoc.py" Levenshtein \
+ || die "Generation of documentation failed"
fi
}
next reply other threads:[~2016-02-09 12:19 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-09 12:19 Justin Lecher [this message]
-- strict thread matches above, loose matches on Subject: below --
2016-02-09 12:19 [gentoo-commits] repo/gentoo:master commit in: dev-python/python-levenshtein/ Justin Lecher
2016-10-21 21:40 David Seifert
2016-12-18 15:44 Agostino Sarubbo
2016-12-18 15:57 Agostino Sarubbo
2017-04-28 15:55 Manuel Rüger
2017-09-03 1:04 Mike Gilbert
2019-03-11 21:03 Andreas Sturmlechner
2019-04-27 14:46 Andreas Sturmlechner
2019-07-29 20:02 Aaron Bauman
2019-11-20 23:31 Andreas Sturmlechner
2019-11-20 23:31 Andreas Sturmlechner
2020-02-05 20:47 Michał Górny
2020-02-06 1:34 Patrick McLean
2020-10-11 21:33 Andreas Sturmlechner
2021-01-18 15:34 Sam James
2021-01-22 16:53 Agostino Sarubbo
2021-01-22 18:43 Sam James
2021-01-24 19:50 Michał Górny
2021-02-09 21:37 Sam James
2021-06-24 15:07 Sergei Trofimovich
2021-07-08 7:09 Sergei Trofimovich
2021-08-23 7:11 Arthur Zamarin
2021-09-10 1:27 Sam James
2021-09-14 1:30 Yixun Lan
2021-10-16 1:12 Sam James
2021-10-16 1:14 Sam James
2021-10-16 5:19 Sam James
2021-10-17 19:09 Sam James
2021-10-17 19:25 Arthur Zamarin
2021-11-15 16:29 Agostino Sarubbo
2021-11-18 10:50 Sam James
2021-11-19 11:39 Arthur Zamarin
2022-02-07 20:14 Arthur Zamarin
2022-02-07 22:29 Sam James
2022-05-17 12:20 Andrew Ammerlaan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1455020361.99eaf7fb21765a3a7c16293348edc0ec69c03fa4.jlec@gentoo \
--to=jlec@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox