[58118] trunk/dports/emulators/minivmac-devel/Portfile

ryandesign at macports.org ryandesign at macports.org
Tue Sep 22 04:28:45 PDT 2009


Revision: 58118
          http://trac.macports.org/changeset/58118
Author:   ryandesign at macports.org
Date:     2009-09-22 04:28:41 -0700 (Tue, 22 Sep 2009)
Log Message:
-----------
minivmac-devel: allow the ROM files to optionally be in ~/Library/Preferences/Gryphel/mnvm_rom instead of in the same folder as the application

Modified Paths:
--------------
    trunk/dports/emulators/minivmac-devel/Portfile

Modified: trunk/dports/emulators/minivmac-devel/Portfile
===================================================================
--- trunk/dports/emulators/minivmac-devel/Portfile	2009-09-22 11:19:21 UTC (rev 58117)
+++ trunk/dports/emulators/minivmac-devel/Portfile	2009-09-22 11:28:41 UTC (rev 58118)
@@ -89,6 +89,7 @@
     bin:expect:expect
 
 set my_app_dir          "${applications_dir}/Mini vMac"
+set my_rom_dir          "~/Library/Preferences/Gryphel/mnvm_rom"
 set my_bootstrap_app    "Mini vMac.app"
 set my_rom_file         vMac.ROM
 set my_base_options     "-maintainer MacPorts -homepage http://www.macports.org/ -cl -eol unx -nex"
@@ -118,7 +119,7 @@
 }
 
 pre-fetch {
-    if { ! [file exists ${my_app_dir}/${my_rom_file}] } {
+    if {![file exists ${my_rom_dir}/${my_rom_file}] && ![file exists ${my_app_dir}/${my_rom_file}]} {
         ui_msg "****************************************************************"
         ui_msg "To build Mini vMac, you will need a ROM file from a Macintosh"
         ui_msg "Plus or 512Ke. And to run it, you need a ROM file from the type"
@@ -128,7 +129,8 @@
         ui_msg "${homepage}extras/copyroms.html"
         ui_msg "and transfer it to a real physical early Macintosh that you own."
         ui_msg "Run the CopyRoms program there, then transfer the ROM file back"
-        ui_msg "to this Mac and put it in ${my_app_dir}."
+        ui_msg "to this Mac and put it in ${my_rom_dir}"
+        ui_msg "or ${my_app_dir}."
         ui_msg "****************************************************************"
         return -code error "${my_rom_file} not found"
     }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090922/013b652e/attachment.html>


More information about the macports-changes mailing list