Ticket #13666: Portfile

File Portfile, 1.6 KB (added by macports_dharland@…, 17 years ago)

New Portfile

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