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