1 |
jlec 14/02/06 09:44:53 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: numpy-1.8.0-r1.ebuild |
5 |
Log: |
6 |
Backport fix for sec bug, #500484 |
7 |
|
8 |
(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key B9D4F231BD1558AB!) |
9 |
|
10 |
Revision Changes Path |
11 |
1.219 dev-python/numpy/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/numpy/ChangeLog?rev=1.219&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/numpy/ChangeLog?rev=1.219&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/numpy/ChangeLog?r1=1.218&r2=1.219 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/dev-python/numpy/ChangeLog,v |
20 |
retrieving revision 1.218 |
21 |
retrieving revision 1.219 |
22 |
diff -u -r1.218 -r1.219 |
23 |
--- ChangeLog 18 Jan 2014 12:16:02 -0000 1.218 |
24 |
+++ ChangeLog 6 Feb 2014 09:44:52 -0000 1.219 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for dev-python/numpy |
27 |
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/dev-python/numpy/ChangeLog,v 1.218 2014/01/18 12:16:02 vapier Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/dev-python/numpy/ChangeLog,v 1.219 2014/02/06 09:44:52 jlec Exp $ |
30 |
+ |
31 |
+*numpy-1.8.0-r1 (06 Feb 2014) |
32 |
+ |
33 |
+ 06 Feb 2014; Justin Lecher <jlec@g.o> |
34 |
+ +files/numpy-1.8.0-f2py-insecure-temporary.patch, +numpy-1.8.0-r1.ebuild: |
35 |
+ Backport fix for sec bug, #500484 |
36 |
|
37 |
18 Jan 2014; Mike Frysinger <vapier@g.o> numpy-1.7.1.ebuild, |
38 |
numpy-1.8.0.ebuild: |
39 |
|
40 |
|
41 |
|
42 |
1.1 dev-python/numpy/numpy-1.8.0-r1.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/numpy/numpy-1.8.0-r1.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/numpy/numpy-1.8.0-r1.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: numpy-1.8.0-r1.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2014 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/dev-python/numpy/numpy-1.8.0-r1.ebuild,v 1.1 2014/02/06 09:44:52 jlec Exp $ |
52 |
|
53 |
EAPI=5 |
54 |
|
55 |
PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} ) |
56 |
|
57 |
FORTRAN_NEEDED=lapack |
58 |
|
59 |
inherit distutils-r1 eutils flag-o-matic fortran-2 multilib toolchain-funcs versionator |
60 |
|
61 |
DOC_PV="${PV}" |
62 |
|
63 |
DESCRIPTION="Fast array and numerical python library" |
64 |
HOMEPAGE="http://numpy.scipy.org/" |
65 |
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz |
66 |
doc? ( |
67 |
http://docs.scipy.org/doc/${P}/${PN}-html-${DOC_PV}.zip |
68 |
http://docs.scipy.org/doc/${P}/${PN}-ref-${DOC_PV}.pdf |
69 |
http://docs.scipy.org/doc/${P}/${PN}-user-${DOC_PV}.pdf |
70 |
)" |
71 |
|
72 |
LICENSE="BSD" |
73 |
SLOT="0" |
74 |
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris" |
75 |
IUSE="doc lapack test" |
76 |
|
77 |
RDEPEND=" |
78 |
dev-python/setuptools[${PYTHON_USEDEP}] |
79 |
lapack? ( virtual/cblas virtual/lapack )" |
80 |
DEPEND="${RDEPEND} |
81 |
doc? ( app-arch/unzip ) |
82 |
lapack? ( virtual/pkgconfig ) |
83 |
test? ( >=dev-python/nose-0.10[${PYTHON_USEDEP}] )" |
84 |
|
85 |
# Uses distutils.command.config. |
86 |
DISTUTILS_IN_SOURCE_BUILD=1 |
87 |
|
88 |
src_unpack() { |
89 |
unpack ${P}.tar.gz |
90 |
if use doc; then |
91 |
unzip -qo "${DISTDIR}"/${PN}-html-${DOC_PV}.zip -d html || die |
92 |
fi |
93 |
} |
94 |
|
95 |
pc_incdir() { |
96 |
$(tc-getPKG_CONFIG) --cflags-only-I $@ | \ |
97 |
sed -e 's/^-I//' -e 's/[ ]*-I/:/g' -e 's/[ ]*$//' |
98 |
} |
99 |
|
100 |
pc_libdir() { |
101 |
$(tc-getPKG_CONFIG) --libs-only-L $@ | \ |
102 |
sed -e 's/^-L//' -e 's/[ ]*-L/:/g' -e 's/[ ]*$//' |
103 |
} |
104 |
|
105 |
pc_libs() { |
106 |
$(tc-getPKG_CONFIG) --libs-only-l $@ | \ |
107 |
sed -e 's/[ ]-l*\(pthread\|m\)\([ ]\|$\)//g' \ |
108 |
-e 's/^-l//' -e 's/[ ]*-l/,/g' -e 's/[ ]*$//' \ |
109 |
| sort | uniq | tr '\n' ',' |
110 |
} |
111 |
|
112 |
python_prepare_all() { |
113 |
epatch \ |
114 |
"${FILESDIR}"/${P}-no-hardcode-blas.patch \ |
115 |
"${FILESDIR}"/${P}-f2py-insecure-temporary.patch |
116 |
|
117 |
if use lapack; then |
118 |
append-ldflags "$($(tc-getPKG_CONFIG) --libs-only-other cblas lapack)" |
119 |
local libdir="${EPREFIX}"/usr/$(get_libdir) |
120 |
# make sure _dotblas.so gets built |
121 |
sed -i -e '/NO_ATLAS_INFO/,+1d' numpy/core/setup.py || die |
122 |
cat >> site.cfg <<-EOF |
123 |
[blas] |
124 |
include_dirs = $(pc_incdir cblas) |
125 |
library_dirs = $(pc_libdir cblas blas):${libdir} |
126 |
blas_libs = $(pc_libs cblas blas) |
127 |
[lapack] |
128 |
library_dirs = $(pc_libdir lapack):${libdir} |
129 |
lapack_libs = $(pc_libs lapack) |
130 |
EOF |
131 |
else |
132 |
export {ATLAS,PTATLAS,BLAS,LAPACK,MKL}=None |
133 |
fi |
134 |
|
135 |
export CC="$(tc-getCC) ${CFLAGS}" |
136 |
|
137 |
append-flags -fno-strict-aliasing |
138 |
|
139 |
# See progress in http://projects.scipy.org/scipy/numpy/ticket/573 |
140 |
# with the subtle difference that we don't want to break Darwin where |
141 |
# -shared is not a valid linker argument |
142 |
if [[ ${CHOST} != *-darwin* ]]; then |
143 |
append-ldflags -shared |
144 |
fi |
145 |
|
146 |
# only one fortran to link with: |
147 |
# linking with cblas and lapack library will force |
148 |
# autodetecting and linking to all available fortran compilers |
149 |
if use lapack; then |
150 |
append-fflags -fPIC |
151 |
NUMPY_FCONFIG="config_fc --noopt --noarch" |
152 |
# workaround bug 335908 |
153 |
[[ $(tc-getFC) == *gfortran* ]] && NUMPY_FCONFIG+=" --fcompiler=gnu95" |
154 |
fi |
155 |
|
156 |
# don't version f2py, we will handle it. |
157 |
sed -i -e '/f2py_exe/s:+os\.path.*$::' numpy/f2py/setup.py || die |
158 |
|
159 |
distutils-r1_python_prepare_all |
160 |
} |
161 |
|
162 |
python_compile() { |
163 |
distutils-r1_python_compile ${NUMPY_FCONFIG} |
164 |
} |
165 |
|
166 |
python_test() { |
167 |
distutils_install_for_testing ${NUMPY_FCONFIG} |
168 |
|
169 |
cd "${TMPDIR}" || die |
170 |
${EPYTHON} -c " |
171 |
import numpy, sys |
172 |
r = numpy.test(verbose=3) |
173 |
sys.exit(0 if r.wasSuccessful() else 1)" || die "Tests fail with ${EPYTHON}" |
174 |
} |
175 |
|
176 |
python_install() { |
177 |
distutils-r1_python_install ${NUMPY_FCONFIG} |
178 |
} |
179 |
|
180 |
python_install_all() { |
181 |
distutils-r1_python_install_all |
182 |
|
183 |
dodoc COMPATIBILITY DEV_README.txt THANKS.txt |
184 |
|
185 |
docinto f2py |
186 |
dodoc numpy/f2py/docs/*.txt |
187 |
doman numpy/f2py/f2py.1 |
188 |
|
189 |
if use doc; then |
190 |
dohtml -r "${WORKDIR}"/html/* |
191 |
insinto /usr/share/doc/${PF} |
192 |
doins "${DISTDIR}"/${PN}-{user,ref}-${DOC_PV}.pdf |
193 |
fi |
194 |
} |