Gentoo Archives: gentoo-commits

From: Horea Christian <horea.christ@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-biology/pybedtools/
Date: Sun, 27 Sep 2020 06:50:37
Message-Id: 1601189426.08cb203ae14acd64b0d0c5a7489d9fca813154de.chymera@gentoo
1 commit: 08cb203ae14acd64b0d0c5a7489d9fca813154de
2 Author: Horea Christian <chr <AT> chymera <DOT> eu>
3 AuthorDate: Sun Sep 27 06:50:26 2020 +0000
4 Commit: Horea Christian <horea.christ <AT> gmail <DOT> com>
5 CommitDate: Sun Sep 27 06:50:26 2020 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=08cb203a
7
8 sci-biology/pybedtools: PYTHON_COMPAT update and actually install files
9
10 Package-Manager: Portage-3.0.8, Repoman-3.0.1
11 Signed-off-by: Horea Christian <chr <AT> chymera.eu>
12
13 sci-biology/pybedtools/pybedtools-0.8.0.ebuild | 17 ++++++++++++-----
14 1 file changed, 12 insertions(+), 5 deletions(-)
15
16 diff --git a/sci-biology/pybedtools/pybedtools-0.8.0.ebuild b/sci-biology/pybedtools/pybedtools-0.8.0.ebuild
17 index 440e644b7..9edb8f366 100644
18 --- a/sci-biology/pybedtools/pybedtools-0.8.0.ebuild
19 +++ b/sci-biology/pybedtools/pybedtools-0.8.0.ebuild
20 @@ -3,7 +3,7 @@
21
22 EAPI=7
23
24 -PYTHON_COMPAT=( python2_7 python3_{5,6,7,8} )
25 +PYTHON_COMPAT=( python3_{6..9} )
26
27 inherit distutils-r1
28
29 @@ -15,6 +15,9 @@ LICENSE="MIT"
30 SLOT="0"
31 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
32 IUSE="doc minimal"
33 +RESTRICT="test"
34 +# Tests reported to fail on Gentoo:
35 +# https://github.com/daler/pybedtools/issues/329
36
37 RDEPEND="
38 sci-biology/bedtools
39 @@ -26,12 +29,16 @@ DEPEND="${RDEPEND}
40
41 src_compile(){
42 python setup.py cythonize
43 - default
44 + distutils-r1_src_compile
45 use doc && cd docs && emake html
46 }
47
48 src_install(){
49 - default
50 - insinto /usr/share/doc/"${PN}"
51 - doins -r docs/build/html
52 + distutils-r1_src_install
53 + if use doc; then
54 + insinto /usr/share/doc/"${PN}"
55 + doins -r docs/build/html
56 + fi
57 }
58 +
59 +distutils_enable_tests pytest