<pre style='margin:0'>
Renee Otten (reneeotten) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/b9ff7a9b72cdba56b09d406c19c1c6f64ed5a1f2">https://github.com/macports/macports-ports/commit/b9ff7a9b72cdba56b09d406c19c1c6f64ed5a1f2</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit b9ff7a9b72cdba56b09d406c19c1c6f64ed5a1f2
</span>Author: Renee Otten <reneeotten@macports.org>
AuthorDate: Sun Aug 15 13:50:10 2021 -0400
<span style='display:block; white-space:pre;color:#404040;'> nds2-client-swig: conform to modeline
</span>---
science/nds2-client-swig/Portfile | 244 ++++++++++++++++++++------------------
1 file changed, 126 insertions(+), 118 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/science/nds2-client-swig/Portfile b/science/nds2-client-swig/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index b6095bd74a3..bf188635ba5 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/science/nds2-client-swig/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/science/nds2-client-swig/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,86 +1,85 @@
</span> # -*- 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 style='display:block; white-space:pre;background:#ffe0e0;'>-PortSystem 1.0
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-PortGroup cmake 1.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortSystem 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup cmake 1.1
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-name nds2-client-swig
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-version 0.16.10
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+name nds2-client-swig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+version 0.16.10
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 0
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-categories science
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-platforms darwin
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-license GPL-2
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-maintainers {ligo.org:ed.maros @emaros} openmaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories science
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+platforms darwin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license GPL-2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers {ligo.org:ed.maros @emaros} openmaintainer
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-description Network Data Server Client
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-long_description \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- Client tool for accessing streamed LIGO data using the Network \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- Data Server version 2.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description Network Data Server Client
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description Client tool for accessing streamed LIGO data using the Network \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ Data Server version 2.
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-homepage https://wiki.ligo.org/Computing/NDSClient
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-master_sites https://software.igwn.org/lscsoft/source/
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-use_bzip2 yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+homepage https://wiki.ligo.org/Computing/NDSClient
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+master_sites https://software.igwn.org/lscsoft/source/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+use_bzip2 yes
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-checksums rmd160 b4ba2c3e17387f13ccffcd496468b8cb1668946c \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sha256 ebc7f66d7c41f154f4a1ab3b2f4c574256c851d54f4e83031a68665c687b813e \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- size 164730
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 b4ba2c3e17387f13ccffcd496468b8cb1668946c \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 ebc7f66d7c41f154f4a1ab3b2f4c574256c851d54f4e83031a68665c687b813e \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 164730
</span>
depends_build-append \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- port:pkgconfig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:pkgconfig
</span>
depends_lib-append \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- port:nds2-client \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- port:swig3
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:nds2-client \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:swig3
</span>
regsub -all -- "-swig$" ${name} {} basename
<span style='display:block; white-space:pre;background:#ffe0e0;'>-configure.args -DPYTHON=false \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- -DPYTHON_EXECUTABLE=false \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- -DSWIG_EXECUTABLE:FILEPATH=${prefix}/bin/swig3 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- -DENABLE_SWIG_JAVA=no \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- -DENABLE_SWIG_MATLAB=no \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- -DENABLE_SWIG_OCTAVE=no \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- -DENABLE_SWIG_PYTHON2=no \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- -DENABLE_SWIG_PYTHON3=no \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- -DCMAKE_INSTALL_SYSCONFDIR=${prefix}/etc \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- -DCMAKE_BUILD_TYPE=RelWithDebInfo \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- -DCMAKE_EXPORT_COMPILE_COMMANDS=1
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-test.run yes
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-test.cmd ${prefix}/bin/ctest
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-test.target -R '.*'
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-livecheck.type regex
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-livecheck.url ${master_sites}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-livecheck.regex {nds2-client-swig-(\d+(?:\.\d+)*).tar.bz2}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.args -DPYTHON=false \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DPYTHON_EXECUTABLE=false \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DSWIG_EXECUTABLE:FILEPATH=${prefix}/bin/swig3 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DENABLE_SWIG_JAVA=no \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DENABLE_SWIG_MATLAB=no \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DENABLE_SWIG_OCTAVE=no \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DENABLE_SWIG_PYTHON2=no \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DENABLE_SWIG_PYTHON3=no \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DCMAKE_INSTALL_SYSCONFDIR=${prefix}/etc \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DCMAKE_BUILD_TYPE=RelWithDebInfo \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DCMAKE_EXPORT_COMPILE_COMMANDS=1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+test.run yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+test.cmd ${prefix}/bin/ctest
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+test.target -R '.*'
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+livecheck.type regex
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+livecheck.url ${master_sites}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+livecheck.regex {nds2-client-swig-(\d+(?:\.\d+)*).tar.bz2}
</span>
#========================================================================
# Create subports for Java
#========================================================================
subport ${basename}-java {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- PortGroup java 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ PortGroup java 1.0
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>- revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ revision 0
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>- categories-append java
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- description Java bindings for ${description}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- long_description ${long_description} This package provides Java \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- bindings, modules, and scripts.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ categories-append java
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ description Java bindings for ${description}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ long_description ${long_description} This package provides Java \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ bindings, modules, and scripts.
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>- java.version 1.7+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # Set fallback to an LTS Java version
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- java.fallback openjdk8
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ java.version 1.7+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Set fallback to an LTSava version
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ java.fallback openjdk8
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>- depends_build-append port:swig3-java
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_build-append port:swig3-java
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.javac /usr/bin/javac -source 1.7 -target 1.7
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.args-replace -DENABLE_SWIG_JAVA=no -DENABLE_SWIG_JAVA=yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.javac /usr/bin/javac -source 1.7 -target 1.7
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-replace -DENABLE_SWIG_JAVA=no -DENABLE_SWIG_JAVA=yes
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>- destroot.target install
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- destroot.args-append -C ${worksrcpath}/../build/java
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ destroot.target install
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ destroot.args-append -C ${worksrcpath}/../build/java
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>- livecheck.type none
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ livecheck.type none
</span> }
#========================================================================
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -88,32 +87,33 @@ subport ${basename}-java {
</span> #========================================================================
subport ${basename}-matlab {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- PortGroup java 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ PortGroup java 1.0
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>- revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ revision 0
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>- categories-append matlab
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- description MATLAB bindings for ${description}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- long_description ${long_description} This package provides MATLAB \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ categories-append matlab
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ description MATLAB bindings for ${description}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ long_description ${long_description}. This package provides MATLAB \
</span> bindings, modules, and scripts.
<span style='display:block; white-space:pre;background:#ffe0e0;'>- java.version 1.7+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # Set fallback to an LTS Java version
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- java.fallback openjdk8
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- depends_build-append port:swig3-java
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ java.version 1.7+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Set fallback to an LTS Java version
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ java.fallback openjdk8
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_build-append port:swig3-java
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.javac /usr/bin/javac -source 1.7 -target 1.7
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.args-replace -DENABLE_SWIG_JAVA=no -DENABLE_SWIG_JAVA=yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.javac /usr/bin/javac -source 1.7 -target 1.7
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-replace -DENABLE_SWIG_JAVA=no -DENABLE_SWIG_JAVA=yes
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>- depends_lib-append port:${basename}-java
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_lib-append port:${basename}-java
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>- destroot.target install
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ destroot.target install
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.args-replace -DENABLE_SWIG_MATLAB=no -DENABLE_SWIG_MATLAB=yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-replace -DENABLE_SWIG_MATLAB=no -DENABLE_SWIG_MATLAB=yes
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>- destroot.args-append -C ${worksrcpath}/../build/matlab
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ destroot.args-append -C ${worksrcpath}/../build/matlab
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>- livecheck.type none
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ livecheck.type none
</span> }
#========================================================================
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -121,65 +121,73 @@ subport ${basename}-matlab {
</span> #========================================================================
subport ${basename}-octave {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- revision 0
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- categories-append octave
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- description Octave bindings for ${description}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- long_description ${long_description} This package provides Octave \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ categories-append octave
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ description Octave bindings for ${description}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ long_description ${long_description}. This package provides Octave \
</span> bindings, modules, and scripts.
<span style='display:block; white-space:pre;background:#ffe0e0;'>- depends_build-append port:swig3-octave
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- depends_lib-append path:bin/octave:octave
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_build-append port:swig3-octave
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>- destroot.target install
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- destroot.args-append pkgoctexecdir="${prefix}/share/octave/site/m"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_lib-append path:bin/octave:octave
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>- # At least as of Octave 3.2.4, the Octave C++ API does not work with clang.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # compiler.blacklist-append *clang*
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ destroot.target install
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ destroot.args-append pkgoctexecdir="${prefix}/share/octave/site/m"
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.args-replace -DENABLE_SWIG_OCTAVE=no -DENABLE_SWIG_OCTAVE=yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # At least as of Octave 3.2.4, the Octave C++ API does not work with clang.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # compiler.blacklist-append *clang*
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-replace -DENABLE_SWIG_OCTAVE=no -DENABLE_SWIG_OCTAVE=yes
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>- destroot.args-append -C ${worksrcpath}/../build/octave
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ destroot.args-append -C ${worksrcpath}/../build/octave
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>- livecheck.type none
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ livecheck.type none
</span> }
#========================================================================
# Create subports for each supported Python version
#========================================================================
foreach v {27 35 36 37 38 39} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- set python.version ${v}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set python.branch [string index ${python.version} 0].[string range ${python.version} 1 end]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set python.bin ${prefix}/bin/python${python.branch}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set python.prefix ${frameworks_dir}/Python.framework/Versions/${python.branch}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set python.site_packages "${python.prefix}/lib/python${python.branch}/site-packages"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set python.pkgname ""
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- subport py${v}-${basename} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- revision 0
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- categories-append python
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- description Python ${python.version} bindings for ${description}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- long_description ${long_description} This package provides Python \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${python.version} bindings, modules, and scripts.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- depends_build-append port:swig3-python
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- depends_lib-append port:python${python.version}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- depends_lib-append port:py${python.version}-numpy
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.python ${python.bin}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.args-replace -DPYTHON=false -DPYTHON=${python.bin}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.args-replace -DPYTHON_EXECUTABLE=false -DPYTHON_EXECUTABLE=${python.bin}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- switch -glob -- ${v} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- "2*" { configure.args-replace -DENABLE_SWIG_PYTHON2=no "-DENABLE_SWIG_PYTHON2=yes -DPYTHON2_VERSION=${python.branch}" }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- "3*" -
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- default { configure.args-replace -DENABLE_SWIG_PYTHON3=no "-DENABLE_SWIG_PYTHON3=yes -DPYTHON3_VERSION=${python.branch}" }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.args-append -DPYTHON${python.version}_MODULE_INSTALL_DIR="${python.site_packages}" \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- -DPYTHON${python.version}_EXTMODULE_INSTALL_DIR="${python.site_packages}" \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- -DSWIG_CPPFLAGS="-I${python.prefix}/include"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set python.version ${v}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set python.branch [string range ${python.version} 0 end-1].[string index ${python.version} end]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set python.bin ${prefix}/bin/python${python.branch}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set python.prefix ${frameworks_dir}/Python.framework/Versions/${python.branch}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set python.site_packages \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "${python.prefix}/lib/python${python.branch}/site-packages"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set python.pkgname ""
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ subport py${v}-${basename} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ categories-append python
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ description Python ${python.version} bindings for ${description}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ long_description ${long_description}. This package provides Python \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${python.version} bindings, modules, and scripts.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_build-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:swig3-python
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_lib-append port:python${python.version} \
</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;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.python ${python.bin}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-replace \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DPYTHON=false -DPYTHON=${python.bin} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DPYTHON_EXECUTABLE=false -DPYTHON_EXECUTABLE=${python.bin}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ switch -glob -- ${v} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "2*" { configure.args-replace \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DENABLE_SWIG_PYTHON2=no "-DENABLE_SWIG_PYTHON2=yes -DPYTHON2_VERSION=${python.branch}" }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "3*" -
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ default { configure.args-replace \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DENABLE_SWIG_PYTHON3=no "-DENABLE_SWIG_PYTHON3=yes -DPYTHON3_VERSION=${python.branch}" }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DPYTHON${python.version}_MODULE_INSTALL_DIR="${python.site_packages}" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DPYTHON${python.version}_EXTMODULE_INSTALL_DIR="${python.site_packages}" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DSWIG_CPPFLAGS="-I${python.prefix}/include"
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>- destroot.target install
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- destroot.args-append -C ${worksrcpath}/../build/python
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ destroot.target install
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ destroot.args-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -C ${worksrcpath}/../build/python
</span>
post-destroot {
if {${subport} eq "py27-${basename}"} {
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -189,6 +197,6 @@ foreach v {27 35 36 37 38 39} {
</span> }
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>- livecheck.type none
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ livecheck.type none
</span> }
}
</pre><pre style='margin:0'>
</pre>