1 |
commit: 28829acee0534e46cb218272baabec3db3a268a5 |
2 |
Author: Sébastien Fabbro <bicatali <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Aug 31 23:07:04 2016 +0000 |
4 |
Commit: Sebastien Fabbro <bicatali <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Aug 31 23:07:28 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=28829ace |
7 |
|
8 |
dev-python/astroscrappy: version bump |
9 |
|
10 |
Package-Manager: portage-2.3.0 |
11 |
|
12 |
dev-python/astroscrappy/Manifest | 1 + |
13 |
dev-python/astroscrappy/astroscrappy-1.0.5.ebuild | 60 ++++++++++++++++++++++ |
14 |
.../astroscrappy-1.0.5-respect-user-flag.patch | 36 +++++++++++++ |
15 |
3 files changed, 97 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/astroscrappy/Manifest b/dev-python/astroscrappy/Manifest |
18 |
index bf4e65b..a495df7 100644 |
19 |
--- a/dev-python/astroscrappy/Manifest |
20 |
+++ b/dev-python/astroscrappy/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST astroscrappy-1.0.3.tar.gz 422209 SHA256 843af0ec1fb7439a886f05690a52d96342c3bd505dfdef42e922a66b67a89776 SHA512 2e96e8e62f81c770802a3c7699ca4455c640bb000aa4bffc22149745eed4e7e33cc4b297649020a601ff7fb242c0545cf9391c19ee2687adab26ac494d37dbb2 WHIRLPOOL 8ee318233639617608a4c4aea0a75227317f3ca695430c49882a1396178eb3655bd80169291de2631c752c81d41016dcda85653eb1caa372cfd7c0d49080fd67 |
23 |
+DIST astroscrappy-1.0.5.tar.gz 421910 SHA256 29f6ab8809fb404c369f0a63c74ec72a11fbe872650dd08906caf6ab801c2920 SHA512 bad648140abe3032aa76f43b4c61a15bc49b825bb8333d0e2dc6ba244542e5d6b283824336de82c73aefdfd62b952c9089c3237c913faf17874af13725345064 WHIRLPOOL d3e63f2e4fd352b85095149efa06a3bee11daaab723fbd041a6375772ca2d23b72759a0698d512198cd38086e2a20a5984b9a04346ab2814f455c45f831676fb |
24 |
|
25 |
diff --git a/dev-python/astroscrappy/astroscrappy-1.0.5.ebuild b/dev-python/astroscrappy/astroscrappy-1.0.5.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000..d399cf7 |
28 |
--- /dev/null |
29 |
+++ b/dev-python/astroscrappy/astroscrappy-1.0.5.ebuild |
30 |
@@ -0,0 +1,60 @@ |
31 |
+# Copyright 1999-2016 Gentoo Foundation |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+# $Id$ |
34 |
+ |
35 |
+EAPI=6 |
36 |
+ |
37 |
+PYTHON_COMPAT=( python{2_7,3_4,3_5} ) |
38 |
+ |
39 |
+inherit distutils-r1 |
40 |
+ |
41 |
+DESCRIPTION="Optimized cosmic ray annihilation astropy python module" |
42 |
+HOMEPAGE="https://github.com/astropy/astroscrappy" |
43 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
44 |
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
45 |
+ |
46 |
+LICENSE="BSD" |
47 |
+SLOT="0" |
48 |
+IUSE="doc openmp test" |
49 |
+ |
50 |
+RDEPEND=" |
51 |
+ dev-python/astropy[${PYTHON_USEDEP}] |
52 |
+ dev-python/astropy-helpers[${PYTHON_USEDEP}] |
53 |
+ dev-python/numpy[${PYTHON_USEDEP}] |
54 |
+ sci-libs/scipy[${PYTHON_USEDEP}]" |
55 |
+ |
56 |
+DEPEND="${RDEPEND} |
57 |
+ dev-python/cython[${PYTHON_USEDEP}] |
58 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
59 |
+ doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) |
60 |
+ test? ( dev-python/pytest[${PYTHON_USEDEP}] )" |
61 |
+ |
62 |
+DOCS=( CHANGES.rst ) |
63 |
+ |
64 |
+PATCHES=( |
65 |
+ "${FILESDIR}/${PN}-1.0.5-respect-user-flag.patch" |
66 |
+) |
67 |
+ |
68 |
+python_prepare_all() { |
69 |
+ # use astropy-helpers from system |
70 |
+ sed -i -e '/auto_use/s/True/False/' setup.cfg || die |
71 |
+ # if the user explicitely does not want openmp, do not forcefully use it |
72 |
+ if ! use openmp; then |
73 |
+ sed -e 's/if has_openmp/if False/' \ |
74 |
+ -i astroscrappy/utils/setup_package.py || die |
75 |
+ fi |
76 |
+ distutils-r1_python_prepare_all |
77 |
+} |
78 |
+ |
79 |
+python_compile_all() { |
80 |
+ use doc && esetup.py build_sphinx |
81 |
+} |
82 |
+ |
83 |
+python_test() { |
84 |
+ esetup.py test |
85 |
+} |
86 |
+ |
87 |
+python_install_all() { |
88 |
+ use doc && local HTML_DOCS=( docs/_build/html/. ) |
89 |
+ distutils-r1_python_install_all |
90 |
+} |
91 |
|
92 |
diff --git a/dev-python/astroscrappy/files/astroscrappy-1.0.5-respect-user-flag.patch b/dev-python/astroscrappy/files/astroscrappy-1.0.5-respect-user-flag.patch |
93 |
new file mode 100644 |
94 |
index 00000000..b3638e1 |
95 |
--- /dev/null |
96 |
+++ b/dev-python/astroscrappy/files/astroscrappy-1.0.5-respect-user-flag.patch |
97 |
@@ -0,0 +1,36 @@ |
98 |
+From f3acf99e65f58e2ee2f409d33f44a3abb1ba90c4 Mon Sep 17 00:00:00 2001 |
99 |
+From: Sébastien Fabbro <bicatali@g.o> |
100 |
+Date: Wed, 31 Aug 2016 22:19:12 +0000 |
101 |
+Subject: [PATCH] respect user compiling flags Depending on compilers, -O3 |
102 |
+ -funroll-loops is not the fastest. |
103 |
+ |
104 |
+--- |
105 |
+ astroscrappy/utils/setup_package.py | 8 ++------ |
106 |
+ 1 file changed, 2 insertions(+), 6 deletions(-) |
107 |
+ |
108 |
+diff --git a/astroscrappy/utils/setup_package.py b/astroscrappy/utils/setup_package.py |
109 |
+index 3e1fba2..c271613 100644 |
110 |
+--- a/astroscrappy/utils/setup_package.py |
111 |
++++ b/astroscrappy/utils/setup_package.py |
112 |
+@@ -73,16 +73,12 @@ def get_extensions(): |
113 |
+ sources=med_sources, |
114 |
+ include_dirs=include_dirs, |
115 |
+ libraries=libraries, |
116 |
+- language="c", |
117 |
+- extra_compile_args=['-g', '-O3', '-funroll-loops', |
118 |
+- '-ffast-math']) |
119 |
++ language="c") |
120 |
+ ext_im = Extension(name=str("astroscrappy.utils.image_utils"), |
121 |
+ sources=im_sources, |
122 |
+ include_dirs=include_dirs, |
123 |
+ libraries=libraries, |
124 |
+- language="c", |
125 |
+- extra_compile_args=['-g', '-O3', '-funroll-loops', |
126 |
+- '-ffast-math']) |
127 |
++ language="c") |
128 |
+ |
129 |
+ has_openmp, outputs = check_openmp() |
130 |
+ if has_openmp: |
131 |
+-- |
132 |
+2.9.3 |
133 |
+ |