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.11.0.ebuild ChangeLog
Date: Mon, 29 Oct 2012 14:35:44
Message-Id: 20121029143519.EEFF021600@flycatcher.gentoo.org
1 bicatali 12/10/29 14:35:19
2
3 Modified: ChangeLog
4 Added: scipy-0.11.0.ebuild
5 Log:
6 Version bump
7
8 (Portage version: 2.2.0_alpha141/cvs/Linux x86_64, signed Manifest commit with key 0x13CB1360)
9
10 Revision Changes Path
11 1.81 sci-libs/scipy/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/scipy/ChangeLog?rev=1.81&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/scipy/ChangeLog?rev=1.81&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/scipy/ChangeLog?r1=1.80&r2=1.81
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sci-libs/scipy/ChangeLog,v
20 retrieving revision 1.80
21 retrieving revision 1.81
22 diff -u -r1.80 -r1.81
23 --- ChangeLog 16 Oct 2012 19:47:58 -0000 1.80
24 +++ ChangeLog 29 Oct 2012 14:35:19 -0000 1.81
25 @@ -1,6 +1,11 @@
26 # ChangeLog for sci-libs/scipy
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/scipy/ChangeLog,v 1.80 2012/10/16 19:47:58 jlec Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/scipy/ChangeLog,v 1.81 2012/10/29 14:35:19 bicatali Exp $
30 +
31 +*scipy-0.11.0 (29 Oct 2012)
32 +
33 + 29 Oct 2012; Sébastien Fabbro <bicatali@g.o> +scipy-0.11.0.ebuild:
34 + Version bump
35
36 16 Oct 2012; Justin Lecher <jlec@g.o> scipy-0.9.0-r1.ebuild,
37 scipy-0.10.1.ebuild:
38
39
40
41 1.1 sci-libs/scipy/scipy-0.11.0.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/scipy/scipy-0.11.0.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/scipy/scipy-0.11.0.ebuild?rev=1.1&content-type=text/plain
45
46 Index: scipy-0.11.0.ebuild
47 ===================================================================
48 # Copyright 1999-2012 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.11.0.ebuild,v 1.1 2012/10/29 14:35:19 bicatali Exp $
51
52 EAPI=4
53
54 PYTHON_DEPEND="*::3.2"
55 SUPPORT_PYTHON_ABIS="1"
56 RESTRICT_PYTHON_ABIS="3.3 *-jython *-pypy-*"
57
58 inherit eutils fortran-2 distutils flag-o-matic toolchain-funcs
59
60 DESCRIPTION="Scientific algorithms library for Python"
61 HOMEPAGE="http://www.scipy.org/ http://pypi.python.org/pypi/scipy"
62 SRC_URI="
63 mirror://sourceforge/${PN}/${P}.tar.gz
64 doc? (
65 http://docs.scipy.org/doc/${P}/${PN}-html.zip -> ${P}-html.zip
66 http://docs.scipy.org/doc/${P}/${PN}-ref.pdf -> ${P}-ref.pdf
67 )"
68
69 LICENSE="BSD LGPL-2"
70 SLOT="0"
71 IUSE="doc test umfpack"
72 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
73
74 CDEPEND="
75 dev-python/numpy
76 sci-libs/arpack
77 virtual/cblas
78 virtual/lapack
79 umfpack? ( sci-libs/umfpack )"
80 DEPEND="${CDEPEND}
81 virtual/pkgconfig
82 doc? ( app-arch/unzip )
83 test? ( dev-python/nose )
84 umfpack? ( dev-lang/swig )"
85
86 RDEPEND="${CDEPEND}
87 dev-python/imaging"
88
89 DOCS="THANKS.txt LATEST.txt TOCHANGE.txt"
90
91 pkg_setup() {
92 fortran-2_pkg_setup
93 # scipy automatically detects libraries by default
94 export {FFTW,FFTW3,UMFPACK}=None
95 use umfpack && unset UMFPACK
96 # the missing symbols are in -lpythonX.Y, but since the version can
97 # differ, we just introduce the same scaryness as on Linux/ELF
98 [[ ${CHOST} == *-darwin* ]] \
99 && append-ldflags -bundle "-undefined dynamic_lookup" \
100 || append-ldflags -shared
101 [[ -z ${FC} ]] && export FC="$(tc-getFC)"
102 # hack to force F77 to be FC until bug #278772 is fixed
103 [[ -z ${F77} ]] && export F77="$(tc-getFC)"
104 export F90="${FC}"
105 export SCIPY_FCONFIG="config_fc --noopt --noarch"
106 append-fflags -fPIC
107 python_pkg_setup
108 }
109
110 src_unpack() {
111 unpack ${P}.tar.gz
112 if use doc; then
113 unzip -qo "${DISTDIR}"/${P}-html.zip -d html || die
114 fi
115 }
116
117 pc_incdir() {
118 pkg-config --cflags-only-I $@ | \
119 sed -e 's/^-I//' -e 's/[ ]*-I/:/g'
120 }
121
122 pc_libdir() {
123 pkg-config --libs-only-L $@ | \
124 sed -e 's/^-L//' -e 's/[ ]*-L/:/g'
125 }
126
127 pc_libs() {
128 pkg-config --libs-only-l $@ | \
129 sed -e 's/[ ]-l*\(pthread\|m\)[ ]*//g' \
130 -e 's/^-l//' -e 's/[ ]*-l/,/g'
131 }
132
133 src_prepare() {
134 local libdir="${EPREFIX}"/usr/$(get_libdir)
135 cat >> site.cfg <<-EOF
136 [blas]
137 include_dirs = $(pc_incdir cblas)
138 library_dirs = $(pc_libdir cblas blas):${libdir}
139 blas_libs = $(pc_libs cblas blas)
140 [lapack]
141 library_dirs = $(pc_libdir lapack):${libdir}
142 lapack_libs = $(pc_libs lapack)
143 EOF
144 }
145
146 src_compile() {
147 distutils_src_compile ${SCIPY_FCONFIG}
148 }
149
150 src_test() {
151 testing() {
152 "$(PYTHON)" setup.py build -b "build-${PYTHON_ABI}" install \
153 --home="${S}/test-${PYTHON_ABI}" --no-compile ${SCIPY_FCONFIG} \
154 || die "install test failed"
155 pushd "${S}/test-${PYTHON_ABI}/"lib*/python > /dev/null
156 PYTHONPATH=. "$(PYTHON)" -c "import scipy; scipy.test('full')" \
157 2>&1 | tee test.log
158 grep -q ^ERROR test.log && die "test failed"
159 popd > /dev/null
160 rm -fr test-${PYTHON_ABI}
161 }
162 python_execute_function testing
163 }
164
165 src_install() {
166 distutils_src_install ${SCIPY_FCONFIG}
167 use doc && dohtml -r "${WORKDIR}"/html/* && dodoc "${DISTDIR}"/${P}*pdf
168 }
169
170 pkg_postinst() {
171 distutils_pkg_postinst
172 elog "You might want to set the variable SCIPY_PIL_IMAGE_VIEWER"
173 elog "to your prefered image viewer if you don't like the default one. Ex:"
174 elog "\t echo \"export SCIPY_PIL_IMAGE_VIEWER=display\" >> ~/.bashrc"
175 }