Gentoo Archives: gentoo-commits

From: "Justin Lecher (jlec)" <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/scientificpython: scientificpython-2.9-r1.ebuild ChangeLog
Date: Wed, 17 Feb 2010 21:44:02
Message-Id: E1Nhrge-00009D-7b@stork.gentoo.org
1 jlec 10/02/17 21:44:00
2
3 Modified: ChangeLog
4 Added: scientificpython-2.9-r1.ebuild
5 Log:
6 PREFIX ready, and keyworded for ~amd64-linux ~x86-linux
7 (Portage version: 2.2_rc62/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.30 dev-python/scientificpython/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/scientificpython/ChangeLog?rev=1.30&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/scientificpython/ChangeLog?rev=1.30&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/scientificpython/ChangeLog?r1=1.29&r2=1.30
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-python/scientificpython/ChangeLog,v
19 retrieving revision 1.29
20 retrieving revision 1.30
21 diff -u -r1.29 -r1.30
22 --- ChangeLog 2 Feb 2010 17:02:19 -0000 1.29
23 +++ ChangeLog 17 Feb 2010 21:43:59 -0000 1.30
24 @@ -1,6 +1,12 @@
25 # ChangeLog for dev-python/scientificpython
26 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-python/scientificpython/ChangeLog,v 1.29 2010/02/02 17:02:19 bicatali Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-python/scientificpython/ChangeLog,v 1.30 2010/02/17 21:43:59 jlec Exp $
29 +
30 +*scientificpython-2.9-r1 (17 Feb 2010)
31 +
32 + 17 Feb 2010; Justin Lecher (jlec) <jlec@g.o>
33 + +scientificpython-2.9-r1.ebuild:
34 + PREFIX ready, and keyworded for ~amd64-linux ~x86-linux
35
36 02 Feb 2010; Sébastien Fabbro <bicatali@g.o>
37 scientificpython-2.9.ebuild, +files/scientificpython-2.9-mpi-netcdf.patch:
38
39
40
41 1.1 dev-python/scientificpython/scientificpython-2.9-r1.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/scientificpython/scientificpython-2.9-r1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/scientificpython/scientificpython-2.9-r1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: scientificpython-2.9-r1.ebuild
47 ===================================================================
48 # Copyright 1999-2010 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/dev-python/scientificpython/scientificpython-2.9-r1.ebuild,v 1.1 2010/02/17 21:43:59 jlec Exp $
51
52 EAPI="3"
53 SUPPORT_PYTHON_ABIS="1"
54
55 inherit distutils eutils
56
57 MY_PN="ScientificPython"
58 DV="2372" # hardcoded download version
59
60 DESCRIPTION="Scientific Module for Python"
61 SRC_URI="http://sourcesup.cru.fr/frs/download.php/${DV}/${MY_PN}-${PV}.tar.gz"
62 HOMEPAGE="http://sourcesup.cru.fr/projects/scientific-py/"
63
64 LICENSE="CeCILL-2"
65 SLOT="0"
66 KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux"
67 IUSE="doc mpi test"
68
69 RDEPEND="dev-python/numpy
70 || ( =sci-libs/netcdf-3.6* >=sci-libs/netcdf-4[mpi=] )
71 mpi? ( virtual/mpi )"
72 DEPEND="${RDEPEND}
73 test? ( dev-python/nose )"
74 RESTRICT_PYTHON_ABIS="3.*"
75
76 S="${WORKDIR}/${MY_PN}-${PV}.0"
77
78 PYTHON_MODNAME="Scientific"
79
80 src_prepare() {
81 distutils_src_prepare
82 epatch "${FILESDIR}/${P}-mpi.patch"
83 use mpi && epatch "${FILESDIR}/${P}-mpi-netcdf.patch"
84 }
85
86 src_compile() {
87 distutils_src_compile
88 if use mpi; then
89 cd Src/MPI
90 building_of_mpipython() {
91 PYTHONPATH="$(ls -d ../../build-${PYTHON_ABI}/lib*)" "$(PYTHON)" compile.py
92 mv -f mpipython mpipython-${PYTHON_ABI}
93 }
94 python_execute_function --action-message 'Building of mpipython with Python ${PYTHON_ABI}...' --failure-message 'Building of mpipython failed with Python ${PYTHON_ABI}' building_of_mpipython
95 fi
96 }
97
98 src_test() {
99 cd Tests
100 testing() {
101 PYTHONPATH="$(ls -d ../build-${PYTHON_ABI}/lib.*)" nosetests-${PYTHON_ABI}
102 }
103 python_execute_function testing
104 }
105
106 src_install() {
107 distutils_src_install
108 # do not install bsp related stuff, since we don't compile the interface
109 dodoc README README.MPI Doc/CHANGELOG || die "dodoc failed"
110 insinto /usr/share/doc/${PF}
111 doins Examples/{demomodule.c,netcdf_demo.py} || die "doins examples failed"
112
113 if use mpi; then
114 installation_of_mpipython() {
115 dobin Src/MPI/mpipython-${PYTHON_ABI}
116 }
117 python_execute_function -q installation_of_mpipython
118 python_generate_wrapper_scripts "${ED}usr/bin/mpipython"
119 doins Examples/mpi.py || die "doins mpi example failed failed"
120 fi
121
122 if use doc; then
123 dohtml Doc/Reference/* || die "dohtml failed"
124 fi
125 }