Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-biology/samtools/
Date: Mon, 03 Aug 2020 17:40:37
Message-Id: 1596476393.e4e256abcf64dccd8c72ad565bd988ef49e740be.soap@gentoo
1 commit: e4e256abcf64dccd8c72ad565bd988ef49e740be
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Mon Aug 3 17:39:53 2020 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Mon Aug 3 17:39:53 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e4e256ab
7
8 sci-biology/samtools: Remove ancient py2 varfilter.py script
9
10 Closes: https://bugs.gentoo.org/735444
11 Package-Manager: Portage-3.0.1, Repoman-2.3.23
12 Signed-off-by: David Seifert <soap <AT> gentoo.org>
13
14 ...-0.1.20-r3.ebuild => samtools-0.1.20-r4.ebuild} | 36 ++++++++--------------
15 1 file changed, 13 insertions(+), 23 deletions(-)
16
17 diff --git a/sci-biology/samtools/samtools-0.1.20-r3.ebuild b/sci-biology/samtools/samtools-0.1.20-r4.ebuild
18 similarity index 66%
19 rename from sci-biology/samtools/samtools-0.1.20-r3.ebuild
20 rename to sci-biology/samtools/samtools-0.1.20-r4.ebuild
21 index 5cfcfd7f6a7..2c76f0580f8 100644
22 --- a/sci-biology/samtools/samtools-0.1.20-r3.ebuild
23 +++ b/sci-biology/samtools/samtools-0.1.20-r4.ebuild
24 @@ -1,11 +1,9 @@
25 -# Copyright 1999-2016 Gentoo Foundation
26 +# Copyright 1999-2020 Gentoo Authors
27 # Distributed under the terms of the GNU General Public License v2
28
29 -EAPI=6
30 +EAPI=7
31
32 -PYTHON_COMPAT=( python2_7 )
33 -
34 -inherit python-single-r1 toolchain-funcs
35 +inherit toolchain-funcs
36
37 DESCRIPTION="Utilities for analysing and manipulating the SAM/BAM alignment formats"
38 HOMEPAGE="http://samtools.sourceforge.net/"
39 @@ -14,23 +12,17 @@ SRC_URI="https://github.com/samtools/samtools/archive/${PV}.tar.gz -> ${P}.tar.g
40 LICENSE="MIT"
41 SLOT="0.1-legacy"
42 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~x64-macos"
43 -IUSE="examples"
44 -REQUIRED_USE="${PYTHON_REQUIRED_USE}"
45
46 -RDEPEND="${PYTHON_DEPS}
47 +RDEPEND="
48 sys-libs/ncurses:0=
49 dev-lang/perl"
50 -DEPEND="${RDEPEND}
51 - virtual/pkgconfig"
52 +DEPEND="${RDEPEND}"
53 +BDEPEND="virtual/pkgconfig"
54
55 -PATCHES=(
56 - "${FILESDIR}/${P}-buildsystem.patch"
57 -)
58 +PATCHES=( "${FILESDIR}"/${P}-buildsystem.patch )
59
60 src_prepare() {
61 default
62 - # required, otherwise python_fix_shebang errors out
63 - sed -i 's~/software/bin/python~/usr/bin/env python~' misc/varfilter.py || die
64 tc-export CC AR
65 }
66
67 @@ -48,9 +40,9 @@ src_install() {
68 mkdir "${ED%/}"/usr/bin || die
69 mv "${ED%/}"/usr/{${PN}-${SLOT},bin/} || die
70
71 - # ... do the same with the python script, but also fix the shebang
72 - mv "${ED%/}"/usr/bin/${PN}-${SLOT}/varfilter{,-${SLOT}}.py || die
73 - python_fix_shebang "${ED%/}"/usr/bin/${PN}-${SLOT}/varfilter-${SLOT}.py
74 + # remove py2 script, has been removed upstream anyways
75 + # https://github.com/samtools/samtools/issues/1125
76 + rm "${ED%/}"/usr/bin/${PN}-${SLOT}/varfilter.py || die
77
78 # fix perl shebangs
79 pushd "${ED%/}"/usr/bin/${PN}-${SLOT} >/dev/null || die
80 @@ -70,14 +62,12 @@ src_install() {
81 doman ${PN}-${SLOT}.1
82 einstalldocs
83
84 - if use examples; then
85 - dodoc -r examples
86 - docompress -x /usr/share/doc/${PF}/examples
87 - fi
88 + dodoc -r examples
89 + docompress -x /usr/share/doc/${PF}/examples
90 }
91
92 pkg_postinst() {
93 elog "This version of samtools should *not* be your first choice for working"
94 elog "with NGS data. It is installed solely for programs requiring it."
95 - elog "It is recommended that you use >=sci-biology/samtools-1.2."
96 + elog "It is recommended that you use >=sci-biology/samtools-1.10."
97 }