[57808] users/ryandesign/minivmac
ryandesign at macports.org
ryandesign at macports.org
Wed Sep 16 18:42:40 PDT 2009
Revision: 57808
http://trac.macports.org/changeset/57808
Author: ryandesign at macports.org
Date: 2009-09-16 18:42:34 -0700 (Wed, 16 Sep 2009)
Log Message:
-----------
minivmac: use configure.args to get the options to the configure script
Modified Paths:
--------------
users/ryandesign/minivmac/Portfile
users/ryandesign/minivmac/files/configure.applescript
Modified: users/ryandesign/minivmac/Portfile
===================================================================
--- users/ryandesign/minivmac/Portfile 2009-09-17 00:45:30 UTC (rev 57807)
+++ users/ryandesign/minivmac/Portfile 2009-09-17 01:42:34 UTC (rev 57808)
@@ -156,13 +156,9 @@
pre-configure {
set my_variation [my_get_variation]
+ configure.args ${my_base_options} -t ${my_target} -m ${my_machine} -n ${my_variation}
- # Copy the configuration options to the clipboard. The script run later
- # with osascript will paste them into the Build program.
- set my_options "${my_base_options} -t ${my_target} -m ${my_machine} -n ${my_variation}"
- my_system "echo '${my_options}' | pbcopy"
-
- # Launch Mini vMac.
+ # Launch Mini vMac so the configure script can talk to it.
my_system "open '${worksrcpath}/${my_bootstrap}'"
}
Modified: users/ryandesign/minivmac/files/configure.applescript
===================================================================
--- users/ryandesign/minivmac/files/configure.applescript 2009-09-17 00:45:30 UTC (rev 57807)
+++ users/ryandesign/minivmac/files/configure.applescript 2009-09-17 01:42:34 UTC (rev 57808)
@@ -1,6 +1,15 @@
-- $Id$
-on run
+global number_of_variations
+
+on run argv
+ set save_delims to text item delimiters of AppleScript
+ set text item delimiters of AppleScript to " "
+ set configure_args to argv as string
+ set text item delimiters of AppleScript to ";"
+ set number_of_variations to count of every text item of configure_args
+ set text item delimiters of AppleScript to save_delims
+
delay 2 -- wait for Mini vMac to start launching
activate application "Mini vMac"
@@ -18,7 +27,8 @@
delay 2 -- wait for system software to finish starting up
my key_code(22) -- "6" -- select the 6-ClipIn program
- my menu_file_open() -- open it -- it auto-quits
+ set the clipboard to configure_args -- copy the configure args to the clipboard
+ my menu_file_open() -- open ClipIn, transferring the clipboard into the emulated machine; ClipIn auto-quits
my menu_file_close() -- close Finder window
my key_code(11) -- "B" -- select the Build program
@@ -75,7 +85,7 @@
on menu_file_go()
my key_code_with_modifiers(5, {command down}) -- "Command-G"
- delay 0.5 -- wait for configuration to run
+ delay 0.5 * number_of_variations -- wait for configuration to run
end menu_file_go
on menu_file_quit()
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090916/3bdbc375/attachment.html>
More information about the macports-changes
mailing list