/
Portfile
48 lines (38 loc) · 1.72 KB
/
Portfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
PortSystem 1.0
PortGroup python 1.0
name py-nibabel
version 3.0.1
revision 0
supported_archs noarch
platforms {darwin any}
license MIT
maintainers nomaintainer
description Access a cacophony of neuro-imaging file formats
long_description Nibabel provides read and write access to some \
common medical and neuroimaging file formats, \
including: ANALYZE (plain, SPM99, SPM2), GIFTI, \
NIfTI1, MINC, MGH and ECAT as well as PAR/REC. We \
can read and write Freesurfer geometry, and read \
Freesurfer morphometry and annotation files. There \
is some very limited support for DICOM. NiBabel is \
the successor of PyNIfTI.
homepage https://nipy.org/nibabel
checksums rmd160 47b7357893b3ca436a4c8371796ac450aff2590c \
sha256 d38c657eca6ae3d246db9019549be5448b7a0a6683240c96bff2cebf91b7d422 \
size 4615979
python.versions 38
if {${name} ne ${subport}} {
depends_lib-append \
port:py${python.version}-numpy \
port:py${python.version}-setuptools
post-patch {
reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/setup.py
}
post-destroot {
set docdir ${prefix}/share/doc/${subport}
xinstall -d ${destroot}${docdir}
xinstall -m 0644 -W ${worksrcpath} README.rst AUTHOR COPYING \
Changelog ${destroot}${docdir}
}
}