Ignore:
Timestamp:
May 22, 2013, 1:14:41 PM (6 years ago)
Author:
ryandesign@…
Message:

minivmac, minivmac-devel: speed up extract: no need to manually de-MacBinary the system disk container image; apparently hdiutil reads MacBinary images just fine on its own

Location:
trunk/dports/emulators
Files:
2 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/emulators/minivmac-devel/Portfile

    r106318 r106320  
    151151
    152152post-extract {
    153     # Decode MacBinary encoding of the system disk container image.
    154     ui_debug "Decoding ${my_system_disk_container_distfile}."
    155     system -W ${worksrcpath} "sh ${filespath}/demacbinary.sh ${distpath}/${my_system_disk_container_distfile}"
    156    
    157153    # Decompress the system disk container image.
    158     ui_debug "Decompressing ${my_system_disk_container}."
    159     set my_system_disk_container_decompressed "[file rootname ${my_system_disk_container}].uncompressed.dmg"
    160     system -W ${worksrcpath} "hdiutil convert '${my_system_disk_container}' -format UDRO -o '${my_system_disk_container_decompressed}'"
     154    ui_debug "Decompressing ${my_system_disk_container_distfile}."
     155    set my_system_disk_container_decompressed "[file rootname ${my_system_disk_container}].dmg"
     156    system -W ${worksrcpath} "hdiutil convert '${distpath}/${my_system_disk_container_distfile}' -format UDRO -o '${my_system_disk_container_decompressed}'"
    161157   
    162158    # The images on the container image. Images we don't need are commented out for future reference.
     
    181177   
    182178    # Delete temporary files we no longer need.
    183     delete ${worksrcpath}/${my_system_disk_container} ${worksrcpath}/${my_system_disk_container_decompressed}
     179    delete ${worksrcpath}/${my_system_disk_container_decompressed}
    184180   
    185181    # Make the data directory, where Mini vMac looks for the files it needs.
  • trunk/dports/emulators/minivmac/Portfile

    r106318 r106320  
    142142
    143143post-extract {
    144     # Decode MacBinary encoding of the system disk container image.
    145     ui_debug "Decoding ${my_system_disk_container_distfile}."
    146     system -W ${worksrcpath} "sh ${filespath}/demacbinary.sh ${distpath}/${my_system_disk_container_distfile}"
    147    
    148144    # Decompress the system disk container image.
    149     ui_debug "Decompressing ${my_system_disk_container}."
    150     set my_system_disk_container_decompressed "[file rootname ${my_system_disk_container}].uncompressed.dmg"
    151     system -W ${worksrcpath} "hdiutil convert '${my_system_disk_container}' -format UDRO -o '${my_system_disk_container_decompressed}'"
     145    ui_debug "Decompressing ${my_system_disk_container_distfile}."
     146    set my_system_disk_container_decompressed "[file rootname ${my_system_disk_container}].dmg"
     147    system -W ${worksrcpath} "hdiutil convert '${distpath}/${my_system_disk_container_distfile}' -format UDRO -o '${my_system_disk_container_decompressed}'"
    152148   
    153149    # The images on the container image. Images we don't need are commented out for future reference.
     
    172168   
    173169    # Delete temporary files we no longer need.
    174     delete ${worksrcpath}/${my_system_disk_container} ${worksrcpath}/${my_system_disk_container_decompressed}
     170    delete ${worksrcpath}/${my_system_disk_container_decompressed}
    175171   
    176172    # Make the data directory, where Mini vMac looks for the files it needs.
Note: See TracChangeset for help on using the changeset viewer.