Gentoo Archives: gentoo-commits

From: "Sebastien Fabbro (bicatali)" <bicatali@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-libs/scipy: scipy-0.14.0.ebuild ChangeLog scipy-0.13.0.ebuild scipy-0.13.1-r2.ebuild scipy-0.13.2-r1.ebuild
Date: Mon, 05 May 2014 20:21:58
Message-Id: 20140505202153.A05002004C@flycatcher.gentoo.org
1 bicatali 14/05/05 20:21:53
2
3 Modified: ChangeLog
4 Added: scipy-0.14.0.ebuild
5 Removed: scipy-0.13.0.ebuild scipy-0.13.1-r2.ebuild
6 scipy-0.13.2-r1.ebuild
7 Log:
8 Version bump. Reintroduced ppc and ppc64 because mpmath is not mandatory anymore for testing
9
10 (Portage version: 2.2.8-prefix/cvs/Linux x86_64, signed Manifest commit with key 0x13CB1360)
11
12 Revision Changes Path
13 1.116 sci-libs/scipy/ChangeLog
14
15 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/scipy/ChangeLog?rev=1.116&view=markup
16 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/scipy/ChangeLog?rev=1.116&content-type=text/plain
17 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/scipy/ChangeLog?r1=1.115&r2=1.116
18
19 Index: ChangeLog
20 ===================================================================
21 RCS file: /var/cvsroot/gentoo-x86/sci-libs/scipy/ChangeLog,v
22 retrieving revision 1.115
23 retrieving revision 1.116
24 diff -u -r1.115 -r1.116
25 --- ChangeLog 25 Mar 2014 19:42:14 -0000 1.115
26 +++ ChangeLog 5 May 2014 20:21:53 -0000 1.116
27 @@ -1,6 +1,14 @@
28 # ChangeLog for sci-libs/scipy
29 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
30 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/scipy/ChangeLog,v 1.115 2014/03/25 19:42:14 bicatali Exp $
31 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/scipy/ChangeLog,v 1.116 2014/05/05 20:21:53 bicatali Exp $
32 +
33 +*scipy-0.14.0 (05 May 2014)
34 +
35 + 05 May 2014; Sébastien Fabbro <bicatali@g.o> +scipy-0.14.0.ebuild,
36 + -files/scipy-0.9.0-qhull.patch, -files/scipy-0.9.0-superlu.patch,
37 + -scipy-0.13.0.ebuild, -scipy-0.13.1-r2.ebuild, -scipy-0.13.2-r1.ebuild:
38 + Version bump. Reintroduced ppc and ppc64 because mpmath is not mandatory
39 + anymore for testing
40
41 25 Mar 2014; Sébastien Fabbro <bicatali@g.o> scipy-0.13.3.ebuild:
42 More fixes to the site.cfg file generation
43
44
45
46 1.1 sci-libs/scipy/scipy-0.14.0.ebuild
47
48 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/scipy/scipy-0.14.0.ebuild?rev=1.1&view=markup
49 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/scipy/scipy-0.14.0.ebuild?rev=1.1&content-type=text/plain
50
51 Index: scipy-0.14.0.ebuild
52 ===================================================================
53 # Copyright 1999-2014 Gentoo Foundation
54 # Distributed under the terms of the GNU General Public License v2
55 # $Header: /var/cvsroot/gentoo-x86/sci-libs/scipy/scipy-0.14.0.ebuild,v 1.1 2014/05/05 20:21:53 bicatali Exp $
56
57 EAPI=5
58
59 PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3,3_4} )
60
61 DOC_PV=0.13.0
62 inherit eutils fortran-2 distutils-r1 flag-o-matic multilib toolchain-funcs
63
64 DESCRIPTION="Scientific algorithms library for Python"
65 HOMEPAGE="http://www.scipy.org/"
66 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz
67 doc? (
68 http://docs.scipy.org/doc/${PN}-${DOC_PV}/${PN}-html.zip -> ${PN}-${DOC_PV}-html.zip
69 http://docs.scipy.org/doc/${PN}-${DOC_PV}/${PN}-ref.pdf -> ${PN}-${DOC_PV}-ref.pdf
70 )"
71
72 LICENSE="BSD LGPL-2"
73 SLOT="0"
74 IUSE="doc sparse test"
75 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
76
77 CDEPEND="
78 dev-python/numpy[lapack,${PYTHON_USEDEP}]
79 sci-libs/arpack:0=
80 virtual/cblas
81 virtual/lapack
82 sparse? ( sci-libs/umfpack:0= )"
83 DEPEND="${CDEPEND}
84 dev-lang/swig
85 >=dev-python/cython-0.19.1[${PYTHON_USEDEP}]
86 virtual/pkgconfig
87 doc? ( app-arch/unzip )
88 test? (
89 dev-python/nose[${PYTHON_USEDEP}]
90 )"
91
92 RDEPEND="${CDEPEND}
93 virtual/python-imaging[${PYTHON_USEDEP}]"
94
95 DOCS=( HACKING.rst.txt THANKS.txt )
96
97 DISTUTILS_IN_SOURCE_BUILD=1
98
99 src_unpack() {
100 unpack ${P}.tar.gz
101 if use doc; then
102 unzip -qo "${DISTDIR}"/${PN}-${DOC_PV}-html.zip -d html || die
103 fi
104 }
105
106 pc_incdir() {
107 $(tc-getPKG_CONFIG) --cflags-only-I $@ | \
108 sed -e 's/^-I//' -e 's/[ ]*-I/:/g' -e 's/[ ]*$//' -e 's|^:||'
109 }
110
111 pc_libdir() {
112 $(tc-getPKG_CONFIG) --libs-only-L $@ | \
113 sed -e 's/^-L//' -e 's/[ ]*-L/:/g' -e 's/[ ]*$//' -e 's|^:||'
114 }
115
116 pc_libs() {
117 $(tc-getPKG_CONFIG) --libs-only-l $@ | \
118 sed -e 's/[ ]-l*\(pthread\|m\)\([ ]\|$\)//g' \
119 -e 's/^-l//' -e 's/[ ]*-l/,/g' -e 's/[ ]*$//' \
120 | tr ',' '\n' | sort -u | tr '\n' ',' | sed -e 's|,$||'
121 }
122
123 python_prepare_all() {
124 # scipy automatically detects libraries by default
125 export {FFTW,FFTW3,UMFPACK}=None
126 use sparse && unset UMFPACK
127 # the missing symbols are in -lpythonX.Y, but since the version can
128 # differ, we just introduce the same scaryness as on Linux/ELF
129 [[ ${CHOST} == *-darwin* ]] \
130 && append-ldflags -bundle "-undefined dynamic_lookup" \
131 || append-ldflags -shared
132 [[ -z ${FC} ]] && export FC="$(tc-getFC)"
133 # hack to force F77 to be FC until bug #278772 is fixed
134 [[ -z ${F77} ]] && export F77="$(tc-getFC)"
135 export F90="${FC}"
136 export SCIPY_FCONFIG="config_fc --noopt --noarch"
137 append-fflags -fPIC
138
139 local libdir="${EPREFIX}"/usr/$(get_libdir)
140 cat >> site.cfg <<-EOF
141 [blas]
142 include_dirs = $(pc_incdir cblas)
143 library_dirs = $(pc_libdir cblas blas):${libdir}
144 blas_libs = $(pc_libs cblas blas)
145 [lapack]
146 library_dirs = $(pc_libdir lapack):${libdir}
147 lapack_libs = $(pc_libs lapack)
148 EOF
149
150 # Drop hashes to force rebuild of cython based .c code
151 rm cythonize.dat || die
152
153 local PATCHES=(
154 "${FILESDIR}"/${PN}-0.12.0-blitz.patch
155 "${FILESDIR}"/${PN}-0.12.0-restore-sys-argv.patch
156 "${FILESDIR}"/${PN}-0.12.0-cephes-missing-include.patch
157 )
158 distutils-r1_python_prepare_all
159 }
160
161 python_compile() {
162 ${EPYTHON} tools/cythonize.py || die
163 distutils-r1_python_compile ${SCIPY_FCONFIG}
164 }
165
166 python_test() {
167 # fails with bdist_egg. should it be fixed in distutils-r1 eclass?
168 distutils_install_for_testing ${SCIPY_FCONFIG}
169 cd "${TEST_DIR}" || die "no ${TEST_DIR} available"
170 "${EPYTHON}" -c "
171 import scipy, sys
172 r = scipy.test('fast',verbose=2)
173 sys.exit(0 if r.wasSuccessful() else 1)" || die "Tests fail with ${EPYTHON}"
174 }
175
176 python_install_all() {
177 if use doc; then
178 dohtml -r "${WORKDIR}"/html/.
179 dodoc "${DISTDIR}"/${PN}*pdf
180 fi
181 distutils-r1_python_install_all
182 }
183
184 python_install() {
185 distutils-r1_python_install ${SCIPY_FCONFIG}
186 }
187
188 pkg_postinst() {
189 elog "You might want to set the variable SCIPY_PIL_IMAGE_VIEWER"
190 elog "to your prefered image viewer. Example:"
191 elog "\t echo \"export SCIPY_PIL_IMAGE_VIEWER=display\" >> ~/.bashrc"
192 }