[152434] trunk/dports/python
mojca at macports.org
mojca at macports.org
Thu Sep 8 11:52:35 PDT 2016
Revision: 152434
https://trac.macports.org/changeset/152434
Author: mojca at macports.org
Date: 2016-09-08 11:52:35 -0700 (Thu, 08 Sep 2016)
Log Message:
-----------
py-spacepy: new port
Added Paths:
-----------
trunk/dports/python/py-spacepy/
trunk/dports/python/py-spacepy/Portfile
Added: trunk/dports/python/py-spacepy/Portfile
===================================================================
--- trunk/dports/python/py-spacepy/Portfile (rev 0)
+++ trunk/dports/python/py-spacepy/Portfile 2016-09-08 18:52:35 UTC (rev 152434)
@@ -0,0 +1,79 @@
+# -*- 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
+# $Id$
+
+PortSystem 1.0
+PortGroup python 1.0
+
+name py-spacepy
+python.rootname spacepy
+version 0.1.6
+platforms darwin
+license PSF
+maintainers mojca openmaintainer
+
+description SpacePy Tools for Space Science Applications
+long_description ${description}
+
+homepage http://spacepy.lanl.gov
+master_sites sourceforge:project/${python.rootname}/${python.rootname}/${python.rootname}-${version}
+distname ${python.rootname}-${version}
+
+checksums rmd160 729328bb82ee15f377390465d90e62222c5d5f45 \
+ sha256 61bc67d638313d264a29450fe59c3d272fa8a1dc80eb44eff3ded9ed9820177c
+
+python.versions 27 34 35
+
+if {${name} ne ${subport}} {
+ # TODO: figure out which ones are build dependencies and which ones are runtime
+ # sudo apt-get install python-dev python-numpy build-essential \
+ # python-scipy python-matplotlib python-networkx python-h5py \
+ # python-f2py gfortran ncurses-dev
+ depends_lib-append \
+ port:cdf \
+ port:py${python.version}-h5py \
+ port:py${python.version}-matplotlib \
+ port:py${python.version}-networkx \
+ port:py${python.version}-numpy \
+ port:py${python.version}-scipy
+
+ # TODO: use the compilers portgroup
+ if {${os.major} > 9} {
+ depends_build-append \
+ port:gcc6
+ configure.env-append \
+ F77=${prefix}/bin/gfortran-mp-6 \
+ F90=${prefix}/bin/gfortran-mp-6
+ build.env-append \
+ F77=${prefix}/bin/gfortran-mp-6 \
+ F90=${prefix}/bin/gfortran-mp-6
+ } else {
+ # https://trac.macports.org/ticket/51388
+ depends_build-append \
+ port:gcc5
+ configure.env-append \
+ F77=${prefix}/bin/gfortran-mp-5 \
+ F90=${prefix}/bin/gfortran-mp-5
+ build.env-append \
+ F77=${prefix}/bin/gfortran-mp-5 \
+ F90=${prefix}/bin/gfortran-mp-5
+ }
+
+ # ffnet not found; required for LANLstar.
+ # - see http://ffnet.sourceforge.net/install.html
+ # f2py failed; IRBEM will not be available.
+
+ configure.env-append \
+ PATH=$env(PATH):${python.prefix}/bin
+ build.env-append \
+ PATH=$env(PATH):${python.prefix}/bin
+
+ post-destroot {
+ set destdocdir ${destroot}${prefix}/share/doc/${subport}
+ xinstall -d -m 0755 ${destdocdir}
+ file copy ${worksrcpath}/Doc/build/latex/SpacePy.pdf ${destdocdir}
+ }
+
+ livecheck.type none
+} else {
+ livecheck.regex "${python.rootname}-(\[a-zA-Z0-9.\]+)\/${python.rootname}-"
+}
Property changes on: trunk/dports/python/py-spacepy/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160908/a2604628/attachment-0001.html>
More information about the macports-changes
mailing list