Gentoo Archives: gentoo-commits

From: Louis Sautier <sbraz@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pysrt/
Date: Wed, 25 Jul 2018 23:23:43
Message-Id: 1532561012.9de01c8e147ed2759b0572d0fef024956384e27d.sbraz@gentoo
1 commit: 9de01c8e147ed2759b0572d0fef024956384e27d
2 Author: Louis Sautier <sbraz <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jul 25 23:14:25 2018 +0000
4 Commit: Louis Sautier <sbraz <AT> gentoo <DOT> org>
5 CommitDate: Wed Jul 25 23:23:32 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9de01c8e
7
8 dev-python/pysrt: sync live ebuild with 1.1.1-r1
9
10 Package-Manager: Portage-2.3.43, Repoman-2.3.10
11
12 dev-python/pysrt/pysrt-9999.ebuild | 25 +++++++++++++++----------
13 1 file changed, 15 insertions(+), 10 deletions(-)
14
15 diff --git a/dev-python/pysrt/pysrt-9999.ebuild b/dev-python/pysrt/pysrt-9999.ebuild
16 index bda2f23780f..5ceb7f70950 100644
17 --- a/dev-python/pysrt/pysrt-9999.ebuild
18 +++ b/dev-python/pysrt/pysrt-9999.ebuild
19 @@ -1,30 +1,35 @@
20 -# Copyright 1999-2017 Gentoo Foundation
21 +# Copyright 1999-2018 Gentoo Foundation
22 # Distributed under the terms of the GNU General Public License v2
23
24 -EAPI=6
25 -PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
26 +EAPI=7
27
28 -inherit distutils-r1 git-r3
29 +PYTHON_COMPAT=( pypy{,3} python{2_7,3_{4,5,6,7}} )
30 +
31 +inherit distutils-r1
32
33 DESCRIPTION="Python library used to edit or create SubRip files"
34 HOMEPAGE="https://github.com/byroot/pysrt https://pypi.org/project/pysrt/"
35 -EGIT_REPO_URI="https://github.com/byroot/pysrt.git"
36 +if [[ ${PV} == "9999" ]]; then
37 + inherit git-r3
38 + EGIT_REPO_URI="https://github.com/byroot/pysrt.git"
39 +else
40 + SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
41 + KEYWORDS="~amd64 ~x86"
42 +fi
43
44 -LICENSE="GPL-3"
45 +LICENSE="GPL-3+"
46 SLOT="0"
47 -KEYWORDS=""
48 IUSE="test"
49
50 RDEPEND="dev-python/chardet[${PYTHON_USEDEP}]"
51 DEPEND="
52 dev-python/setuptools[${PYTHON_USEDEP}]
53 test? (
54 - dev-python/nose[coverage(+),${PYTHON_USEDEP}]
55 ${RDEPEND}
56 + dev-python/nose[${PYTHON_USEDEP}]
57 )
58 "
59
60 python_test() {
61 - nosetests --with-coverage --cover-package=pysrt \
62 - || die "Tests failed under ${EPYTHON}"
63 + nosetests -v || die "Tests failed under ${EPYTHON}"
64 }