<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/fd44af60ebe4831e14bb45d38ef5808d5d25b616">https://github.com/macports/macports-ports/commit/fd44af60ebe4831e14bb45d38ef5808d5d25b616</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit fd44af60ebe4831e14bb45d38ef5808d5d25b616
</span>Author: Ryan Schmidt <ryandesign@macports.org>
AuthorDate: Mon Jun 11 20:32:56 2018 -0500
<span style='display:block; white-space:pre;color:#404040;'> minivmac*: Configure each variation separately
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> This is required for all subsequent versions of Mini vMac because the
</span><span style='display:block; white-space:pre;color:#404040;'> ";" build system option has been removed.
</span>---
emulators/minivmac-devel/Portfile | 131 ++++++++++++++++++++------------------
emulators/minivmac/Portfile | 91 +++++++++++++-------------
2 files changed, 117 insertions(+), 105 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 83810db..c2a95c5 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;'>@@ -129,7 +129,25 @@ if {${subport} eq ${name}} {
</span> set my_rom_dir "~/Library/Preferences/Gryphel/mnvm_rom"
set my_bootstrap_app "Mini vMac Bootstrap.app"
set my_rom_file vMac.ROM
<span style='display:block; white-space:pre;background:#ffe0e0;'>- set my_base_options "-ef 1 -maintainer MacPorts -homepage https://www.macports.org -cl -eol unx -sony-sum 1 -sony-tag 1"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Options that are the same for every variation.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.pre_args -ef 1 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -maintainer MacPorts \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -homepage https://www.macports.org \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -cl \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -eol unx \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -sony-sum 1 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -sony-tag 1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Options set by variations.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Options set by variants.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.post_args
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # The number of seconds to wait before killing the bootstrap process, in
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # case it gets stuck.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set my_bootstrap_timeout 30
</span>
configure.universal_archs {*}${supported_archs}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -213,73 +231,62 @@ if {${subport} eq ${name}} {
</span> }
configure {
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ set my_variation_dirs {}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> # Copy the disk images into the data directory with sequentially-numbered
# names so Mini vMac will find them and automatically mount them.
copy -force "${worksrcpath}/Disk Tools.image" "${my_mnvm_dat}/disk1.dsk"
<span style='display:block; white-space:pre;background:#ffe0e0;'>- copy -force ${worksrcpath}/${my_autoquit}/${my_autoquit}.dsk "${my_mnvm_dat}/disk2.dsk"
</span> copy -force ${worksrcpath}/${my_src}/${my_src}.dsk "${my_mnvm_dat}/disk3.dsk"
<span style='display:block; white-space:pre;background:#ffe0e0;'>- # Build up the combined configure args for all variations.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set i 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Configure all variations.
</span> foreach my_arch [get_canonical_archs] {
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ file mkdir ${build.dir}/${my_arch}
</span> set my_target [my_arch_to_target ${my_arch}]
foreach {my_machine my_variation_options} ${my_variations} {
set my_variation ${my_version}_${revision}-[strsed [string tolower ${my_machine}] {g/[^a-z0-9_-]//}]-${my_target}
<span style='display:block; white-space:pre;background:#ffe0e0;'>- if {${i} > 0} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- lappend configure_args \;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ui_debug "Configuring ${my_variation}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args -t ${my_target} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -n ${my_variation} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ @ \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {*}${my_variation_options}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set max_configure_args_length 8192
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set padded_configure_args [format "%-${max_configure_args_length}s" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ [concat ${configure.pre_args} ${configure.args} ${configure.post_args}]]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[string length ${padded_configure_args}] > ${max_configure_args_length}} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return -code error "configure args too long"
</span> }
<span style='display:block; white-space:pre;background:#ffe0e0;'>- lappend configure_args \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${my_base_options} \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- -t ${my_target} \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${my_variation_options} \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- -n ${my_variation}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- incr i
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>- # Write the configure args into the "doc" file on the AutQuit7 disk image.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set max_configure_args_length 8192
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set padded_args [format "%-${max_configure_args_length}s" [join ${configure_args}]]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {[string length ${padded_args}] > ${max_configure_args_length}} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- return -code error "configure args too long"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace -locale C "s|@START@\[ .\]*@END@|${padded_args}|" "${my_mnvm_dat}/disk2.dsk"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # Set the number of seconds to wait before killing the bootstrap Mini vMac
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # app, in case it gets stuck.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.pre_args [expr 10 * ${i}]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # Launch the bootstrap Mini vMac to run the configuration. When it's done
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # it should automatically quit, but if not, we time out after awhile.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- exec -ignorestderr ${prefix}/bin/timeout ${configure.pre_args} "${worksrcpath}/${my_bootstrap_app}/Contents/MacOS/minivmac" 2>/dev/null
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # Sandbox didn't used to allow access to the ptys Expect needs.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # https://github.com/macports/macports-base/commit/8765c14223c2826c958cddd4e33c17801d63ddb4
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {[vercmp [macports_version] 2.4.99] >= 0} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # Check if a configuration error occurred. This can happen if invalid
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # configuration flags were specified.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- delete ${my_mnvm_dat}/disk3.dmg
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ln ${my_mnvm_dat}/disk3.dsk ${my_mnvm_dat}/disk3.dmg
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set mountpoint [my_attach_disk_image ${my_mnvm_dat}/disk3.dmg]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {[file exists ${mountpoint}/output/minivmac.err.txt]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- copy ${mountpoint}/output/minivmac.err.txt ${worksrcpath}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- my_detach_disk_image ${mountpoint}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {[file exists ${worksrcpath}/minivmac.err.txt]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set fp [open ${worksrcpath}/minivmac.err.txt r]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set error_text [read ${fp}]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- close ${fp}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- return -code error ${error_text}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Write the configure args into the "doc" file on the AutQuit7 disk image.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ copy -force ${worksrcpath}/${my_autoquit}/${my_autoquit}.dsk ${my_mnvm_dat}/disk2.dsk
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace -locale C "s|@START@\[ .\]*@END@|${padded_configure_args}|" ${my_mnvm_dat}/disk2.dsk
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Launch the bootstrap Mini vMac to run the configuration. When it's done
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # it should automatically quit, but if not, we time out after awhile.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ exec -ignorestderr ${prefix}/bin/timeout ${my_bootstrap_timeout} "${worksrcpath}/${my_bootstrap_app}/Contents/MacOS/minivmac" 2>/dev/null
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Sandbox didn't used to allow access to the ptys Expect needs.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # https://github.com/macports/macports-base/commit/8765c14223c2826c958cddd4e33c17801d63ddb4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[vercmp [macports_version] 2.4.99] >= 0} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Check if a configuration error occurred. This can happen if
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # invalid configuration options were specified.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ delete ${my_mnvm_dat}/disk3.dmg
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ln ${my_mnvm_dat}/disk3.dsk ${my_mnvm_dat}/disk3.dmg
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set mountpoint [my_attach_disk_image ${my_mnvm_dat}/disk3.dmg]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[file exists ${mountpoint}/output/minivmac.err.txt]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ copy ${mountpoint}/output/minivmac.err.txt ${worksrcpath}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ my_detach_disk_image ${mountpoint}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[file exists ${worksrcpath}/minivmac.err.txt]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set fp [open ${worksrcpath}/minivmac.err.txt r]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set error_text [read ${fp}]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ close ${fp}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return -code error ${error_text}
</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:#ffe0e0;'>- file mkdir ${build.dir}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set my_variation_dirs {}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- foreach my_arch [get_canonical_archs] {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- file mkdir ${build.dir}/${my_arch}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set my_target [my_arch_to_target ${my_arch}]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- foreach {my_machine unused} ${my_variations} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set my_variation ${my_version}_${revision}-[strsed [string tolower ${my_machine}] {g/[^a-z0-9_-]//}]-${my_target}
</span> set my_src_tarball ${worksrcpath}/${my_variation}.tar
if {[file isfile ${my_src_tarball}]} {
set my_variation_dir ${my_arch}/${my_machine}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -305,15 +312,15 @@ if {${subport} eq ${name}} {
</span> }
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>- # Set up the global Makefile.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- xinstall ${filespath}/Makefile.in ${build.dir}/Makefile
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace "s|@SUBDIRS@|[join ${my_variation_dirs}]|" ${build.dir}/Makefile
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> # If no variation directories were produced by configuration, something went
# horribly wrong.
if {${my_variation_dirs} eq ""} {
return -code error "configuration failed!"
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Set up the global Makefile.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall ${filespath}/Makefile.in ${build.dir}/Makefile
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|@SUBDIRS@|[join ${my_variation_dirs}]|" ${build.dir}/Makefile
</span> }
post-build {
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -336,7 +343,6 @@ if {${subport} eq ${name}} {
</span> }
destroot {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- # Install the programs.
</span> foreach my_arch [get_canonical_archs] {
if {[variant_isset universal]} {
set my_dest ${workpath}/pre-dest/${my_arch}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -459,7 +465,8 @@ if {${subport} ni [list "${my_name}${my_suffix}" "${my_name}-bootstrap${my_suffi
</span> models.
variant icon_master description {Take ownership of disk image files and ROM image files; at most one copy of Mini vMac should do this} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- set my_base_options "${my_base_options} -im 1"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.post_args-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -im 1
</span> }
}
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/emulators/minivmac/Portfile b/emulators/minivmac/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 915cefa..968a4e4 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/emulators/minivmac/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/emulators/minivmac/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -122,7 +122,24 @@ if {${subport} eq ${name}} {
</span> set my_rom_dir "~/Library/Preferences/Gryphel/mnvm_rom"
set my_bootstrap_app "Mini vMac Bootstrap.app"
set my_rom_file vMac.ROM
<span style='display:block; white-space:pre;background:#ffe0e0;'>- set my_base_options "-maintainer MacPorts -homepage https://www.macports.org -cl -eol unx -sony-sum 1 -sony-tag 1"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Options that are the same for every variation.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.pre_args -maintainer MacPorts \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -homepage https://www.macports.org \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -cl \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -eol unx \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -sony-sum 1 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -sony-tag 1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Options set by variations.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Options set by variants.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.post_args
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # The number of seconds to wait before killing the bootstrap process, in
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # case it gets stuck.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set my_bootstrap_timeout 30
</span>
configure.universal_archs {*}${supported_archs}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -206,53 +223,41 @@ if {${subport} eq ${name}} {
</span> }
configure {
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ set my_variation_dirs {}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> # Copy the disk images into the data directory with sequentially-numbered
# names so Mini vMac will find them and automatically mount them.
copy -force "${worksrcpath}/Disk Tools.image" "${my_mnvm_dat}/disk1.dsk"
<span style='display:block; white-space:pre;background:#ffe0e0;'>- copy -force ${worksrcpath}/${my_autoquit}/${my_autoquit}.dsk "${my_mnvm_dat}/disk2.dsk"
</span> copy -force ${worksrcpath}/${my_src}/${my_src}.dsk "${my_mnvm_dat}/disk3.dsk"
<span style='display:block; white-space:pre;background:#ffe0e0;'>- # Build up the combined configure args for all variations.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set i 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Configure all variations.
</span> foreach my_arch [get_canonical_archs] {
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ file mkdir ${build.dir}/${my_arch}
</span> set my_target [my_arch_to_target ${my_arch}]
foreach {my_machine my_variation_options} ${my_variations} {
set my_variation ${my_version}_${revision}-[strsed [string tolower ${my_machine}] {g/[^a-z0-9_-]//}]-${my_target}
<span style='display:block; white-space:pre;background:#ffe0e0;'>- if {${i} > 0} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- lappend configure_args \;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- lappend configure_args \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${my_base_options} \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- -t ${my_target} \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${my_variation_options} \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- -n ${my_variation}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- incr i
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>- # Write the configure args into the "doc" file on the AutQuit7 disk image.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set max_configure_args_length 8192
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set padded_args [format "%-${max_configure_args_length}s" [join ${configure_args}]]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {[string length ${padded_args}] > ${max_configure_args_length}} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- return -code error "configure args too long"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace -locale C "s|@START@\[ .\]*@END@|${padded_args}|" "${my_mnvm_dat}/disk2.dsk"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ui_debug "Configuring ${my_variation}"
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>- # Set the number of seconds to wait before killing the bootstrap Mini vMac
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # app, in case it gets stuck.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.pre_args [expr 10 * ${i}]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args -t ${my_target} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -n ${my_variation} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {*}${my_variation_options}
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>- # Launch the bootstrap Mini vMac to run the configuration. When it's done
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # it should automatically quit, but if not, we time out after awhile.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- exec -ignorestderr ${prefix}/bin/timeout ${configure.pre_args} "${worksrcpath}/${my_bootstrap_app}/Contents/MacOS/minivmac" 2>/dev/null
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set max_configure_args_length 8192
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set padded_configure_args [format "%-${max_configure_args_length}s" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ [concat ${configure.pre_args} ${configure.args} ${configure.post_args}]]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[string length ${padded_configure_args}] > ${max_configure_args_length}} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return -code error "configure args too long"
</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;'>+ # Write the configure args into the "doc" file on the AutQuit7 disk image.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ copy -force ${worksrcpath}/${my_autoquit}/${my_autoquit}.dsk ${my_mnvm_dat}/disk2.dsk
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace -locale C "s|@START@\[ .\]*@END@|${padded_configure_args}|" ${my_mnvm_dat}/disk2.dsk
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Launch the bootstrap Mini vMac to run the configuration. When it's done
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # it should automatically quit, but if not, we time out after awhile.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ exec -ignorestderr ${prefix}/bin/timeout ${my_bootstrap_timeout} "${worksrcpath}/${my_bootstrap_app}/Contents/MacOS/minivmac" 2>/dev/null
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>- file mkdir ${build.dir}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set my_variation_dirs {}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- foreach my_arch [get_canonical_archs] {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- file mkdir ${build.dir}/${my_arch}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set my_target [my_arch_to_target ${my_arch}]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- foreach {my_machine unused} ${my_variations} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set my_variation ${my_version}_${revision}-[strsed [string tolower ${my_machine}] {g/[^a-z0-9_-]//}]-${my_target}
</span> set my_src_tarball ${worksrcpath}/${my_variation}.tar
if {[file isfile ${my_src_tarball}]} {
set my_variation_dir ${my_arch}/${my_machine}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -278,15 +283,15 @@ if {${subport} eq ${name}} {
</span> }
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>- # Set up the global Makefile.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- xinstall ${filespath}/Makefile.in ${build.dir}/Makefile
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace "s|@SUBDIRS@|[join ${my_variation_dirs}]|" ${build.dir}/Makefile
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # If no variation directories were produced by configuration, the flags we
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # passed in may have been bad.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # If no variation directories were produced by configuration, something went
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # horribly wrong.
</span> if {${my_variation_dirs} eq ""} {
return -code error "configuration failed!"
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Set up the global Makefile.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall ${filespath}/Makefile.in ${build.dir}/Makefile
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|@SUBDIRS@|[join ${my_variation_dirs}]|" ${build.dir}/Makefile
</span> }
post-build {
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -309,7 +314,6 @@ if {${subport} eq ${name}} {
</span> }
destroot {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- # Install the programs.
</span> foreach my_arch [get_canonical_archs] {
if {[variant_isset universal]} {
set my_dest ${workpath}/pre-dest/${my_arch}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -430,7 +434,8 @@ if {${subport} ni [list "${my_name}${my_suffix}" "${my_name}-bootstrap${my_suffi
</span> models.
variant icon_master description {Take ownership of disk image files and ROM image files; at most one copy of Mini vMac should do this} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- set my_base_options "${my_base_options} -im 1"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.post_args-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -im 1
</span> }
}
</pre><pre style='margin:0'>
</pre>