<pre style='margin:0'>
Ryan Schmidt (ryandesign) pushed a commit to branch master
in repository macports-ports.

</pre>
<p><a href="https://github.com/macports/macports-ports/commit/da2e1c1a9f82b1e48329c63918928f514776a717">https://github.com/macports/macports-ports/commit/da2e1c1a9f82b1e48329c63918928f514776a717</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 da2e1c1  minivmac-devel: Let configure script compile setup_t
</span>da2e1c1 is described below

<span style='display:block; white-space:pre;color:#808000;'>commit da2e1c1a9f82b1e48329c63918928f514776a717
</span>Author: Ryan Schmidt <ryandesign@macports.org>
AuthorDate: Sun Jun 23 04:02:49 2019 -0500

<span style='display:block; white-space:pre;color:#404040;'>    minivmac-devel: Let configure script compile setup_t
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    Make the configure script responsible for compiling the setup tool. This
</span><span style='display:block; white-space:pre;color:#404040;'>    way, changes to the setup tool's source files can be tested by just
</span><span style='display:block; white-space:pre;color:#404040;'>    running ./configure again, without needing to involve the Portfile.
</span>---
 emulators/minivmac-devel/Portfile        | 6 ++----
 emulators/minivmac-devel/files/configure | 6 ++++++
 2 files changed, 8 insertions(+), 4 deletions(-)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/emulators/minivmac-devel/Portfile b/emulators/minivmac-devel/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 05fe3f8..a229871 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/emulators/minivmac-devel/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/emulators/minivmac-devel/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -137,8 +137,6 @@ if {${my_subport} eq ${my_name}} {
</span>     }
 
     configure {
<span style='display:block; white-space:pre;background:#ffe0e0;'>-        # Build the setup tool.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-        system -W ${worksrcpath}/setup "${configure.cc} ${configure.optflags} tool.c -o ../setup_t"
</span>         xinstall -W ${filespath} configure ${worksrcpath}
 
         set my_variation_dirs {}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -163,8 +161,8 @@ if {${my_subport} eq ${my_name}} {
</span> 
                 set all_configure_args [concat ${configure.pre_args} ${configure.args} ${configure.post_args}]
 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-                # Run the configuration program.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-                system -W ${build.dir}/${my_variation_dir} "${worksrcpath}/configure ${all_configure_args}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                # Run the configure script.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                system -W ${build.dir}/${my_variation_dir} "CC='${configure.cc}' CFLAGS='${configure.optflags}' ${worksrcpath}/configure ${all_configure_args}"
</span> 
                     lappend my_variation_dirs [strsed ${my_variation_dir} {g/ /\\\\ /}]
 
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/emulators/minivmac-devel/files/configure b/emulators/minivmac-devel/files/configure
</span><span style='display:block; white-space:pre;color:#808080;'>index 81d0f27..8510e2c 100755
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/emulators/minivmac-devel/files/configure
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/emulators/minivmac-devel/files/configure
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,7 +1,13 @@
</span> #!/bin/sh
 set -eu
 SCRIPT_DIR=$(dirname "$0")
<span style='display:block; white-space:pre;background:#e0ffe0;'>+if [ ! -f "$SCRIPT_DIR"/setup_t ] || [ -n "$(find "$SCRIPT_DIR"/setup -type f -newer "$SCRIPT_DIR"/setup_t)" ]; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    echo "Compiling setup script generator"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    ${CC:-cc} ${CFLAGS:--Os} "$SCRIPT_DIR"/setup/tool.c -o "$SCRIPT_DIR"/setup_t
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+echo "Generating setup script"
</span> "$SCRIPT_DIR"/setup_t "$@" > setup.sh
 chmod a+x setup.sh
<span style='display:block; white-space:pre;background:#e0ffe0;'>+echo "Running setup script"
</span> ./setup.sh
 [ -e src ] || ln -s "$SCRIPT_DIR"/src .
</pre><pre style='margin:0'>

</pre>