1 | # $Id: Portfile 30598 2007-11-01 10:29:38Z afb@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | PortGroup python24 1.0 |
---|
5 | |
---|
6 | name py-numeric |
---|
7 | version 24.2 |
---|
8 | revision 2 |
---|
9 | categories python devel math |
---|
10 | maintainers nomaintainer |
---|
11 | platforms darwin |
---|
12 | description fast numerical array language for python |
---|
13 | long_description Numerical Python adds a fast, compact, \ |
---|
14 | multidimensional array language facility to Python. |
---|
15 | |
---|
16 | homepage http://www.pfdubois.com/numpy/ |
---|
17 | master_sites sourceforge:numpy freebsd sourceforge:numpy |
---|
18 | distname Numeric-${version} |
---|
19 | checksums md5 2ae672656e06716a149acb048cca3093 |
---|
20 | |
---|
21 | patchfiles patch-ranf.c \ |
---|
22 | patch-Src-arrayobject.c \ |
---|
23 | patch-Packages-dotblas-_dotblas.c \ |
---|
24 | patch-changes.txt |
---|
25 | |
---|
26 | platform darwin 8 { |
---|
27 | build.env CC=/usr/bin/gcc-4.0 |
---|
28 | } |
---|
29 | |
---|
30 | platform macosx { |
---|
31 | post-patch { |
---|
32 | file copy -force ${filespath}/customize.py-macosx ${worksrcpath}/customize.py |
---|
33 | } |
---|
34 | } |
---|
35 | |
---|
36 | platform puredarwin { |
---|
37 | post-patch { |
---|
38 | file copy -force ${filespath}/customize.py-puredarwin ${worksrcpath}/customize.py |
---|
39 | } |
---|
40 | } |
---|
41 | |
---|
42 | test.run yes |
---|
43 | test.env PYTHONPATH=[glob -nocomplain ${worksrcpath}/build/lib*] |
---|
44 | test.cmd ${python.bin} Test/test.py |
---|
45 | test.target |
---|
46 | |
---|
47 | set doc ${destroot}${prefix}/share/doc/${name} |
---|
48 | post-destroot { |
---|
49 | xinstall -d -m 755 ${doc}/dotblas ${doc}/MA ${doc}/RNG |
---|
50 | xinstall -W ${worksrcpath} README changes.txt ${doc} |
---|
51 | xinstall -m 644 ${worksrcpath}/Packages/dotblas/doc/README.html \ |
---|
52 | ${doc}/dotblas |
---|
53 | xinstall -m 644 -W ${worksrcpath}/Packages/MA Legal.htm changes.txt \ |
---|
54 | ${doc}/MA |
---|
55 | xinstall -m 644 ${worksrcpath}/Packages/RNG/Legal.htm ${doc}/RNG |
---|
56 | file copy ${worksrcpath}/Demo ${doc} |
---|
57 | file copy ${worksrcpath}/Packages/MA/Demo ${doc}/MA |
---|
58 | } |
---|
59 | |
---|