[57916] users/ryandesign

ryandesign at macports.org ryandesign at macports.org
Fri Sep 18 13:22:21 PDT 2009


Revision: 57916
          http://trac.macports.org/changeset/57916
Author:   ryandesign at macports.org
Date:     2009-09-18 13:22:17 -0700 (Fri, 18 Sep 2009)
Log Message:
-----------
minivmac, minivmac-devel: don't copy the scripts to worksrcpath, since we're not modifying them; run them directly from filespath. This makes it easier to test changes to the scripts because you don't have to clean first.

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

Modified: users/ryandesign/minivmac/Portfile
===================================================================
--- users/ryandesign/minivmac/Portfile	2009-09-18 20:00:49 UTC (rev 57915)
+++ users/ryandesign/minivmac/Portfile	2009-09-18 20:22:17 UTC (rev 57916)
@@ -116,18 +116,9 @@
 worksrcdir              stuff
 extract.mkdir           yes
 
-build.dir               ${workpath}/variations
-
 post-extract {
-    # Make the build directory.
-    file mkdir ${build.dir}
-    
-    # Copy the scripts we need.
-    xinstall -W ${filespath} attach.exp configure.applescript demacbinary.sh ${worksrcpath}
-    xinstall -W ${filespath} Makefile.in ${build.dir}/Makefile
-    
     # Decode the system disk container image.
-    my_system "${worksrcpath}/demacbinary.sh ${distpath}/${my_system_disk_container_distfile} ${worksrcpath}"
+    my_system "sh ${filespath}/demacbinary.sh ${distpath}/${my_system_disk_container_distfile} ${worksrcpath}"
     
     # Copy the Disk Tools image from the container image.
     set my_system_disk_container_mount [my_attach_disk_image ${worksrcpath}/${my_system_disk_container}]
@@ -177,9 +168,12 @@
 }
 
 configure.cmd           osascript
-configure.pre_args      configure.applescript
+configure.pre_args      ${filespath}/configure.applescript
 
+build.dir               ${workpath}/variations
+
 post-configure {
+    file mkdir ${build.dir}
     set my_variation_dirs ""
     set my_src_disk_mount [my_attach_disk_image ${worksrcpath}/${my_src}/${my_src}.img]
     foreach my_variation_dir [glob -nocomplain -type d -tails -directory ${my_src_disk_mount}/output *] {
@@ -196,6 +190,9 @@
         reinplace -E {s|-isysroot /Developer/SDKs/[^ ]+||g} ${build.dir}/${my_variation_dir}/Makefile
     }
     my_detach_disk_image ${my_src_disk_mount}
+    
+    # Set up the global Makefile.
+    xinstall ${filespath}/Makefile.in ${build.dir}/Makefile
     reinplace "s|@SUBDIRS@|${my_variation_dirs}|" ${build.dir}/Makefile
     
     # If no variation directoriess were produced by configuration, either the flags we
@@ -266,11 +263,11 @@
 
 # Mounts a disk image.
 proc my_attach_disk_image {disk_image} {
-    global my_name worksrcpath
+    global my_name filespath
     set mountpoint [mkdtemp "/tmp/${my_name}.XXXXXXXX"]
     # 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}'"
+    my_system "expect ${filespath}/attach.exp '${disk_image}' '${mountpoint}'"
     return ${mountpoint}
 }
 

Modified: users/ryandesign/minivmac-devel/Portfile
===================================================================
--- users/ryandesign/minivmac-devel/Portfile	2009-09-18 20:00:49 UTC (rev 57915)
+++ users/ryandesign/minivmac-devel/Portfile	2009-09-18 20:22:17 UTC (rev 57916)
@@ -137,18 +137,9 @@
 worksrcdir              stuff
 extract.mkdir           yes
 
-build.dir               ${workpath}/variations
-
 post-extract {
-    # Make the build directory.
-    file mkdir ${build.dir}
-    
-    # Copy the scripts we need.
-    xinstall -W ${filespath} attach.exp configure.applescript demacbinary.sh ${worksrcpath}
-    xinstall -W ${filespath} Makefile.in ${build.dir}/Makefile
-    
     # Decode the system disk container image.
-    my_system "${worksrcpath}/demacbinary.sh ${distpath}/${my_system_disk_container_distfile} ${worksrcpath}"
+    my_system "sh ${filespath}/demacbinary.sh ${distpath}/${my_system_disk_container_distfile} ${worksrcpath}"
     
     # Copy the Disk Tools image from the container image. The binary patchfile applied with bspatch
     # places an alias of the output disk at System Folder:Preferences:Gryphel:Build:output.
@@ -203,9 +194,12 @@
 }
 
 configure.cmd           osascript
-configure.pre_args      configure.applescript
+configure.pre_args      ${filespath}/configure.applescript
 
+build.dir               ${workpath}/variations
+
 post-configure {
+    file mkdir ${build.dir}
     set my_variation_dirs ""
     set my_output_disk_mount [my_attach_disk_image ${worksrcpath}/output.img]
     foreach my_variation_dir [glob -nocomplain -type d -tails -directory ${my_output_disk_mount} *] {
@@ -222,6 +216,9 @@
         reinplace -E {s|-isysroot /Developer/SDKs/[^ ]+||g} ${build.dir}/${my_variation_dir}/Makefile
     }
     my_detach_disk_image ${my_output_disk_mount}
+    
+    # Set up the global Makefile.
+    xinstall ${filespath}/Makefile.in ${build.dir}/Makefile
     reinplace "s|@SUBDIRS@|${my_variation_dirs}|" ${build.dir}/Makefile
     
     # If no variation directoriess were produced by configuration, either the flags we
@@ -268,11 +265,11 @@
 
 # Mounts a disk image.
 proc my_attach_disk_image {disk_image} {
-    global my_name worksrcpath
+    global my_name filespath
     set mountpoint [mkdtemp "/tmp/${my_name}.XXXXXXXX"]
     # 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}'"
+    my_system "expect ${filespath}/attach.exp '${disk_image}' '${mountpoint}'"
     return ${mountpoint}
 }
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090918/e4766d26/attachment.html>


More information about the macports-changes mailing list