<pre style='margin:0'>
Adam Mercer (skymoo) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/a4a1fa4b80355737cf1684fae9f6d2df69670025">https://github.com/macports/macports-ports/commit/a4a1fa4b80355737cf1684fae9f6d2df69670025</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit a4a1fa4b80355737cf1684fae9f6d2df69670025
</span>Author: Duncan Macleod <duncan.macleod@ligo.org>
AuthorDate: Fri Dec 14 16:13:30 2018 +0000
<span style='display:block; white-space:pre;color:#404040;'> lal: reworked configure args and dependencies
</span>---
science/lal/Portfile | 40 +++++++++++++++++++++++++++-------------
1 file changed, 27 insertions(+), 13 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/science/lal/Portfile b/science/lal/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 67f82f0..aadb1bf 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/science/lal/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/science/lal/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -4,6 +4,7 @@ PortSystem 1.0
</span>
name lal
version 6.19.0
<span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 1
</span>
description LSC Algorithm Library
long_description \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -19,6 +20,23 @@ depends_lib port:gsl \
</span> port:fftw-3-single \
port:hdf5
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# add Python dependencies for python subports
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {[string match "py*" ${subport}]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set numbers [regexp -all -inline -- {[0-9]+} ${subport}]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set v [lindex ${numbers} 0]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # python, C-library port, and numpy are automatically added below
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_lib port:py${v}-dateutil port:py${v}-scipy port:py${v}-six \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${v}-ligo-segments port:py${v}-lscsoft-glue
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ revision 1
</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;'>+# add Octave dependencies for octave subports
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {[string match "octave-*" ${subport}]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # octave, and C-library port are automatically added below
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_lib port:octave-lal
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ revision 1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> ###############################################################################
### Everything below this line is common to all LALSuite ports. ###############
###############################################################################
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -43,20 +61,19 @@ use_xz yes
</span> depends_build-append \
port:pkgconfig \
port:swig \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- port:python27
</span>
# Choose a compiler that supports OpenMP.
compiler.whitelist macports-clang-6.0 macports-clang-5.0 macports-clang-4.0 macports-clang-7.0 macports-clang-3.9
compiler.fallback macports-clang-6.0
<span style='display:block; white-space:pre;background:#ffe0e0;'>-set default_pythonarg PYTHON=${frameworks_dir}/Python.framework/Versions/2.7/bin/python2.7
</span> configure.args-append \
--mandir=${prefix}/share/man \
--disable-silent-rules \
--disable-gcc-flags \
--enable-swig-iface \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- --disable-python \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${default_pythonarg}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --disable-swig-octave \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --disable-swig-python \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --disable-python
</span>
test.run yes
test.target check
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -75,13 +92,11 @@ foreach v {27 35 36 37} {
</span> ${pythonversion} bindings, modules, and scripts.
depends_build-append port:swig-python
<span style='display:block; white-space:pre;background:#ffe0e0;'>- depends_build-replace port:python27 port:python${v}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- depends_lib-replace port:lal port:py${v}-lal
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- depends_lib-append port:${name} port:py${v}-numpy port:py${v}-dateutil port:py${v}-scipy port:py${v}-six port:py${v}-ligo-segments port:py${v}-lscsoft-glue
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_lib-prepend port:python${v} port:${name} port:py${v}-numpy
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.args-replace ${default_pythonarg} PYTHON=${pythonhome}/bin/python${pythonversion}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.args-replace --disable-python --enable-python
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.args-append --enable-swig-python
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append PYTHON=${pythonhome}/bin/python${pythonversion}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-replace --disable-python --enable-python
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-replace --disable-swig-python --enable-swig-python
</span>
destroot.args-append pythondir="${pythondir}" \
pyexecdir="${pythondir}" \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -122,10 +137,9 @@ subport octave-${name} {
</span> bindings, modules, and scripts.
depends_build-append port:swig-octave
<span style='display:block; white-space:pre;background:#ffe0e0;'>- depends_lib-replace port:lal port:octave-lal
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- depends_lib-append port:${name} port:octave
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_lib-prepend port:octave port:${name}
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.args-append --enable-swig-octave
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-replace --disable-swig-octave --enable-swig-octave
</span>
# Only install SWIG bindings, Python libraries, and Python scripts
destroot {
</pre><pre style='margin:0'>
</pre>