<pre style='margin:0'>
Frank Schima (mf2k) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/f8c61840a95618027998781ec4e66cd3a7d5cd89">https://github.com/macports/macports-ports/commit/f8c61840a95618027998781ec4e66cd3a7d5cd89</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new f8c6184 isce2: new port
</span>f8c6184 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit f8c61840a95618027998781ec4e66cd3a7d5cd89
</span>Author: piyushrpt <piyushrpt@users.noreply.github.com>
AuthorDate: Mon Jul 8 15:47:41 2019 -0700
<span style='display:block; white-space:pre;color:#404040;'> isce2: new port
</span>---
python/py-isce2/Portfile | 155 ++++++++++++++++++++++++++++++++++
python/py-isce2/files/gcc_SconfigISCE | 12 +++
2 files changed, 167 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-isce2/Portfile b/python/py-isce2/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..4e69e6c
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/python/py-isce2/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,155 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# -*- 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
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortSystem 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup github 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup python 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup active_variants 1.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup compilers 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.setup isce-framework isce2 2.3.1 v
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+name py-isce2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+platforms darwin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license Apache
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers {gps.caltech.edu:piyush @piyushrpt} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ openmaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description Library for SAR data processing
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description ${description}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums sha256 abe83267967727e7a474faa42150cf5c0ed25a3001445797b6e9297fb7fe395c \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ rmd160 3608d94774212b03ed5d55d049cc0a1e586b6476 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 5370341
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+use_configure no
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#####Python information
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+python.versions 36 37
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+python.default_version 37
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+python.add_archflags no
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+universal_variant no
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set workconfpath ${workpath}/config
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set workbldpath ${workpath}/build
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set workinstallpath ${workpath}/isce
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+####Build parameters
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+build.cmd "SCONS_CONFIG_DIR=${workconfpath} ${prefix}/bin/scons"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+build.target install
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+use_parallel_build no
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#Currently testing only gcc >= 6
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#We will be supporting clang from v2.3.2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+compilers.setup -clang -gcc44 -gcc45 -gcc46 -gcc47 -gcc48 -gcc49 -gcc5 -g95 -gfortran
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#Check if compiler is set
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {![gcc_variant_isset]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ default_variants-append +gcc7
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# From Portfile for nodejs10
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+proc rec_glob {basedir pattern} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set files [glob -directory $basedir -nocomplain -type f $pattern]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach dir [glob -directory $basedir -nocomplain -type d *] {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ lappend files {*}[rec_glob $dir $pattern]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return $files
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {${name} ne ${subport}} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ notes-append "
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+After installation
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+------------------
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+After installation and before using ISCE, do the following:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+1) Set environment variable ISCE_HOME=${python.pkgd}/isce .
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+2) Append \$ISCE_HOME/applications and \$ISCE_HOME/bin to PATH.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+3) Stack processing scripts can be found under ${prefix}/share/${subport}/stack
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Other important notes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+----------------------
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+1) GDAL is required for working with Radarsat2, Terrasar-X and Sentinel 1-A. Suggested variant of gdal is +expat+geos+hdf5+netcdf+postgresql95+sqlite3
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+2) One can use isce2 with other packages like SpiceyPy, sarpy etc. These will need to be installed from source separately.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_build-append port:scons
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_lib-append port:bzip2 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:curl \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:hdf5 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:fftw-3\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:fftw-3-single\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:gdal \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:hdf5 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:openmotif \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${python.version}-cython\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${python.version}-gdal \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${python.version}-numpy \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${python.version}-setuptools
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_run-append port:py${python.version}-h5py \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${python.version}-gdal \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${python.version}-nose \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${python.version}-scipy
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ require_active_variants port:curl ssl
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ post-patch {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ###Replace cython3 with full path
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set cypath ${prefix}/bin/cython-${python.branch}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|cython3|${cypath}|g" ${worksrcpath}/SConstruct
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|cython3|${cypath}|g" ${worksrcpath}/library/isceLib/pyx/SConscript
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|cython3|${cypath}|g" ${worksrcpath}/contrib/splitSpectrum/pyx/SConscript
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ###Replace /usr/bin/env/python in all python files
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ###From Portfile of nodejs10
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach f [rec_glob ${worksrcpath} *.py] {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace -q "s|/usr/bin/env python3|/usr/bin/env python${python.branch}|g" ${f}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ pre-configure {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -d ${workconfpath}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -d ${workbldpath}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #For gcc, set libstdc++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.cxx_stdlib libstdc++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #Setup SConfigISCE and config dir here
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set gccvar [gcc_variant_name]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set gcclast [string index ${gccvar} end]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set cfgname ${workconfpath}/SConfigISCE
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file copy -force ${filespath}/gcc_SconfigISCE ${cfgname}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|@@BLDPATH@@|${workbldpath}|g" ${cfgname}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|@@INSTALLPATH@@|${workinstallpath}|g" ${cfgname}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|@@PREFIX@@|${prefix}|g" ${cfgname}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|@@PYINCLUDE@@|${python.include}|g" ${cfgname}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|@@GCCLAST@@|${gcclast}|g" ${cfgname}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 755 -d ${destroot}${python.pkgd}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file copy -force ${workinstallpath} ${destroot}${python.pkgd}/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 755 -d \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${prefix}/share/${subport}/stack \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${prefix}/share/${subport}/stack/stripmapStack \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${prefix}/share/${subport}/stack/topsStack
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 755 {*}[glob ${worksrcpath}/contrib/stack/stripmapStack/*] \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${prefix}/share/${subport}/stack/stripmapStack
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 755 {*}[glob ${worksrcpath}/contrib/stack/topsStack/*] \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${prefix}/share/${subport}/stack/topsStack
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ livecheck.type none
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-isce2/files/gcc_SconfigISCE b/python/py-isce2/files/gcc_SconfigISCE
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..23a2fe0
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/python/py-isce2/files/gcc_SconfigISCE
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,12 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PRJ_SCONS_BUILD = @@BLDPATH@@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PRJ_SCONS_INSTALL = @@INSTALLPATH@@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+LIBPATH = @@PREFIX@@/lib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+CPPPATH = @@PYINCLUDE@@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+CC = @@PREFIX@@/bin/gcc-mp-@@GCCLAST@@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+CXX = @@PREFIX@@/bin/g++-mp-@@GCCLAST@@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+FORTRANPATH = @@PREFIX@@/include
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+FORTRAN = @@PREFIX@@/bin/gfortran-mp-@@GCCLAST@@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+MOTIFLIBPATH = @@PREFIX@@/lib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+X11LIBPATH = @@PREFIX@@/lib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+MOTIFINCPATH = @@PREFIX@@/include
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+X11INCPATH = @@PREFIX@@/include
</span></pre><pre style='margin:0'>
</pre>