Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/CommonMark/
Date: Thu, 18 Oct 2018 16:39:47
Message-Id: 1539880773.2c2d95d87fa880e5f668140d4547cefded9b8ca5.mgorny@gentoo
1 commit: 2c2d95d87fa880e5f668140d4547cefded9b8ca5
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Thu Oct 18 16:06:57 2018 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu Oct 18 16:39:33 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2c2d95d8
7
8 dev-python/CommonMark: Update for incoming rename
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/CommonMark/CommonMark-0.5.4.ebuild | 6 +++++-
13 dev-python/CommonMark/CommonMark-0.7.5.ebuild | 6 +++++-
14 2 files changed, 10 insertions(+), 2 deletions(-)
15
16 diff --git a/dev-python/CommonMark/CommonMark-0.5.4.ebuild b/dev-python/CommonMark/CommonMark-0.5.4.ebuild
17 index f686d655b29..630fd63052e 100644
18 --- a/dev-python/CommonMark/CommonMark-0.5.4.ebuild
19 +++ b/dev-python/CommonMark/CommonMark-0.5.4.ebuild
20 @@ -6,9 +6,11 @@ PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
21
22 inherit distutils-r1
23
24 +MY_PN=CommonMark
25 +MY_P=${MY_PN}-${PV}
26 DESCRIPTION="Python parser for the CommonMark Markdown spec"
27 HOMEPAGE="https://github.com/rtfd/CommonMark-py"
28 -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
29 +SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
30
31 LICENSE="BSD"
32 SLOT="0"
33 @@ -23,6 +25,8 @@ DEPEND="${RDEPEND}
34 dev-python/setuptools[${PYTHON_USEDEP}]
35 "
36
37 +S=${WORKDIR}/${MY_P}
38 +
39 # unrestrict for versions >= 0.7.2
40 RESTRICT=test
41
42
43 diff --git a/dev-python/CommonMark/CommonMark-0.7.5.ebuild b/dev-python/CommonMark/CommonMark-0.7.5.ebuild
44 index d2109b61a48..52faefc635f 100644
45 --- a/dev-python/CommonMark/CommonMark-0.7.5.ebuild
46 +++ b/dev-python/CommonMark/CommonMark-0.7.5.ebuild
47 @@ -6,9 +6,11 @@ PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6,3_7} )
48
49 inherit distutils-r1
50
51 +MY_PN=CommonMark
52 +MY_P=${MY_PN}-${PV}
53 DESCRIPTION="Python parser for the CommonMark Markdown spec"
54 HOMEPAGE="https://github.com/rtfd/CommonMark-py"
55 -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
56 +SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
57
58 LICENSE="BSD"
59 SLOT="0"
60 @@ -25,6 +27,8 @@ DEPEND="${RDEPEND}
61 dev-python/setuptools[${PYTHON_USEDEP}]
62 "
63
64 +S=${WORKDIR}/${MY_P}
65 +
66 python_test() {
67 PYTHONIOENCODING='utf8' \
68 esetup.py test