[63351] trunk/dports/python
takeshi at macports.org
takeshi at macports.org
Wed Feb 3 05:12:13 PST 2010
Revision: 63351
http://trac.macports.org/changeset/63351
Author: takeshi at macports.org
Date: 2010-02-03 05:12:08 -0800 (Wed, 03 Feb 2010)
Log Message:
-----------
adding py26-ngl
Added Paths:
-----------
trunk/dports/python/py26-ngl/
trunk/dports/python/py26-ngl/Portfile
Added: trunk/dports/python/py26-ngl/Portfile
===================================================================
--- trunk/dports/python/py26-ngl/Portfile (rev 0)
+++ trunk/dports/python/py26-ngl/Portfile 2010-02-03 13:12:08 UTC (rev 63351)
@@ -0,0 +1,66 @@
+# -*- 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: Portfile 61984 2009-12-27 02:48:05Z ryandesign at macports.org $
+
+PortSystem 1.0
+PortGroup python26 1.0
+
+name py26-ngl
+version 1.3.0b1
+platforms darwin
+maintainers takeshi
+license PyNGL
+categories python science
+description module to visualize scientific data
+homepage http://www.pyngl.ucar.edu/
+master_sites http://www.pyngl.ucar.edu/Download/
+distname PyNGL-${version}
+checksums md5 231e0ad8ab7f295483f131367ab856cc \
+ sha1 76bbb03c05f0acb1591172543d3decc7c4397422 \
+ rmd160 bd4357d46af0a723cd81c16bdb0ecc3df03fa6a2
+
+long_description \
+ PyNGL is a Python language module used to visualize scientific data, \
+ with an emphasis on high quality 2D visualizations.
+
+fetch {
+ if {![file exists ${distpath}/${distfiles}]} {
+ xinstall -d ${distpath}
+ ui_error "Download ${distfiles} manually and place it in ${distpath}.\n \
+ See instructions on ${master_sites}"
+ }
+}
+
+patch {
+ reinplace "s|/usr/X11R6/lib|${prefix}/lib|" ${worksrcpath}/setup.py
+ reinplace "s|/usr/bin/env python|${prefix}/bin/python2.6|" ${worksrcpath}/examples/pynglex
+ reinplace "s|py_cmd = 'python'|py_cmd = '${prefix}/bin/python2.6'|" ${worksrcpath}/examples/pynglex
+}
+
+depends_lib-append port:py26-nio
+
+configure.compiler macports-gcc-4.3
+build.env PNG_PREFIX=${prefix} \
+ ZLIB_PREFIX=${prefix} \
+ CC=${configure.cc} \
+ F2CLIBS=gfortran \
+ F2CLIBS_PREFIX=${prefix}/lib/gcc43 \
+ NCARG_ROOT=${prefix}
+destroot.env NCARG_ROOT=${prefix}
+
+if {![variant_isset g95] && ![variant_isset universal]} {
+ default_variants +gcc43
+}
+
+variant gcc43 conflicts g95 description {link to libraries build with gfortran} {
+ build.env-append F2CLIBS=gfortran \
+ F2CLIBS_PREFIX=${prefix}/lib/gcc43
+}
+
+variant g95 conflicts gcc43 description {link to libraries build with g95} {
+ build.env-append F2CLIBS=f95 \
+ F2CLIBS_PREFIX=${prefix}/lib
+}
+
+livecheck.type regex
+livecheck.url ${master_sites}
+livecheck.regex {The current version of PyNGL and PyNIO is ([0-9]\.[0-9]\.[0-9][a-z]+[0-9]+)}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100203/a9153e55/attachment.html>
More information about the macports-changes
mailing list