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