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/tophat/files/, sci-biology/tophat/
Date: Sat, 01 Apr 2017 12:10:19
Message-Id: 1491048598.d16351c8ea24af193b4fa3f7cd9321924ceffc40.soap@gentoo
1 commit: d16351c8ea24af193b4fa3f7cd9321924ceffc40
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Sat Apr 1 12:09:16 2017 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sat Apr 1 12:09:58 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d16351c8
7
8 sci-biology/tophat: Unbundle python modules
9
10 Bug: https://bugs.gentoo.org/show_bug.cgi?id=614370
11 Package-Manager: Portage-2.3.5, Repoman-2.3.2
12
13 .../files/tophat-2.1.1-python2-shebangs.patch | 42 ++++++++++++++++++++++
14 ...phat-2.1.1-r3.ebuild => tophat-2.1.1-r4.ebuild} | 19 +++++-----
15 2 files changed, 50 insertions(+), 11 deletions(-)
16
17 diff --git a/sci-biology/tophat/files/tophat-2.1.1-python2-shebangs.patch b/sci-biology/tophat/files/tophat-2.1.1-python2-shebangs.patch
18 new file mode 100644
19 index 00000000000..5c38bcc072e
20 --- /dev/null
21 +++ b/sci-biology/tophat/files/tophat-2.1.1-python2-shebangs.patch
22 @@ -0,0 +1,42 @@
23 +Make Python 2 explicit in python scripts
24 +
25 +--- a/src/bed_to_juncs
26 ++++ b/src/bed_to_juncs
27 +@@ -1,4 +1,4 @@
28 +-#!/usr/bin/env python
29 ++#!/usr/bin/env python2
30 + # encoding: utf-8
31 + """
32 + bed_to_juncs.py
33 +--- a/src/contig_to_chr_coords
34 ++++ b/src/contig_to_chr_coords
35 +@@ -1,4 +1,4 @@
36 +-#!/usr/bin/env python
37 ++#!/usr/bin/env python2
38 + # encoding: utf-8
39 + """
40 + contig_to_chr_coords.py
41 +--- a/src/sra_to_solid
42 ++++ b/src/sra_to_solid
43 +@@ -1,4 +1,4 @@
44 +-#!/usr/bin/env python
45 ++#!/usr/bin/env python2
46 +
47 + """
48 + sra_to_solid.py
49 +--- a/src/tophat-fusion-post
50 ++++ b/src/tophat-fusion-post
51 +@@ -1,4 +1,4 @@
52 +-#!/usr/bin/env python
53 ++#!/usr/bin/env python2
54 +
55 +
56 + """
57 +--- a/src/tophat.py
58 ++++ b/src/tophat.py
59 +@@ -1,4 +1,4 @@
60 +-#!/usr/bin/env python
61 ++#!/usr/bin/env python2
62 +
63 + # encoding: utf-8
64 + """
65
66 diff --git a/sci-biology/tophat/tophat-2.1.1-r3.ebuild b/sci-biology/tophat/tophat-2.1.1-r4.ebuild
67 similarity index 81%
68 rename from sci-biology/tophat/tophat-2.1.1-r3.ebuild
69 rename to sci-biology/tophat/tophat-2.1.1-r4.ebuild
70 index cf684593109..590f6eb2d20 100644
71 --- a/sci-biology/tophat/tophat-2.1.1-r3.ebuild
72 +++ b/sci-biology/tophat/tophat-2.1.1-r4.ebuild
73 @@ -1,4 +1,4 @@
74 -# Copyright 1999-2016 Gentoo Foundation
75 +# Copyright 1999-2017 Gentoo Foundation
76 # Distributed under the terms of the GNU General Public License v2
77
78 EAPI=6
79 @@ -19,6 +19,8 @@ REQUIRED_USE="${PYTHON_REQUIRED_USE}"
80
81 RDEPEND="${PYTHON_DEPS}
82 dev-libs/boost:=[threads]
83 + dev-python/intervaltree[${PYTHON_USEDEP}]
84 + dev-python/sortedcontainers[${PYTHON_USEDEP}]
85 sci-biology/samtools:0.1-legacy
86 sci-biology/bowtie:2"
87 DEPEND="${RDEPEND}
88 @@ -27,8 +29,9 @@ DEPEND="${RDEPEND}
89 >=sys-devel/autoconf-archive-2016.09.16"
90
91 PATCHES=(
92 - "${FILESDIR}/${P}-unbundle-seqan-samtools.patch"
93 - "${FILESDIR}/${P}-fix-c++14.patch"
94 + "${FILESDIR}"/${P}-unbundle-seqan-samtools.patch
95 + "${FILESDIR}"/${P}-fix-c++14.patch
96 + "${FILESDIR}"/${P}-python2-shebangs.patch
97 )
98
99 src_prepare() {
100 @@ -66,16 +69,10 @@ src_configure() {
101 src_install() {
102 default
103
104 + # delete bundled python modules
105 local i
106 - # install scripts properly
107 - for i in bed_to_juncs contig_to_chr_coords sra_to_solid tophat tophat-fusion-post; do
108 - python_fix_shebang "${ED%/}/usr/bin/${i}"
109 - done
110 -
111 - # install python modules properly
112 for i in intervaltree sortedcontainers; do
113 - python_domodule "${ED%/}/usr/bin/${i}"
114 - rm -rf "${ED%/}/usr/bin/${i}" || die
115 + rm -r "${ED%/}"/usr/bin/${i} || die
116 done
117 }