[51530] users/ryandesign/minivmac-devel
ryandesign at macports.org
ryandesign at macports.org
Wed May 27 08:48:32 PDT 2009
Revision: 51530
http://trac.macports.org/changeset/51530
Author: ryandesign at macports.org
Date: 2009-05-27 08:48:31 -0700 (Wed, 27 May 2009)
Log Message:
-----------
minivmac portfiles: whitespace changes only (tabs to spaces)
Modified Paths:
--------------
trunk/dports/emulators/minivmac/Portfile
users/ryandesign/minivmac/Portfile
users/ryandesign/minivmac-devel/Portfile
Modified: trunk/dports/emulators/minivmac/Portfile
===================================================================
--- trunk/dports/emulators/minivmac/Portfile 2009-05-27 15:18:22 UTC (rev 51529)
+++ trunk/dports/emulators/minivmac/Portfile 2009-05-27 15:48:31 UTC (rev 51530)
@@ -1,106 +1,106 @@
# $Id$
-PortSystem 1.0
+PortSystem 1.0
-name minivmac
-version 2.8.2
-revision 2
-categories emulators aqua
-maintainers ryandesign
-homepage http://minivmac.sourceforge.net/
-master_sites sourceforge
-use_configure no
-worksrcdir projects/bgcmachs
+name minivmac
+version 2.8.2
+revision 2
+categories emulators aqua
+maintainers ryandesign
+homepage http://minivmac.sourceforge.net/
+master_sites sourceforge
+use_configure no
+worksrcdir projects/bgcmachs
build.target
-platforms darwin
-universal_variant no
-use_parallel_build yes
+platforms darwin
+universal_variant no
+use_parallel_build yes
description \
- a Mac 128K, Mac 512K, Mac 512KE, Mac Plus and Mac SE emulator
+ a Mac 128K, Mac 512K, Mac 512KE, Mac Plus and Mac SE emulator
long_description \
- Mini vMac is a Macintosh emulator. It emulates the earliest Macs, \
- from the original Mac 128K (built 1984-85) to the Mac SE (1987-1990). \
- The default is to emulate a Mac Plus (1986-1990)\; this is also \
- the best-tested and therefore recommended emulation.
+ Mini vMac is a Macintosh emulator. It emulates the earliest Macs, \
+ from the original Mac 128K (built 1984-85) to the Mac SE (1987-1990). \
+ The default is to emulate a Mac Plus (1986-1990)\; this is also \
+ the best-tested and therefore recommended emulation.
distfiles \
- ${distname}.prj.tgz \
- ${distname}.src.tgz
+ ${distname}.prj.tgz \
+ ${distname}.src.tgz
checksums \
- ${distname}.prj.tgz \
- md5 cfd3c6b60080d2184d6895b84c616fbf \
- sha1 8aa54b5708e280d1ed0c1f68aca8a38965cad4e2 \
- rmd160 d0e8d7734109b12caaf909efea231fe2a3a55979 \
- ${distname}.src.tgz \
- md5 ff6e67f654f09098ffbb8f26a5a7ae20 \
- sha1 6cdc4b514f3b45869a9fd2c5ee528499e772ad5e \
- rmd160 dc7a827fc1821014b2ac0f9b5cd025e1133d83ef
+ ${distname}.prj.tgz \
+ md5 cfd3c6b60080d2184d6895b84c616fbf \
+ sha1 8aa54b5708e280d1ed0c1f68aca8a38965cad4e2 \
+ rmd160 d0e8d7734109b12caaf909efea231fe2a3a55979 \
+ ${distname}.src.tgz \
+ md5 ff6e67f654f09098ffbb8f26a5a7ae20 \
+ sha1 6cdc4b514f3b45869a9fd2c5ee528499e772ad5e \
+ rmd160 dc7a827fc1821014b2ac0f9b5cd025e1133d83ef
-set romfile vMac.ROM
-set romfile_model "Macintosh Plus or 512Ke"
+set romfile vMac.ROM
+set romfile_model "Macintosh Plus or 512Ke"
post-extract {
- reinplace "s|maintained by unknown|maintained by MacPorts|" \
- ${worksrcpath}/config/Info.plist
- reinplace "s|#define kMaintainerName \"unknown\"|#define kMaintainerName \"MacPorts\"|" \
- ${worksrcpath}/config/CNFGGLOB.h
+ reinplace "s|maintained by unknown|maintained by MacPorts|" \
+ ${worksrcpath}/config/Info.plist
+ reinplace "s|#define kMaintainerName \"unknown\"|#define kMaintainerName \"MacPorts\"|" \
+ ${worksrcpath}/config/CNFGGLOB.h
}
destroot {
- xinstall -m 755 -d ${destroot}${applications_dir}
- file copy ${worksrcpath}/minivmac.app \
- ${destroot}${applications_dir}/Mini\ vMac.app
+ xinstall -m 755 -d ${destroot}${applications_dir}
+ file copy ${worksrcpath}/minivmac.app \
+ ${destroot}${applications_dir}/Mini\ vMac.app
}
post-install {
- if { ! [file exists ${applications_dir}/${romfile}] } {
- ui_msg "**************************************************************"
- ui_msg "Mini vMac requires a ROM file from the type of machine you're"
- ui_msg "emulating in order to work. The ROM file is not included with"
- ui_msg "this package because it is copyrighted Apple software."
- ui_msg "Download the CopyRoms program from the Mini vMac web site"
- ui_msg "(${homepage} > More > Extras)"
- ui_msg "and transfer it to a real physical ${romfile_model}"
- ui_msg "that you own. Run the CopyRoms program there, then transfer"
- ui_msg "the ROM file back to this Mac, name it ${romfile},"
- ui_msg "and put it in ${applications_dir}."
- ui_msg "**************************************************************"
- }
+ if { ! [file exists ${applications_dir}/${romfile}] } {
+ ui_msg "**************************************************************"
+ ui_msg "Mini vMac requires a ROM file from the type of machine you're"
+ ui_msg "emulating in order to work. The ROM file is not included with"
+ ui_msg "this package because it is copyrighted Apple software."
+ ui_msg "Download the CopyRoms program from the Mini vMac web site"
+ ui_msg "(${homepage} > More > Extras)"
+ ui_msg "and transfer it to a real physical ${romfile_model}"
+ ui_msg "that you own. Run the CopyRoms program there, then transfer"
+ ui_msg "the ROM file back to this Mac, name it ${romfile},"
+ ui_msg "and put it in ${applications_dir}."
+ ui_msg "**************************************************************"
+ }
}
if { ![variant_isset mac128k] && ![variant_isset mac512k] && ![variant_isset mac512ke] && ![variant_isset macse] } {
- default_variants +macplus
+ default_variants +macplus
}
variant mac128k conflicts mac512k mac512ke macplus macse description {Emulate a Macintosh with 128K RAM and 2 drives} {
- patchfiles-append patch-CNFGGLOB.h-mac128k.diff
- set romfile Mac128K.ROM
- set romfile_model "Macintosh 128K or 512K"
+ patchfiles-append patch-CNFGGLOB.h-mac128k.diff
+ set romfile Mac128K.ROM
+ set romfile_model "Macintosh 128K or 512K"
}
variant mac512k conflicts mac128k mac512ke macplus macse description {Emulate a Macintosh 512K with 512K RAM and 2 drives} {
- patchfiles-append patch-CNFGGLOB.h-mac512k.diff
- set romfile Mac128K.ROM
- set romfile_model "Macintosh 128K or 512K"
+ patchfiles-append patch-CNFGGLOB.h-mac512k.diff
+ set romfile Mac128K.ROM
+ set romfile_model "Macintosh 128K or 512K"
}
variant mac512ke conflicts mac128k mac512k macplus macse description {Emulate a Macintosh 512Ke with 512K RAM and 6 drives} {
- patchfiles-append patch-CNFGGLOB.h-mac512ke.diff
+ patchfiles-append patch-CNFGGLOB.h-mac512ke.diff
}
variant macplus conflicts mac128k mac512k mac512ke macse description {Emulate a Macintosh Plus with 4 MB RAM and 6 drives (default)} {
- # Mac Plus emulation is the default so we don't need to do anything here
+ # Mac Plus emulation is the default so we don't need to do anything here
}
variant macse conflicts mac128k mac512k mac512ke macplus description {Emulate a Macintosh SE with 4 MB RAM and 6 drives} {
- patchfiles-append patch-CNFGGLOB.h-macse.diff
- set romfile MacSE.ROM
- set romfile_model "Macintosh SE"
+ patchfiles-append patch-CNFGGLOB.h-macse.diff
+ set romfile MacSE.ROM
+ set romfile_model "Macintosh SE"
}
-livecheck.check regex
-livecheck.url ${homepage}download.html
-livecheck.regex ${name}-(\[0-9.\]+)\\.src
+livecheck.check regex
+livecheck.url ${homepage}download.html
+livecheck.regex ${name}-(\[0-9.\]+)\\.src
Modified: users/ryandesign/minivmac/Portfile
===================================================================
--- users/ryandesign/minivmac/Portfile 2009-05-27 15:18:22 UTC (rev 51529)
+++ users/ryandesign/minivmac/Portfile 2009-05-27 15:48:31 UTC (rev 51530)
@@ -1,31 +1,31 @@
# $Id$
-PortSystem 1.0
+PortSystem 1.0
-name minivmac
-version 3.0.4
-revision 1
-categories emulators aqua
-maintainers ryandesign
-homepage http://minivmac.sourceforge.net/
-use_zip yes
-platforms macosx
-universal_variant no
+name minivmac
+version 3.0.4
+revision 1
+categories emulators aqua
+maintainers ryandesign
+homepage http://minivmac.sourceforge.net/
+use_zip yes
+platforms macosx
+universal_variant no
build.target
-use_parallel_build yes
+use_parallel_build yes
description \
- a Mac 128K, Mac 512K, Mac 512KE, Mac Plus and Mac SE emulator
+ a Mac 128K, Mac 512K, Mac 512KE, Mac Plus and Mac SE emulator
long_description \
- Mini vMac is a Macintosh emulator. It emulates the earliest Macs, \
- from the original Mac 128K (built 1984-85) to the Mac SE (1987-1990). \
- The default is to emulate a Mac Plus (1986-1990)\; this is also \
- the best-tested and therefore recommended emulation.
+ Mini vMac is a Macintosh emulator. It emulates the earliest Macs, \
+ from the original Mac 128K (built 1984-85) to the Mac SE (1987-1990). \
+ The default is to emulate a Mac Plus (1986-1990)\; this is also \
+ the best-tested and therefore recommended emulation.
master_sites \
- sourceforge:${name}:minivmac \
- http://download.info.apple.com/Apple_Support_Area/Apple_Software_Updates/English-International/Macintosh/System/Full_Installs/:apple
+ sourceforge:${name}:minivmac \
+ http://download.info.apple.com/Apple_Support_Area/Apple_Software_Updates/English-International/Macintosh/System/Full_Installs/:apple
set my_src ${distname}.src
set my_src_compressed ${my_src}.zip
@@ -40,250 +40,250 @@
set my_system_disk_container_compressed ${my_system_disk_container}.bin
distfiles \
- ${my_src_compressed}:minivmac \
- ${my_icons_compressed}:minivmac \
- ${my_autoquit_compressed}:minivmac \
- ${my_system_disk_container_compressed}:apple
+ ${my_src_compressed}:minivmac \
+ ${my_icons_compressed}:minivmac \
+ ${my_autoquit_compressed}:minivmac \
+ ${my_system_disk_container_compressed}:apple
extract.only \
- ${my_src_compressed} \
- ${my_icons_compressed} \
- ${my_autoquit_compressed}
+ ${my_src_compressed} \
+ ${my_icons_compressed} \
+ ${my_autoquit_compressed}
checksums \
- ${my_src_compressed} \
- md5 ab308459e98bd5103ad8bbb7dd158eb6 \
- sha1 ff99aa72da0868a5306631f0d06ae190cbd2a03a \
- rmd160 b8f1f5269d21835ff3e9e428da12a7b6c224e60e \
- ${my_bootstrap_compressed} \
- md5 298565ec1ccfe6876768156aaf5f76a0 \
- sha1 34212dedb1cfb744e6ca8124693f2f6e40094833 \
- rmd160 042eacfb9ec853589d661c86ffb99d509061eb0f \
- ${my_icons_compressed} \
- md5 2af006506de7549be14f94317918d59a \
- sha1 4ef79bb56b988fedfeb82a8b6cafd8066f5bbab2 \
- rmd160 cef6d7d7578464538d0042b0d98379ae7f18fab7 \
- ${my_autoquit_compressed} \
- md5 eebe87a27d6db8e8f247f0fffe0f2bd5 \
- sha1 8199e1da12d01fc210ae1eaa50f794e5b8c479c1 \
- rmd160 f493a59fd637caa8a7937fbefaf6ebdf4a07c7f5 \
- ${my_system_disk_container_compressed} \
- md5 5e7b4c0ce13e65546eb795c35879751a \
- sha1 bf37fde76dfd9d4ed35526954c149566d761c2a6 \
- rmd160 08788cbcca023ea9a0713ecec4781c35aa5a9185
+ ${my_src_compressed} \
+ md5 ab308459e98bd5103ad8bbb7dd158eb6 \
+ sha1 ff99aa72da0868a5306631f0d06ae190cbd2a03a \
+ rmd160 b8f1f5269d21835ff3e9e428da12a7b6c224e60e \
+ ${my_bootstrap_compressed} \
+ md5 298565ec1ccfe6876768156aaf5f76a0 \
+ sha1 34212dedb1cfb744e6ca8124693f2f6e40094833 \
+ rmd160 042eacfb9ec853589d661c86ffb99d509061eb0f \
+ ${my_icons_compressed} \
+ md5 2af006506de7549be14f94317918d59a \
+ sha1 4ef79bb56b988fedfeb82a8b6cafd8066f5bbab2 \
+ rmd160 cef6d7d7578464538d0042b0d98379ae7f18fab7 \
+ ${my_autoquit_compressed} \
+ md5 eebe87a27d6db8e8f247f0fffe0f2bd5 \
+ sha1 8199e1da12d01fc210ae1eaa50f794e5b8c479c1 \
+ rmd160 f493a59fd637caa8a7937fbefaf6ebdf4a07c7f5 \
+ ${my_system_disk_container_compressed} \
+ md5 5e7b4c0ce13e65546eb795c35879751a \
+ sha1 bf37fde76dfd9d4ed35526954c149566d761c2a6 \
+ rmd160 08788cbcca023ea9a0713ecec4781c35aa5a9185
depends_build \
- port:macutil \
- bin:expect:expect
+ port:macutil \
+ bin:expect:expect
-set my_appdir "${applications_dir}/Mini vMac"
-set romfile vMac.ROM
-set romfile_model "Macintosh Plus or 512Ke"
-set my_mnvm_dat "${workpath}/${my_bootstrap}/Contents/mnvm_dat"
-set my_options_file options.txt
-set my_base_options "-maintainer MacPorts -homepage http://www.macports.org/ -cl -eol unx -nex"
-set my_target ""
-set my_machine Plus
+set my_appdir "${applications_dir}/Mini vMac"
+set romfile vMac.ROM
+set romfile_model "Macintosh Plus or 512Ke"
+set my_mnvm_dat "${workpath}/${my_bootstrap}/Contents/mnvm_dat"
+set my_options_file options.txt
+set my_base_options "-maintainer MacPorts -homepage http://www.macports.org/ -cl -eol unx -nex"
+set my_target ""
+set my_machine Plus
set my_variation_machine mac[string tolower ${my_machine}]
platform powerpc {
- set my_target mach
+ set my_target mach
}
platform i386 {
- set my_target imch
+ set my_target imch
}
pre-fetch {
- if { ! [file exists ${my_appdir}/${romfile}] } {
- ui_msg "**************************************************************"
- ui_msg "Mini vMac requires a ROM file from the type of machine you're"
- ui_msg "emulating in order to work. The ROM file is not included with"
- ui_msg "this package because it is copyrighted Apple software."
- ui_msg "Download the CopyRoms program from the Mini vMac web site"
- ui_msg "(${homepage} > More > Extras)"
- ui_msg "and transfer it to a real physical ${romfile_model}"
- ui_msg "that you own. Run the CopyRoms program there, then transfer"
- ui_msg "the ROM file back to this Mac, name it ${romfile},"
- ui_msg "and put it in ${my_appdir}."
- ui_msg "**************************************************************"
- return -code error "missing ROM file"
- }
+ if { ! [file exists ${my_appdir}/${romfile}] } {
+ ui_msg "**************************************************************"
+ ui_msg "Mini vMac requires a ROM file from the type of machine you're"
+ ui_msg "emulating in order to work. The ROM file is not included with"
+ ui_msg "this package because it is copyrighted Apple software."
+ ui_msg "Download the CopyRoms program from the Mini vMac web site"
+ ui_msg "(${homepage} > More > Extras)"
+ ui_msg "and transfer it to a real physical ${romfile_model}"
+ ui_msg "that you own. Run the CopyRoms program there, then transfer"
+ ui_msg "the ROM file back to this Mac, name it ${romfile},"
+ ui_msg "and put it in ${my_appdir}."
+ ui_msg "**************************************************************"
+ return -code error "missing ROM file"
+ }
}
post-extract {
- system "tar -x -z -C ${workpath} -f ${distpath}/${my_bootstrap_compressed}"
-
- xinstall -W ${filespath} attach.exp demacbinary.sh ${workpath}
-
- system "${workpath}/demacbinary.sh ${distpath}/${my_system_disk_container_compressed} ${workpath}"
-
- file mkdir ${my_mnvm_dat}
- ln -s ${my_appdir}/${romfile} ${my_mnvm_dat}
-
- # Copy the Disk Tools and Tidbits images from the container image.
- set my_system_disk_container_mount [my_attach_disk_image ${workpath}/${my_system_disk_container} 0]
- file copy "${my_system_disk_container_mount}/Disk Tools.image" ${workpath}/startup.img
- file copy "${my_system_disk_container_mount}/Tidbits.image" ${workpath}/tidbits.img
- my_detach_disk_image ${my_system_disk_container_mount}
-
- # The disk image mounter likes images to have the .img extension.
- file rename ${workpath}/${my_src}/${my_src}.dsk ${workpath}/src.img
- file rename ${workpath}/${my_autoquit}/${my_autoquit}.dsk ${workpath}/autoquit.img
-
- # Mount the startup disk and make room on it for our things.
- set my_startup_disk_mount [my_attach_disk_image ${workpath}/startup.img 1]
- file delete "${my_startup_disk_mount}/Apple HD SC Setup" "${my_startup_disk_mount}/Disk First Aid"
-
- # Copy autoquit to the startup disk and make it open at startup.
- # Need to use ditto to preserve the resource fork.
- set my_autoquit_disk_mount [my_attach_disk_image ${workpath}/autoquit.img 0]
- set my_startup_disk_autoquit_dir "${my_startup_disk_mount}/autoquit"
- file mkdir "${my_startup_disk_autoquit_dir}"
- system "ditto --rsrc ${my_autoquit_disk_mount}/AutQuit7 ${my_startup_disk_autoquit_dir}"
- my_detach_disk_image ${my_autoquit_disk_mount}
- my_make_alias "${my_startup_disk_autoquit_dir}/AutQuit7" "${my_startup_disk_mount}/System Folder/Startup Items"
-
- # Mount the source disk.
- set my_src_disk_mount [my_attach_disk_image ${workpath}/src.img 1]
-
- # Copy TeachText to the source disk. (No room on the startup disk.)
- set my_tidbits_disk_mount [my_attach_disk_image ${workpath}/tidbits.img 0]
- system "ditto --rsrc ${my_tidbits_disk_mount}/TeachText ${my_src_disk_mount}"
- my_detach_disk_image ${my_tidbits_disk_mount}
-
- # Force a rebuild of the Desktop files, both to add info about TeachText and
- # to remove that of Apple HD SC Setup and Disk First Aid (to make more room).
- file delete ${my_startup_disk_mount}/Desktop ${my_src_disk_mount}/Desktop
-
- # Create an empty options file so we can make an alias to it.
- set my_options_file_id [open ${my_src_disk_mount}/${my_options_file} "w"]
- close ${my_options_file_id}
- system "/Developer/Tools/SetFile -c ttxt -t TEXT ${my_src_disk_mount}/${my_options_file}"
-
- # Have autoquit launch the build system. If there's an alias "app" in the same directory,
- # autoquit will open it. If there's also an alias "doc" in the same directory, autoquit
- # will open the document "doc" into the application "app".
- my_make_alias "${my_src_disk_mount}/Build" "${my_startup_disk_autoquit_dir}/app"
- # The build system doesn't support reading text files yet.
-# my_make_alias "${my_src_disk_mount}/${my_options_file}" "${my_startup_disk_autoquit_dir}/doc"
- my_make_alias "${my_src_disk_mount}/${my_options_file}" "${my_startup_disk_mount}/System Folder/Startup Items"
-
- # Unmount disk images.
- my_detach_disk_image ${my_startup_disk_mount}
- my_detach_disk_image ${my_src_disk_mount}
-
- # Mini vMac looks for disks named disk1.dsk through disk3.dsk and automounts them.
- file rename "${workpath}/startup.img" "${my_mnvm_dat}/disk1.dsk"
+ system "tar -x -z -C ${workpath} -f ${distpath}/${my_bootstrap_compressed}"
+
+ xinstall -W ${filespath} attach.exp demacbinary.sh ${workpath}
+
+ system "${workpath}/demacbinary.sh ${distpath}/${my_system_disk_container_compressed} ${workpath}"
+
+ file mkdir ${my_mnvm_dat}
+ ln -s ${my_appdir}/${romfile} ${my_mnvm_dat}
+
+ # Copy the Disk Tools and Tidbits images from the container image.
+ set my_system_disk_container_mount [my_attach_disk_image ${workpath}/${my_system_disk_container} 0]
+ file copy "${my_system_disk_container_mount}/Disk Tools.image" ${workpath}/startup.img
+ file copy "${my_system_disk_container_mount}/Tidbits.image" ${workpath}/tidbits.img
+ my_detach_disk_image ${my_system_disk_container_mount}
+
+ # The disk image mounter likes images to have the .img extension.
+ file rename ${workpath}/${my_src}/${my_src}.dsk ${workpath}/src.img
+ file rename ${workpath}/${my_autoquit}/${my_autoquit}.dsk ${workpath}/autoquit.img
+
+ # Mount the startup disk and make room on it for our things.
+ set my_startup_disk_mount [my_attach_disk_image ${workpath}/startup.img 1]
+ file delete "${my_startup_disk_mount}/Apple HD SC Setup" "${my_startup_disk_mount}/Disk First Aid"
+
+ # Copy autoquit to the startup disk and make it open at startup.
+ # Need to use ditto to preserve the resource fork.
+ set my_autoquit_disk_mount [my_attach_disk_image ${workpath}/autoquit.img 0]
+ set my_startup_disk_autoquit_dir "${my_startup_disk_mount}/autoquit"
+ file mkdir "${my_startup_disk_autoquit_dir}"
+ system "ditto --rsrc ${my_autoquit_disk_mount}/AutQuit7 ${my_startup_disk_autoquit_dir}"
+ my_detach_disk_image ${my_autoquit_disk_mount}
+ my_make_alias "${my_startup_disk_autoquit_dir}/AutQuit7" "${my_startup_disk_mount}/System Folder/Startup Items"
+
+ # Mount the source disk.
+ set my_src_disk_mount [my_attach_disk_image ${workpath}/src.img 1]
+
+ # Copy TeachText to the source disk. (No room on the startup disk.)
+ set my_tidbits_disk_mount [my_attach_disk_image ${workpath}/tidbits.img 0]
+ system "ditto --rsrc ${my_tidbits_disk_mount}/TeachText ${my_src_disk_mount}"
+ my_detach_disk_image ${my_tidbits_disk_mount}
+
+ # Force a rebuild of the Desktop files, both to add info about TeachText and
+ # to remove that of Apple HD SC Setup and Disk First Aid (to make more room).
+ file delete ${my_startup_disk_mount}/Desktop ${my_src_disk_mount}/Desktop
+
+ # Create an empty options file so we can make an alias to it.
+ set my_options_file_id [open ${my_src_disk_mount}/${my_options_file} "w"]
+ close ${my_options_file_id}
+ system "/Developer/Tools/SetFile -c ttxt -t TEXT ${my_src_disk_mount}/${my_options_file}"
+
+ # Have autoquit launch the build system. If there's an alias "app" in the same directory,
+ # autoquit will open it. If there's also an alias "doc" in the same directory, autoquit
+ # will open the document "doc" into the application "app".
+ my_make_alias "${my_src_disk_mount}/Build" "${my_startup_disk_autoquit_dir}/app"
+ # The build system doesn't support reading text files yet.
+# my_make_alias "${my_src_disk_mount}/${my_options_file}" "${my_startup_disk_autoquit_dir}/doc"
+ my_make_alias "${my_src_disk_mount}/${my_options_file}" "${my_startup_disk_mount}/System Folder/Startup Items"
+
+ # Unmount disk images.
+ my_detach_disk_image ${my_startup_disk_mount}
+ my_detach_disk_image ${my_src_disk_mount}
+
+ # Mini vMac looks for disks named disk1.dsk through disk3.dsk and automounts them.
+ file rename "${workpath}/startup.img" "${my_mnvm_dat}/disk1.dsk"
}
configure {
- # Write our options file.
- set my_variation [my_get_variation]
- set my_options "${my_base_options} -t ${my_target} -m ${my_machine} -n ${my_variation}"
- set my_src_disk_mount [my_attach_disk_image ${workpath}/src.img 1]
- set my_options_file_id [open ${my_src_disk_mount}/${my_options_file} "w"]
- puts -nonewline ${my_options_file_id} ${my_options}
- close ${my_options_file_id}
- my_detach_disk_image ${my_src_disk_mount}
-
- # Move the source disk where Mini vMac will find it.
- file rename "${workpath}/src.img" "${my_mnvm_dat}/disk2.dsk"
-
- # Run the build system.
- system "'${workpath}/${my_bootstrap}/Contents/MacOS/minivmac'"
-
- # Give the source disk image the .img extension to appease the disk image mounter.
- file rename "${my_mnvm_dat}/disk2.dsk" "${workpath}/src.img"
-
- # Get the build product.
- set my_src_disk_mount [my_attach_disk_image ${workpath}/src.img 1]
- if {[file exists ${my_src_disk_mount}/output/${my_variation}]} {
- file copy ${my_src_disk_mount}/output/${my_variation} ${workpath}
- file delete -force ${my_src_disk_mount}/output/${my_variation}
- }
- my_detach_disk_image ${my_src_disk_mount}
+ # Write our options file.
+ set my_variation [my_get_variation]
+ set my_options "${my_base_options} -t ${my_target} -m ${my_machine} -n ${my_variation}"
+ set my_src_disk_mount [my_attach_disk_image ${workpath}/src.img 1]
+ set my_options_file_id [open ${my_src_disk_mount}/${my_options_file} "w"]
+ puts -nonewline ${my_options_file_id} ${my_options}
+ close ${my_options_file_id}
+ my_detach_disk_image ${my_src_disk_mount}
+
+ # Move the source disk where Mini vMac will find it.
+ file rename "${workpath}/src.img" "${my_mnvm_dat}/disk2.dsk"
+
+ # Run the build system.
+ system "'${workpath}/${my_bootstrap}/Contents/MacOS/minivmac'"
+
+ # Give the source disk image the .img extension to appease the disk image mounter.
+ file rename "${my_mnvm_dat}/disk2.dsk" "${workpath}/src.img"
+
+ # Get the build product.
+ set my_src_disk_mount [my_attach_disk_image ${workpath}/src.img 1]
+ if {[file exists ${my_src_disk_mount}/output/${my_variation}]} {
+ file copy ${my_src_disk_mount}/output/${my_variation} ${workpath}
+ file delete -force ${my_src_disk_mount}/output/${my_variation}
+ }
+ my_detach_disk_image ${my_src_disk_mount}
}
pre-build {
- set my_variation [my_get_variation]
- build.dir ${workpath}/${my_variation}
+ set my_variation [my_get_variation]
+ build.dir ${workpath}/${my_variation}
}
post-build {
- set my_variation [my_get_variation]
- eval xinstall -m 644 [glob ${workpath}/${my_icons}/icons/*.icns] ${workpath}/${my_variation}/minivmac.app/Contents/Resources
+ set my_variation [my_get_variation]
+ eval xinstall -m 644 [glob ${workpath}/${my_icons}/icons/*.icns] ${workpath}/${my_variation}/minivmac.app/Contents/Resources
}
destroot {
- set my_variation [my_get_variation]
- xinstall -d ${destroot}${my_appdir}
- file copy ${workpath}/${my_variation}/minivmac.app \
- ${destroot}${my_appdir}/Mini\ vMac\ ${my_machine}.app
+ set my_variation [my_get_variation]
+ xinstall -d ${destroot}${my_appdir}
+ file copy ${workpath}/${my_variation}/minivmac.app \
+ ${destroot}${my_appdir}/Mini\ vMac\ ${my_machine}.app
}
if { ![variant_isset mac128k] && ![variant_isset mac512k] && ![variant_isset mac512ke] && ![variant_isset macse] } {
- default_variants +macplus
+ default_variants +macplus
}
variant mac128k conflicts mac512k mac512ke macplus macse description {Emulate a Macintosh with 128K RAM and 2 drives} {
- patchfiles-append patch-CNFGGLOB.h-mac128k.diff
- set romfile Mac128K.ROM
- set romfile_model "Macintosh 128K or 512K"
+ patchfiles-append patch-CNFGGLOB.h-mac128k.diff
+ set romfile Mac128K.ROM
+ set romfile_model "Macintosh 128K or 512K"
}
variant mac512k conflicts mac128k mac512ke macplus macse description {Emulate a Macintosh 512K with 512K RAM and 2 drives} {
- patchfiles-append patch-CNFGGLOB.h-mac512k.diff
- set romfile Mac128K.ROM
- set romfile_model "Macintosh 128K or 512K"
+ patchfiles-append patch-CNFGGLOB.h-mac512k.diff
+ set romfile Mac128K.ROM
+ set romfile_model "Macintosh 128K or 512K"
}
variant mac512ke conflicts mac128k mac512k macplus macse description {Emulate a Macintosh 512Ke with 512K RAM and 6 drives} {
- patchfiles-append patch-CNFGGLOB.h-mac512ke.diff
+ patchfiles-append patch-CNFGGLOB.h-mac512ke.diff
}
variant macplus conflicts mac128k mac512k mac512ke macse description {Emulate a Macintosh Plus with 4 MB RAM and 6 drives (default)} {
- # Mac Plus emulation is the default so we don't need to do anything here
+ # Mac Plus emulation is the default so we don't need to do anything here
}
variant macse conflicts mac128k mac512k mac512ke macplus description {Emulate a Macintosh SE with 4 MB RAM and 6 drives} {
- patchfiles-append patch-CNFGGLOB.h-macse.diff
- set romfile MacSE.ROM
- set romfile_model "Macintosh SE"
+ patchfiles-append patch-CNFGGLOB.h-macse.diff
+ set romfile MacSE.ROM
+ set romfile_model "Macintosh SE"
}
proc my_attach_disk_image {disk_image allow_writing} {
- global name workpath
- set mountpoint [exec mktemp -d -q -t ${name}]
- # Use this expect script instead of using hdiutil directly, because the
- # system disk image has a license agreement we must agree to.
- system "${workpath}/attach.exp '${disk_image}' '${mountpoint}' '${allow_writing}'"
- return ${mountpoint}
+ global name workpath
+ set mountpoint [exec mktemp -d -q -t ${name}]
+ # Use this expect script instead of using hdiutil directly, because the
+ # system disk image has a license agreement we must agree to.
+ system "${workpath}/attach.exp '${disk_image}' '${mountpoint}' '${allow_writing}'"
+ return ${mountpoint}
}
proc my_detach_disk_image {mountpoint} {
- system "hdiutil detach ${mountpoint} -force"
- file delete -force ${mountpoint}
+ system "hdiutil detach ${mountpoint} -force"
+ file delete -force ${mountpoint}
}
proc my_make_alias {src dst} {
- set dst_is_dir [file isdirectory "${dst}"]
- if {${dst_is_dir}} {
- set dst_dir "${dst}"
- } else {
- set dst_dir "[file dirname ${dst}]"
- }
- system "osascript -e 'set src to POSIX file \"${src}\"' -e 'set dst_dir to POSIX file \"${dst_dir}\"' -e 'tell app \"Finder\" to make new alias file at dst_dir to src' -e 'return'"
- if {!${dst_is_dir}} {
- file rename "[file join ${dst_dir} [file tail ${src}]]" "${dst}"
- }
+ set dst_is_dir [file isdirectory "${dst}"]
+ if {${dst_is_dir}} {
+ set dst_dir "${dst}"
+ } else {
+ set dst_dir "[file dirname ${dst}]"
+ }
+ system "osascript -e 'set src to POSIX file \"${src}\"' -e 'set dst_dir to POSIX file \"${dst_dir}\"' -e 'tell app \"Finder\" to make new alias file at dst_dir to src' -e 'return'"
+ if {!${dst_is_dir}} {
+ file rename "[file join ${dst_dir} [file tail ${src}]]" "${dst}"
+ }
}
proc my_get_variation {} {
- global name version revision my_variation_machine my_target
- return ${name}-${version}_${revision}-${my_variation_machine}-${my_target}
+ global name version revision my_variation_machine my_target
+ return ${name}-${version}_${revision}-${my_variation_machine}-${my_target}
}
-livecheck.check regex
-livecheck.url ${homepage}download.html
-livecheck.regex ${name}-(\[0-9.\]+)\\.src
+livecheck.check regex
+livecheck.url ${homepage}download.html
+livecheck.regex ${name}-(\[0-9.\]+)\\.src
Modified: users/ryandesign/minivmac-devel/Portfile
===================================================================
--- users/ryandesign/minivmac-devel/Portfile 2009-05-27 15:18:22 UTC (rev 51529)
+++ users/ryandesign/minivmac-devel/Portfile 2009-05-27 15:48:31 UTC (rev 51530)
@@ -1,6 +1,6 @@
# $Id$
-PortSystem 1.0
+PortSystem 1.0
name minivmac-devel
set my_name minivmac
@@ -8,210 +8,210 @@
set version_number [lindex [split ${version} -] 0]
set version_date [lindex [split ${version} -] 1]
set version_short_date [string range ${version_date} 2 end]
-categories emulators aqua
-maintainers ryandesign
-homepage http://minivmac.sourceforge.net/
-use_zip yes
-platforms macosx
-universal_variant no
+categories emulators aqua
+maintainers ryandesign
+homepage http://minivmac.sourceforge.net/
+use_zip yes
+platforms macosx
+universal_variant no
build.target
-use_parallel_build yes
+use_parallel_build yes
dist_subdir ${my_name}
description \
- a Mac 128K, Mac 512K, Mac 512KE, Mac Plus and Mac SE emulator
+ a Mac 128K, Mac 512K, Mac 512KE, Mac Plus and Mac SE emulator
long_description \
- Mini vMac is a Macintosh emulator. It emulates the earliest Macs, \
- from the original Mac 128K (built 1984-85) to the Mac SE (1987-1990). \
- The default is to emulate a Mac Plus (1986-1990)\; this is also \
- the best-tested and therefore recommended emulation.
+ Mini vMac is a Macintosh emulator. It emulates the earliest Macs, \
+ from the original Mac 128K (built 1984-85) to the Mac SE (1987-1990). \
+ The default is to emulate a Mac Plus (1986-1990)\; this is also \
+ the best-tested and therefore recommended emulation.
master_sites sourceforge:${my_name}
-distname ${my_name}${version_short_date}
-set my_src ${distname}.src
-set my_src_compressed ${my_src}.zip
-set my_icons icnsosx-1.0.0
-set my_icons_compressed ${my_icons}.zip
+distname ${my_name}${version_short_date}
+set my_src ${distname}.src
+set my_src_compressed ${my_src}.zip
+set my_icons icnsosx-1.0.0
+set my_icons_compressed ${my_icons}.zip
distfiles \
- ${my_src_compressed} \
- ${my_icons_compressed}
+ ${my_src_compressed} \
+ ${my_icons_compressed}
checksums \
- ${my_src_compressed} \
- md5 7defdcb859cdda0df3bdc3c252370a70 \
- sha1 f4a80b326380746b88993d53eeb6a7d46768358b \
- rmd160 828eb032ea3ac0f52054d0c8af1d6910ded1dff0 \
- ${my_icons_compressed} \
- md5 2af006506de7549be14f94317918d59a \
- sha1 4ef79bb56b988fedfeb82a8b6cafd8066f5bbab2 \
- rmd160 cef6d7d7578464538d0042b0d98379ae7f18fab7
+ ${my_src_compressed} \
+ md5 7defdcb859cdda0df3bdc3c252370a70 \
+ sha1 f4a80b326380746b88993d53eeb6a7d46768358b \
+ rmd160 828eb032ea3ac0f52054d0c8af1d6910ded1dff0 \
+ ${my_icons_compressed} \
+ md5 2af006506de7549be14f94317918d59a \
+ sha1 4ef79bb56b988fedfeb82a8b6cafd8066f5bbab2 \
+ rmd160 cef6d7d7578464538d0042b0d98379ae7f18fab7
depends_build \
- bin:expect:expect
+ bin:expect:expect
patchfiles \
- patch-build.diff
+ patch-build.diff
-set my_appdir "${applications_dir}/Mini vMac"
-set romfile vMac.ROM
-set romfile_model "Macintosh Plus or 512Ke"
-set my_options_file options.txt
-set my_base_options "-maintainer MacPorts -homepage http://www.macports.org/ -cl -eol unx -nex"
-set my_target ""
-set my_machine Plus
+set my_appdir "${applications_dir}/Mini vMac"
+set romfile vMac.ROM
+set romfile_model "Macintosh Plus or 512Ke"
+set my_options_file options.txt
+set my_base_options "-maintainer MacPorts -homepage http://www.macports.org/ -cl -eol unx -nex"
+set my_target ""
+set my_machine Plus
set my_variation_machine mac[string tolower ${my_machine}]
platform powerpc {
- set my_target mach
+ set my_target mach
}
platform i386 {
- set my_target imch
+ set my_target imch
}
pre-fetch {
- if { ! [file exists ${my_appdir}/${romfile}] } {
- ui_msg "**************************************************************"
- ui_msg "Mini vMac requires a ROM file from the type of machine you're"
- ui_msg "emulating in order to work. The ROM file is not included with"
- ui_msg "this package because it is copyrighted Apple software."
- ui_msg "Download the CopyRoms program from the Mini vMac web site"
- ui_msg "(${homepage} > More > Extras)"
- ui_msg "and transfer it to a real physical ${romfile_model}"
- ui_msg "that you own. Run the CopyRoms program there, then transfer"
- ui_msg "the ROM file back to this Mac, name it ${romfile},"
- ui_msg "and put it in ${my_appdir}."
- ui_msg "**************************************************************"
- return -code error "missing ROM file"
- }
+ if { ! [file exists ${my_appdir}/${romfile}] } {
+ ui_msg "**************************************************************"
+ ui_msg "Mini vMac requires a ROM file from the type of machine you're"
+ ui_msg "emulating in order to work. The ROM file is not included with"
+ ui_msg "this package because it is copyrighted Apple software."
+ ui_msg "Download the CopyRoms program from the Mini vMac web site"
+ ui_msg "(${homepage} > More > Extras)"
+ ui_msg "and transfer it to a real physical ${romfile_model}"
+ ui_msg "that you own. Run the CopyRoms program there, then transfer"
+ ui_msg "the ROM file back to this Mac, name it ${romfile},"
+ ui_msg "and put it in ${my_appdir}."
+ ui_msg "**************************************************************"
+ return -code error "missing ROM file"
+ }
}
post-extract {
- xinstall -W ${filespath} attach.exp runbuild.sh ${workpath}
-
- # The disk image mounter likes images to have the .img extension.
- file rename ${workpath}/${my_src}/${my_src}.dsk ${workpath}/src.img
-
- # Mount the source disk image.
- set my_src_disk_mount [my_attach_disk_image ${workpath}/src.img 0]
-
- # Copy the source from the disk image into the workpath.
- file mkdir ${worksrcpath}
- foreach thing {COPYING.txt README.txt output projects source} {
- copy ${my_src_disk_mount}/${thing} ${worksrcpath}
- }
-
- # Unmount the disk image.
- my_detach_disk_image ${my_src_disk_mount}
-
- # Convert CR to LF line endings.
- fs-traverse thing ${worksrcpath} {
- if {[file isfile ${thing}]} {
- foreach extension {.a .c .h .i .plist .r Makefile} {
- if {[string match "*${extension}" ${thing}]} {
- reinplace "s/\r/\\\n/g" ${thing}
- }
- }
- }
- }
+ xinstall -W ${filespath} attach.exp runbuild.sh ${workpath}
+
+ # The disk image mounter likes images to have the .img extension.
+ file rename ${workpath}/${my_src}/${my_src}.dsk ${workpath}/src.img
+
+ # Mount the source disk image.
+ set my_src_disk_mount [my_attach_disk_image ${workpath}/src.img 0]
+
+ # Copy the source from the disk image into the workpath.
+ file mkdir ${worksrcpath}
+ foreach thing {COPYING.txt README.txt output projects source} {
+ copy ${my_src_disk_mount}/${thing} ${worksrcpath}
+ }
+
+ # Unmount the disk image.
+ my_detach_disk_image ${my_src_disk_mount}
+
+ # Convert CR to LF line endings.
+ fs-traverse thing ${worksrcpath} {
+ if {[file isfile ${thing}]} {
+ foreach extension {.a .c .h .i .plist .r Makefile} {
+ if {[string match "*${extension}" ${thing}]} {
+ reinplace "s/\r/\\\n/g" ${thing}
+ }
+ }
+ }
+ }
}
configure {
- # Build the build system.
- if {![file exists ${worksrcpath}/Build.app]} {
- set my_cmd "cd ${worksrcpath}/projects/gcc_${my_target} && make"
- ui_debug ${my_cmd}
- system ${my_cmd}
- file rename ${worksrcpath}/projects/gcc_${my_target}/Build.app ${worksrcpath}
- }
-
- # Write our options file.
- set my_variation [my_get_variation]
- set my_options "${my_base_options} -t ${my_target} -m ${my_machine} -n ${my_variation}"
- set my_options_file_id [open ${worksrcpath}/${my_options_file} "w"]
- puts -nonewline ${my_options_file_id} ${my_options}
- close ${my_options_file_id}
-
- # Run the build system.
- set my_cmd "${workpath}/runbuild.sh ${worksrcpath} ${worksrcpath}/${my_options_file}"
- ui_debug ${my_cmd}
- system ${my_cmd}
-
- # Get the build product.
- file rename ${worksrcpath}/output/${my_variation} ${workpath}
+ # Build the build system.
+ if {![file exists ${worksrcpath}/Build.app]} {
+ set my_cmd "cd ${worksrcpath}/projects/gcc_${my_target} && make"
+ ui_debug ${my_cmd}
+ system ${my_cmd}
+ file rename ${worksrcpath}/projects/gcc_${my_target}/Build.app ${worksrcpath}
+ }
+
+ # Write our options file.
+ set my_variation [my_get_variation]
+ set my_options "${my_base_options} -t ${my_target} -m ${my_machine} -n ${my_variation}"
+ set my_options_file_id [open ${worksrcpath}/${my_options_file} "w"]
+ puts -nonewline ${my_options_file_id} ${my_options}
+ close ${my_options_file_id}
+
+ # Run the build system.
+ set my_cmd "${workpath}/runbuild.sh ${worksrcpath} ${worksrcpath}/${my_options_file}"
+ ui_debug ${my_cmd}
+ system ${my_cmd}
+
+ # Get the build product.
+ file rename ${worksrcpath}/output/${my_variation} ${workpath}
}
pre-build {
- set my_variation [my_get_variation]
- build.dir ${workpath}/${my_variation}
+ set my_variation [my_get_variation]
+ build.dir ${workpath}/${my_variation}
}
post-build {
- set my_variation [my_get_variation]
- eval xinstall -m 644 [glob ${workpath}/${my_icons}/icons/*.icns] ${workpath}/${my_variation}/minivmac.app/Contents/Resources
+ set my_variation [my_get_variation]
+ eval xinstall -m 644 [glob ${workpath}/${my_icons}/icons/*.icns] ${workpath}/${my_variation}/minivmac.app/Contents/Resources
}
destroot {
- set my_variation [my_get_variation]
- xinstall -d ${destroot}${my_appdir}
- file copy ${workpath}/${my_variation}/minivmac.app \
- ${destroot}${my_appdir}/Mini\ vMac\ ${my_machine}.app
+ set my_variation [my_get_variation]
+ xinstall -d ${destroot}${my_appdir}
+ file copy ${workpath}/${my_variation}/minivmac.app \
+ ${destroot}${my_appdir}/Mini\ vMac\ ${my_machine}.app
}
if { ![variant_isset mac128k] && ![variant_isset mac512k] && ![variant_isset mac512ke] && ![variant_isset macse] } {
- default_variants +macplus
+ default_variants +macplus
}
variant mac128k conflicts mac512k mac512ke macplus macse description {Emulate a Macintosh with 128K RAM and 2 drives} {
- patchfiles-append patch-CNFGGLOB.h-mac128k.diff
- set romfile Mac128K.ROM
- set romfile_model "Macintosh 128K or 512K"
+ patchfiles-append patch-CNFGGLOB.h-mac128k.diff
+ set romfile Mac128K.ROM
+ set romfile_model "Macintosh 128K or 512K"
}
variant mac512k conflicts mac128k mac512ke macplus macse description {Emulate a Macintosh 512K with 512K RAM and 2 drives} {
- patchfiles-append patch-CNFGGLOB.h-mac512k.diff
- set romfile Mac128K.ROM
- set romfile_model "Macintosh 128K or 512K"
+ patchfiles-append patch-CNFGGLOB.h-mac512k.diff
+ set romfile Mac128K.ROM
+ set romfile_model "Macintosh 128K or 512K"
}
variant mac512ke conflicts mac128k mac512k macplus macse description {Emulate a Macintosh 512Ke with 512K RAM and 6 drives} {
- patchfiles-append patch-CNFGGLOB.h-mac512ke.diff
+ patchfiles-append patch-CNFGGLOB.h-mac512ke.diff
}
variant macplus conflicts mac128k mac512k mac512ke macse description {Emulate a Macintosh Plus with 4 MB RAM and 6 drives (default)} {
- # Mac Plus emulation is the default so we don't need to do anything here
+ # Mac Plus emulation is the default so we don't need to do anything here
}
variant macse conflicts mac128k mac512k mac512ke macplus description {Emulate a Macintosh SE with 4 MB RAM and 6 drives} {
- patchfiles-append patch-CNFGGLOB.h-macse.diff
- set romfile MacSE.ROM
- set romfile_model "Macintosh SE"
+ patchfiles-append patch-CNFGGLOB.h-macse.diff
+ set romfile MacSE.ROM
+ set romfile_model "Macintosh SE"
}
proc my_attach_disk_image {disk_image allow_writing} {
- global name workpath
- set mountpoint [exec mktemp -d -q -t ${name}]
- # Use this expect script instead of using hdiutil directly, because the
- # system disk image has a license agreement we must agree to.
- system "${workpath}/attach.exp '${disk_image}' '${mountpoint}' '${allow_writing}'"
- return ${mountpoint}
+ global name workpath
+ set mountpoint [exec mktemp -d -q -t ${name}]
+ # Use this expect script instead of using hdiutil directly, because the
+ # system disk image has a license agreement we must agree to.
+ system "${workpath}/attach.exp '${disk_image}' '${mountpoint}' '${allow_writing}'"
+ return ${mountpoint}
}
proc my_detach_disk_image {mountpoint} {
- system "hdiutil detach ${mountpoint} -force"
- file delete -force ${mountpoint}
+ system "hdiutil detach ${mountpoint} -force"
+ file delete -force ${mountpoint}
}
proc my_get_variation {} {
- global version revision my_variation_machine
- # Due to limitations of the build system, the variation name cannot be longer than 27 characters.
- return ${version}_${revision}-${my_variation_machine}
+ global version revision my_variation_machine
+ # Due to limitations of the build system, the variation name cannot be longer than 27 characters.
+ return ${version}_${revision}-${my_variation_machine}
}
-livecheck.check regex
-livecheck.version ${version_short_date}
-livecheck.url ${homepage}develop/
-livecheck.regex ${my_name}(\[0-9\]+)\\.src
+livecheck.check regex
+livecheck.version ${version_short_date}
+livecheck.url ${homepage}develop/
+livecheck.regex ${my_name}(\[0-9\]+)\\.src
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090527/5c9dbfe5/attachment-0001.html>
More information about the macports-changes
mailing list