[58922] trunk/dports/emulators

ryandesign at macports.org ryandesign at macports.org
Wed Oct 7 05:04:50 PDT 2009


Revision: 58922
          http://trac.macports.org/changeset/58922
Author:   ryandesign at macports.org
Date:     2009-10-07 05:04:47 -0700 (Wed, 07 Oct 2009)
Log Message:
-----------
minivmac, minivmac-devel: add +bootstrap variant (disabled for now)

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

Modified: trunk/dports/emulators/minivmac/Portfile
===================================================================
--- trunk/dports/emulators/minivmac/Portfile	2009-10-07 09:54:33 UTC (rev 58921)
+++ trunk/dports/emulators/minivmac/Portfile	2009-10-07 12:04:47 UTC (rev 58922)
@@ -92,6 +92,15 @@
 # The universal variant is disabled until MacPorts 1.8.2 is released
 # and this port is upgraded to version 3.1.x final.
 if {0} {
+# To build the bootstrap, use "sudo port install bootstrap=yes".
+# The variant is hidden because it is useful only to the port maintainer.
+if {[tbool bootstrap]} {
+    variant bootstrap conflicts unsupported requires universal description {Build the bootstrap version of Mini vMac} {
+        my_variations   {Bootstrap} {-m Plus -sound 0 -bg 1 -speed a}
+    }
+    default_variants +bootstrap
+}
+
 variant universal {
     configure.universal_args
     configure.universal_archs ppc i386
@@ -234,7 +243,6 @@
 set my_share_dir        ${prefix}/share/${my_name}
 
 post-build {
-    # To save space, keep only a single copy of the Resources directory.
     set i 0
     foreach my_arch ${my_archs} {
         set my_target [my_arch_to_target ${my_arch}]
@@ -242,25 +250,32 @@
             if {[variant_isset universal]} {
                 reinplace "s|${my_target}|umch|" ${build.dir}/${my_arch}/${my_machine}/minivmac.app/Contents/Info.plist
             }
-            set my_resources_dir ${build.dir}/${my_arch}/${my_machine}/minivmac.app/Contents/Resources
-            if {0 == ${i}} {
-                move ${my_resources_dir} ${build.dir}
-            } else {
-                delete ${my_resources_dir}
+            if {![variant_isset bootstrap]} {
+                # To save space, keep only a single copy of the Resources directory.
+                set my_resources_dir ${build.dir}/${my_arch}/${my_machine}/minivmac.app/Contents/Resources
+                if {0 == ${i}} {
+                    move ${my_resources_dir} ${build.dir}
+                } else {
+                    delete ${my_resources_dir}
+                }
+                ln -s ${my_share_dir}/Resources ${my_resources_dir}
             }
-            ln -s ${my_share_dir}/Resources ${my_resources_dir}
             incr i
         }
     }
     
-    # Install the prettier icons.
-    eval xinstall -m 644 [glob ${worksrcpath}/${my_icons}/icons/*.icns] ${build.dir}/Resources
+    if {![variant_isset bootstrap]} {
+        # Install the prettier icons.
+        eval xinstall -m 644 [glob ${worksrcpath}/${my_icons}/icons/*.icns] ${build.dir}/Resources
+    }
 }
 
 destroot {
-    # Install the global Resources directory.
-    xinstall -d ${destroot}${my_share_dir}
-    copy ${build.dir}/Resources ${destroot}${my_share_dir}
+    if {![variant_isset bootstrap]} {
+        # Install the global Resources directory.
+        xinstall -d ${destroot}${my_share_dir}
+        copy ${build.dir}/Resources ${destroot}${my_share_dir}
+    }
     
     # Install the programs.
     foreach my_arch ${my_archs} {

Modified: trunk/dports/emulators/minivmac-devel/Portfile
===================================================================
--- trunk/dports/emulators/minivmac-devel/Portfile	2009-10-07 09:54:33 UTC (rev 58921)
+++ trunk/dports/emulators/minivmac-devel/Portfile	2009-10-07 12:04:47 UTC (rev 58922)
@@ -112,6 +112,15 @@
 
 # The universal variant is disabled until MacPorts 1.8.2 is released.
 if {0} {
+# To build the bootstrap, use "sudo port install bootstrap=yes".
+# The variant is hidden because it is useful only to the port maintainer.
+if {[tbool bootstrap]} {
+    variant bootstrap conflicts unsupported requires universal description {Build the bootstrap version of Mini vMac} {
+        my_variations   {Bootstrap} {-m Plus -sound 0 -bg 1 -speed a}
+    }
+    default_variants +bootstrap
+}
+
 variant universal {
     configure.universal_args
     configure.universal_archs ppc i386
@@ -259,7 +268,6 @@
 set my_share_dir        ${prefix}/share/${my_name}
 
 post-build {
-    # To save space, keep only a single copy of the Resources directory.
     set i 0
     foreach my_arch ${my_archs} {
         set my_target [my_arch_to_target ${my_arch}]
@@ -267,25 +275,32 @@
             if {[variant_isset universal]} {
                 reinplace "s|${my_target}|umch|" ${build.dir}/${my_arch}/${my_machine}/minivmac.app/Contents/Info.plist
             }
-            set my_resources_dir ${build.dir}/${my_arch}/${my_machine}/minivmac.app/Contents/Resources
-            if {0 == ${i}} {
-                move ${my_resources_dir} ${build.dir}
-            } else {
-                delete ${my_resources_dir}
+            if {![variant_isset bootstrap]} {
+                # To save space, keep only a single copy of the Resources directory.
+                set my_resources_dir ${build.dir}/${my_arch}/${my_machine}/minivmac.app/Contents/Resources
+                if {0 == ${i}} {
+                    move ${my_resources_dir} ${build.dir}
+                } else {
+                    delete ${my_resources_dir}
+                }
+                ln -s ${my_share_dir}/Resources ${my_resources_dir}
             }
-            ln -s ${my_share_dir}/Resources ${my_resources_dir}
             incr i
         }
     }
     
-    # Install the prettier icons.
-    eval xinstall -m 644 [glob ${worksrcpath}/${my_icons}/icons/*.icns] ${build.dir}/Resources
+    if {![variant_isset bootstrap]} {
+        # Install the prettier icons.
+        eval xinstall -m 644 [glob ${worksrcpath}/${my_icons}/icons/*.icns] ${build.dir}/Resources
+    }
 }
 
 destroot {
-    # Install the global Resources directory.
-    xinstall -d ${destroot}${my_share_dir}
-    copy ${build.dir}/Resources ${destroot}${my_share_dir}
+    if {![variant_isset bootstrap]} {
+        # Install the global Resources directory.
+        xinstall -d ${destroot}${my_share_dir}
+        copy ${build.dir}/Resources ${destroot}${my_share_dir}
+    }
     
     # Install the programs.
     foreach my_arch ${my_archs} {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20091007/c451718f/attachment.html>


More information about the macports-changes mailing list