[36779] users/ryandesign/minivmac/Portfile
ryandesign at macports.org
ryandesign at macports.org
Wed May 14 07:35:30 PDT 2008
Revision: 36779
http://trac.macosforge.org/projects/macports/changeset/36779
Author: ryandesign at macports.org
Date: 2008-05-14 07:35:29 -0700 (Wed, 14 May 2008)
Log Message:
-----------
minivmac: it builds!
Modified Paths:
--------------
users/ryandesign/minivmac/Portfile
Modified: users/ryandesign/minivmac/Portfile
===================================================================
--- users/ryandesign/minivmac/Portfile 2008-05-14 13:48:01 UTC (rev 36778)
+++ users/ryandesign/minivmac/Portfile 2008-05-14 14:35:29 UTC (rev 36779)
@@ -10,6 +10,7 @@
use_zip yes
platforms macosx
universal_variant no
+build.target
description \
a Mac 128K, Mac 512K, Mac 512KE, Mac Plus and Mac SE emulator
@@ -70,9 +71,10 @@
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/ -nex"
+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
@@ -167,7 +169,7 @@
configure {
# Write our options file.
- set my_variation ${name}-${version}_${revision}-${my_machine}
+ 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"]
@@ -193,10 +195,18 @@
my_detach_disk_image ${my_src_disk_mount}
}
-build {
- return -code error "portfile incomplete! :("
+pre-build {
+ set my_variation [my_get_variation]
+ build.dir ${workpath}/${my_variation}
}
+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
+}
+
if { ![variant_isset mac128k] && ![variant_isset mac512k] && ![variant_isset mac512ke] && ![variant_isset macse] } {
default_variants +macplus
}
@@ -254,6 +264,11 @@
}
}
+proc my_get_variation {} {
+ 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080514/54ac42d2/attachment.html
More information about the macports-changes
mailing list