1 |
commit: 0c71d353954ad0e01c6e1595f4e493ad7857f6dc |
2 |
Author: Ted Tanberry <ted.tanberry <AT> gmail <DOT> com> |
3 |
AuthorDate: Sat Oct 10 15:12:58 2015 +0000 |
4 |
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Oct 10 15:12:58 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=0c71d353 |
7 |
|
8 |
sci-biology/pysam: version bump to 0.8.3 |
9 |
|
10 |
This also includes a fix for building with |
11 |
Cython 0.23. |
12 |
|
13 |
.../pysam/files/pysam-0.8.3-cython-0.23.patch | 32 ++++++++++++++++++++++ |
14 |
sci-biology/pysam/pysam-0.8.3.ebuild | 29 ++++++++++++++++++++ |
15 |
2 files changed, 61 insertions(+) |
16 |
|
17 |
diff --git a/sci-biology/pysam/files/pysam-0.8.3-cython-0.23.patch b/sci-biology/pysam/files/pysam-0.8.3-cython-0.23.patch |
18 |
new file mode 100644 |
19 |
index 0000000..d14fec5 |
20 |
--- /dev/null |
21 |
+++ b/sci-biology/pysam/files/pysam-0.8.3-cython-0.23.patch |
22 |
@@ -0,0 +1,32 @@ |
23 |
+Patch for building with Cython 0.23 |
24 |
+See also |
25 |
+https://github.com/pysam-developers/pysam/issues/164 |
26 |
+ |
27 |
+--- pysam-0.8.3/pysam/chtslib.pxd |
28 |
++++ pysam-0.8.3/pysam/chtslib.pxd |
29 |
+@@ -363,7 +363,7 @@ |
30 |
+ hFILE *hfile |
31 |
+ void *voidp |
32 |
+ |
33 |
+- ctypedef enum htsFormatCategory: |
34 |
++ cdef enum htsFormatCategory: |
35 |
+ unknown_category |
36 |
+ sequence_data # Sequence data -- SAM, BAM, CRAM, etc |
37 |
+ variant_data # Variant calling data -- VCF, BCF, etc |
38 |
+@@ -371,14 +371,14 @@ |
39 |
+ region_list # Coordinate intervals or regions -- BED, etc |
40 |
+ category_maximum |
41 |
+ |
42 |
+- ctypedef enum htsExactFormat: |
43 |
++ cdef enum htsExactFormat: |
44 |
+ unknown_format |
45 |
+ binary_format |
46 |
+ text_format |
47 |
+ sam, bam, bai, cram, crai, vcf, bcf, csi, gzi, tbi, bed |
48 |
+ format_maximum |
49 |
+ |
50 |
+- ctypedef enum htsCompression: |
51 |
++ cdef enum htsCompression: |
52 |
+ no_compression, gzip, bgzf, custom |
53 |
+ compression_maximum |
54 |
+ |
55 |
|
56 |
diff --git a/sci-biology/pysam/pysam-0.8.3.ebuild b/sci-biology/pysam/pysam-0.8.3.ebuild |
57 |
new file mode 100644 |
58 |
index 0000000..a08855f |
59 |
--- /dev/null |
60 |
+++ b/sci-biology/pysam/pysam-0.8.3.ebuild |
61 |
@@ -0,0 +1,29 @@ |
62 |
+# Copyright 1999-2015 Gentoo Foundation |
63 |
+# Distributed under the terms of the GNU General Public License v2 |
64 |
+# $Id$ |
65 |
+ |
66 |
+EAPI="5" |
67 |
+ |
68 |
+PYTHON_COMPAT=( python2_7 ) |
69 |
+ |
70 |
+inherit distutils-r1 |
71 |
+ |
72 |
+DESCRIPTION="Python interface for the SAM/BAM sequence alignment and mapping format" |
73 |
+HOMEPAGE="https://github.com/pysam-developers/pysam http://pypi.python.org/pypi/pysam" |
74 |
+SRC_URI="https://github.com/pysam-developers/${PN}/archive/v${PV}.tar.gz" |
75 |
+ |
76 |
+LICENSE="MIT" |
77 |
+SLOT="0" |
78 |
+KEYWORDS="~amd64 ~x86" |
79 |
+IUSE="" |
80 |
+ |
81 |
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] |
82 |
+ >=sci-biology/samtools-1.2[${PYTHON_USEDEP}] |
83 |
+ >=sci-libs/htslib-1.2.1" |
84 |
+ |
85 |
+PATCHES=( "${FILESDIR}/${P}-cython-0.23.patch" ) |
86 |
+ |
87 |
+python_compile() { |
88 |
+ python_is_python3 || local -x CFLAGS="${CFLAGS} -fno-strict-aliasing" |
89 |
+ distutils-r1_python_compile |
90 |
+} |