[57772] users/ryandesign/minivmac/Portfile

ryandesign at macports.org ryandesign at macports.org
Wed Sep 16 05:09:10 PDT 2009


Revision: 57772
          http://trac.macports.org/changeset/57772
Author:   ryandesign at macports.org
Date:     2009-09-16 05:09:07 -0700 (Wed, 16 Sep 2009)
Log Message:
-----------
minivmac: use ${my_name} instead of ${name} in preparation for a new minivmac-devel port

Modified Paths:
--------------
    users/ryandesign/minivmac/Portfile

Modified: users/ryandesign/minivmac/Portfile
===================================================================
--- users/ryandesign/minivmac/Portfile	2009-09-16 12:07:15 UTC (rev 57771)
+++ users/ryandesign/minivmac/Portfile	2009-09-16 12:09:07 UTC (rev 57772)
@@ -4,6 +4,7 @@
 
 name                    minivmac
 conflicts               minivmac-devel
+set my_name             minivmac
 version                 3.0.4
 revision                1
 categories              emulators aqua
@@ -15,6 +16,7 @@
 universal_variant       no
 build.target
 use_parallel_build      yes
+dist_subdir             ${my_name}
 
 description \
     a Mac 128K, Mac 512K, Mac 512KE, Mac Plus and Mac SE emulator
@@ -26,14 +28,15 @@
     the best-tested and therefore recommended emulation.
 
 master_sites \
-    sourceforge:${name}:minivmac \
+    sourceforge:${my_name}:minivmac \
     http://download.info.apple.com/Apple_Support_Area/Apple_Software_Updates/English-North_American/Macintosh/System/Older_System/System_7.0.x/:apple
 
+distname                                    ${my_name}-${version}
 set my_src                                  ${distname}.src
 set my_src_distfile                         ${my_src}.zip
 set my_bootstrap_version                    3.1.2
 set my_bootstrap                            "Mini vMac.app"
-set my_bootstrap_distfile                   ${name}-${my_bootstrap_version}-umch.bin.tgz
+set my_bootstrap_distfile                   ${my_name}-${my_bootstrap_version}-umch.bin.tgz
 set my_clipin                               clipin-1.1.0
 set my_clipin_distfile                      ${my_clipin}.zip
 set my_icons                                icnsosx-1.0.0
@@ -236,8 +239,8 @@
 
 # Mounts a disk image.
 proc my_attach_disk_image {disk_image} {
-    global name worksrcpath
-    set mountpoint [exec mktemp -d -q -t ${name}]
+    global my_name worksrcpath
+    set mountpoint [exec mktemp -d -q -t ${my_name}]
     # Use this expect script instead of using hdiutil directly, because the
     # system disk image has a license agreement we must agree to.
     my_system "${worksrcpath}/attach.exp '${disk_image}' '${mountpoint}'"
@@ -251,8 +254,8 @@
 }
 
 proc my_get_variation {} {
-    global name version revision my_variation_machine my_target
-    return ${name}-${version}_${revision}-${my_variation_machine}-${my_target}
+    global my_name version revision my_variation_machine my_target
+    return ${my_name}-${version}_${revision}-${my_variation_machine}-${my_target}
 }
 
 proc my_system {cmd} {
@@ -262,4 +265,4 @@
 
 livecheck.type          regex
 livecheck.url           ${homepage}download.html
-livecheck.regex         ${name}-(\[0-9.\]+)\\.src
+livecheck.regex         ${my_name}-(\[0-9.\]+)\\.src
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090916/33f7dba4/attachment.html>


More information about the macports-changes mailing list