1 |
bicatali 07/09/15 10:48:02 |
2 |
|
3 |
Modified: metadata.xml scientificpython-2.6.ebuild ChangeLog |
4 |
Log: |
5 |
Add a src_test, fix mpi (bug #192443), longdescription, update numeric dep, and cleanup |
6 |
(Portage version: 2.1.2.12) |
7 |
|
8 |
Revision Changes Path |
9 |
1.3 dev-python/scientificpython/metadata.xml |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/scientificpython/metadata.xml?rev=1.3&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/scientificpython/metadata.xml?rev=1.3&content-type=text/plain |
13 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/scientificpython/metadata.xml?r1=1.2&r2=1.3 |
14 |
|
15 |
Index: metadata.xml |
16 |
=================================================================== |
17 |
RCS file: /var/cvsroot/gentoo-x86/dev-python/scientificpython/metadata.xml,v |
18 |
retrieving revision 1.2 |
19 |
retrieving revision 1.3 |
20 |
diff -u -r1.2 -r1.3 |
21 |
--- metadata.xml 26 Jun 2006 16:01:57 -0000 1.2 |
22 |
+++ metadata.xml 15 Sep 2007 10:48:01 -0000 1.3 |
23 |
@@ -3,4 +3,14 @@ |
24 |
<pkgmetadata> |
25 |
<herd>python</herd> |
26 |
<herd>sci</herd> |
27 |
+<longdescription lang="en"> |
28 |
+ScientificPython is a collection of Python modules that are useful for |
29 |
+scientific computing. In this collection you will find modules that |
30 |
+cover basic geometry (vectors, tensors, transformations, vector and |
31 |
+tensor fields), quaternions, automatic derivatives, linear |
32 |
+interpolation, polynomials, elementary statistics, nonlinear |
33 |
+least-squares fits, unit calculations, Fortran-compatible text |
34 |
+formatting, 3D visualization via VRML, and two Tk widgets for simple |
35 |
+line plots and 3D wireframe models. |
36 |
+</longdescription> |
37 |
</pkgmetadata> |
38 |
|
39 |
|
40 |
|
41 |
1.3 dev-python/scientificpython/scientificpython-2.6.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/scientificpython/scientificpython-2.6.ebuild?rev=1.3&view=markup |
44 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/scientificpython/scientificpython-2.6.ebuild?rev=1.3&content-type=text/plain |
45 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/scientificpython/scientificpython-2.6.ebuild?r1=1.2&r2=1.3 |
46 |
|
47 |
Index: scientificpython-2.6.ebuild |
48 |
=================================================================== |
49 |
RCS file: /var/cvsroot/gentoo-x86/dev-python/scientificpython/scientificpython-2.6.ebuild,v |
50 |
retrieving revision 1.2 |
51 |
retrieving revision 1.3 |
52 |
diff -u -r1.2 -r1.3 |
53 |
--- scientificpython-2.6.ebuild 17 Oct 2006 04:14:04 -0000 1.2 |
54 |
+++ scientificpython-2.6.ebuild 15 Sep 2007 10:48:01 -0000 1.3 |
55 |
@@ -1,14 +1,12 @@ |
56 |
-# Copyright 1999-2006 Gentoo Foundation |
57 |
+# Copyright 1999-2007 Gentoo Foundation |
58 |
# Distributed under the terms of the GNU General Public License v2 |
59 |
-# $Header: /var/cvsroot/gentoo-x86/dev-python/scientificpython/scientificpython-2.6.ebuild,v 1.2 2006/10/17 04:14:04 dberkholz Exp $ |
60 |
+# $Header: /var/cvsroot/gentoo-x86/dev-python/scientificpython/scientificpython-2.6.ebuild,v 1.3 2007/09/15 10:48:01 bicatali Exp $ |
61 |
|
62 |
MY_P=${P/scientificpython/ScientificPython} |
63 |
-S=${WORKDIR}/${MY_P} |
64 |
DV=1034 # hardcoded download version |
65 |
|
66 |
-inherit distutils |
67 |
+inherit eutils distutils |
68 |
|
69 |
-IUSE="mpi" |
70 |
DESCRIPTION="Scientific Module for Python" |
71 |
SRC_URI="http://sourcesup.cru.fr/frs/download.php/${DV}/${MY_P}.tar.gz" |
72 |
HOMEPAGE="http://dirac.cnrs-orleans.fr/ScientificPython/" |
73 |
@@ -16,25 +14,46 @@ |
74 |
LICENSE="CeCILL-2" |
75 |
KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sparc ~x86" |
76 |
|
77 |
-DEPEND="virtual/python |
78 |
- >=dev-python/numeric-23.0 |
79 |
+IUSE="mpi doc" |
80 |
+ |
81 |
+DEPEND=">=dev-python/numeric-23.8 |
82 |
>=sci-libs/netcdf-3.0 |
83 |
mpi? ( virtual/mpi )" |
84 |
|
85 |
+S=${WORKDIR}/${MY_P} |
86 |
+ |
87 |
+src_unpack() { |
88 |
+ unpack ${A} |
89 |
+ cd "${S}" |
90 |
+ epatch "${FILESDIR}"/${PN}-mpi.patch |
91 |
+} |
92 |
+ |
93 |
src_compile() { |
94 |
distutils_src_compile |
95 |
if use mpi; then |
96 |
cd Src/MPI |
97 |
- ${python} compile.py |
98 |
- dobin mpipython || die "dobin failed" |
99 |
+ "${python}" compile.py || die "compile mpi failed" |
100 |
fi |
101 |
} |
102 |
|
103 |
+src_test() { |
104 |
+ cd "${S}"/build/lib* |
105 |
+ for t in "${S}"/Tests/*tests.py; do |
106 |
+ PYTHONPATH=. "${python}" ${t} || die "test $(basename ${t}) failed" |
107 |
+ done |
108 |
+} |
109 |
+ |
110 |
src_install() { |
111 |
distutils_src_install |
112 |
- |
113 |
- dodoc MANIFEST.in README* Doc/CHANGELOG Doc/*.pdf |
114 |
- dohtml Doc/Reference/* |
115 |
- docinto Examples; dodoc Examples/* |
116 |
- docinto Examples/BSP; dodoc Examples/BSP/* |
117 |
+ # do not install bsp related stuff, since we don't compile the interface |
118 |
+ dodoc README README.MPI Doc/CHANGELOG || die "dodoc failed" |
119 |
+ insinto /usr/share/doc/${PF} |
120 |
+ doins Examples/{demomodule.c,netcdf_demo.py} || die "doins examples failed" |
121 |
+ if use mpi; then |
122 |
+ dobin Src/MPI/mpipython || die "dobin failed" |
123 |
+ doins Examples/mpi.py || die "doins mpi example failed failed" |
124 |
+ fi |
125 |
+ if use doc; then |
126 |
+ dohtml Doc/Reference/* || die "dohtml failed" |
127 |
+ fi |
128 |
} |
129 |
|
130 |
|
131 |
|
132 |
1.14 dev-python/scientificpython/ChangeLog |
133 |
|
134 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/scientificpython/ChangeLog?rev=1.14&view=markup |
135 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/scientificpython/ChangeLog?rev=1.14&content-type=text/plain |
136 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/scientificpython/ChangeLog?r1=1.13&r2=1.14 |
137 |
|
138 |
Index: ChangeLog |
139 |
=================================================================== |
140 |
RCS file: /var/cvsroot/gentoo-x86/dev-python/scientificpython/ChangeLog,v |
141 |
retrieving revision 1.13 |
142 |
retrieving revision 1.14 |
143 |
diff -u -r1.13 -r1.14 |
144 |
--- ChangeLog 22 Feb 2007 00:51:13 -0000 1.13 |
145 |
+++ ChangeLog 15 Sep 2007 10:48:01 -0000 1.14 |
146 |
@@ -1,6 +1,13 @@ |
147 |
# ChangeLog for dev-python/scientificpython |
148 |
# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 |
149 |
-# $Header: /var/cvsroot/gentoo-x86/dev-python/scientificpython/ChangeLog,v 1.13 2007/02/22 00:51:13 peper Exp $ |
150 |
+# $Header: /var/cvsroot/gentoo-x86/dev-python/scientificpython/ChangeLog,v 1.14 2007/09/15 10:48:01 bicatali Exp $ |
151 |
+ |
152 |
+ 15 Sep 2007; Sébastien Fabbro <bicatali@g.o> |
153 |
+ +files/scientificpython-mpi.patch, metadata.xml, |
154 |
+ scientificpython-2.6.ebuild: |
155 |
+ Add a src_test, fix mpi (bug #192443, thanks JTRiley |
156 |
+ <justin.t.riley@×××××.com>), adde longdescription, updated numeric |
157 |
+ dependency, and cleanup. |
158 |
|
159 |
22 Feb 2007; Piotr Jaroszyński <peper@g.o> ChangeLog: |
160 |
Transition to Manifest2. |
161 |
|
162 |
|
163 |
|
164 |
-- |
165 |
gentoo-commits@g.o mailing list |