Annotation of /trunk/todo/numeric/numeric-24.2-r3.smage2
Parent Directory | Revision Log
Revision 2 -
(hide annotations)
(download)
Fri Oct 10 13:29:42 2008 UTC (16 years ago) by niro
Original Path: trunk/extras/numeric/numeric-24.2-r3.smage2
File size: 1783 byte(s)
Fri Oct 10 13:29:42 2008 UTC (16 years ago) by niro
Original Path: trunk/extras/numeric/numeric-24.2-r3.smage2
File size: 1783 byte(s)
import repo
1 | niro | 2 | # $Header: /magellan-cvs/smage/numeric/numeric-24.2-r3.smage2,v 1.1 2008/04/20 22:47:33 niro Exp $ |
2 | |||
3 | PNAME="numeric" | ||
4 | PVER="24.2" | ||
5 | PBUILD="r3" | ||
6 | |||
7 | PCATEGORIE="dev-python" | ||
8 | STATE="unstable" | ||
9 | |||
10 | DESCRIPTION="Numerical Python adds a fast and sophisticated array facility to the Python language." | ||
11 | HOMEPAGE="http://numpy.scipy.org/" | ||
12 | |||
13 | DEPEND=">= dev-lang/python-2.5" | ||
14 | |||
15 | SRCFILE="${PNAME/n/N}-${PVER}.tar.gz" | ||
16 | SRCDIR="${BUILDDIR}/${PNAME/n/N}-${PVER}" | ||
17 | |||
18 | sminclude python | ||
19 | |||
20 | MPVER="${PVER}" | ||
21 | SPECIAL_FUNCTIONS="get_python_version" | ||
22 | SPECIAL_VARS="MPVER" | ||
23 | |||
24 | SRC_URI=( | ||
25 | sourceforge://numpy/${SRCFILE} | ||
26 | mirror://${PNAME}/${SRCFILE} | ||
27 | mirror://${PNAME}/${PNAME}-${PVER}-arrayobject.patch | ||
28 | mirror://${PNAME}/${PNAME}-${PVER}-umath.patch | ||
29 | mirror://${PNAME}/${PNAME}-${PVER}-eigen.patch | ||
30 | mirror://${PNAME}/${PNAME}-${PVER}-test.patch | ||
31 | mirror://${PNAME}/${PNAME}-${PVER}-python25.patch | ||
32 | mirror://${PNAME}/${PNAME}-${PVER}-dotblas.patch | ||
33 | ) | ||
34 | |||
35 | src_prepare() | ||
36 | { | ||
37 | munpack ${SRCFILE} || die | ||
38 | cd ${SRCDIR} | ||
39 | |||
40 | # apply some fixes from gentoo | ||
41 | # fix list problem | ||
42 | mpatch ${PNAME}-${PVER}-arrayobject.patch || die | ||
43 | # fix skips of acosh, asinh | ||
44 | mpatch ${PNAME}-${PVER}-umath.patch || die | ||
45 | # fix eigenvalue hang | ||
46 | mpatch ${PNAME}-${PVER}-eigen.patch || die | ||
47 | # fix a bug in the test | ||
48 | mpatch ${PNAME}-${PVER}-test.patch || die | ||
49 | # fix only for python-2.5 | ||
50 | mpatch ${PNAME}-${PVER}-python25.patch || die | ||
51 | # fix for dotblas from uncommited cvs | ||
52 | mpatch ${PNAME}-${PVER}-dotblas.patch || die | ||
53 | } | ||
54 | |||
55 | preinstall() | ||
56 | { | ||
57 | # with older setuptools this one is a file, newer one install a directory | ||
58 | if [[ -f /usr/$(mlibdir)/python$(get_python_version)/site-packages/Numeric/Numeric-${MPVER}-py$(get_python_version).egg-info ]] | ||
59 | then | ||
60 | rm /usr/$(mlibdir)/python$(get_python_version)/site-packages/Numeric/Numeric-${MPVER}-py$(get_python_version).egg-info | ||
61 | fi | ||
62 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |