<pre style='margin:0'>
Ryan Schmidt (ryandesign) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/b4e349c061c34f4d699501af2519b102a04e39e1">https://github.com/macports/macports-ports/commit/b4e349c061c34f4d699501af2519b102a04e39e1</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit b4e349c061c34f4d699501af2519b102a04e39e1
</span>Author: Renee Otten <reneeotten@macports.org>
AuthorDate: Mon Dec 13 13:07:33 2021 -0500
<span style='display:block; white-space:pre;color:#404040;'> mystonline-cider: clean-up for older MacPorts' base releases
</span>---
games/mystonline-cider/Portfile | 31 +++++++++++--------------------
1 file changed, 11 insertions(+), 20 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/games/mystonline-cider/Portfile b/games/mystonline-cider/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 7a2c4c25350..6b876703af8 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/games/mystonline-cider/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/games/mystonline-cider/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -40,7 +40,7 @@ post-extract {
</span> set my_dmg_mount [my_attach_disk_image ${distpath}/${installer_dmg}]
copy "${my_dmg_mount}/Myst Online.app" ${worksrcpath}/app
my_detach_disk_image ${my_dmg_mount}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> xinstall -m 644 -W ${filespath} MOUL.sh chown-data.c ${worksrcpath}
}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -60,31 +60,31 @@ build {
</span> # and replace it with our script (which does that and more)
delete "${worksrcpath}/app/Contents/MacOS/Uru Live"
xinstall -W ${worksrcpath} MOUL.sh "${worksrcpath}/app/Contents/MacOS/Uru Live"
<span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> # Move the wine prefix and symlink it back to where the app expects it
set transgaming_dir "${worksrcpath}/app/Contents/Resources/Myst Online.app/Contents/Resources/transgaming"
move ${transgaming_dir} ${worksrcpath}/wineprefix
ln -s ${wineprefix} ${transgaming_dir}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> # Link "Uru Live" to our assets dir
set program_files "${worksrcpath}/wineprefix/c_drive/Program Files"
delete "${program_files}/Uru Live"
ln -s ${assets_dir} "${program_files}/Uru Live"
<span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> file mkdir ${worksrcpath}/assets
ln -s "${app_package}/Contents/Resources/Myst Online.app/Contents/Resources" ${worksrcpath}/assets/Cider
<span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> # Update the URL from which server status messages are obtained
foreach a {Login Updater} {
reinplace "s|support.mystonline.com/serverstatus/urulivelive.php|support.cyanworlds.com/serverstatus/moullive.php|g" \
"${worksrcpath}/app/Contents/Resources/Myst Online.app/Contents/Resources/URU Live ${a}.app/Contents/Info.plist"
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> # Make sure we show the updated terms and conditions
set tos "${worksrcpath}/app/Contents/Resources/Myst Online.app/Contents/Resources/URU Live EULA.app/Contents/Resources/TOS.txt"
delete ${tos}
ln -s ${assets_dir}/TOS.txt ${tos}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> # Build the chown wrapper program
system -W ${worksrcpath} "${configure.cc} ${configure.cc_archflags} chown-data.c -o chown-data"
}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -93,13 +93,13 @@ destroot {
</span> xinstall -d ${destroot}${libexec_dir} \
${destroot}${share_dir} \
${destroot}${applications_dir}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> xinstall -m 4755 -W ${worksrcpath} chown-data ${destroot}${libexec_dir}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> copy ${worksrcpath}/app ${destroot}${app_package}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> copy ${worksrcpath}/assets ${destroot}${assets_dir}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> copy ${worksrcpath}/wineprefix ${destroot}${wineprefix}
}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -147,23 +147,14 @@ proc my_attach_disk_image {disk_image} {
</span> set tmp_disk_image_dir [mkdtemp "${workpath}/.tmp/disk_image.XXXXXXXX"]
set tmp_disk_image ${tmp_disk_image_dir}/[file tail ${disk_image}].cdr
set mountpoint [mkdtemp "${workpath}/.tmp/mountpoint.XXXXXXXX"]
<span style='display:block; white-space:pre;background:#ffe0e0;'>-if {[vercmp [macports_version] 2.6.99] >= 0} {
</span> system "hdiutil convert -quiet -ov -format UDTO -o [shellescape ${tmp_disk_image}] [shellescape ${disk_image}]"
system "hdiutil attach -quiet [shellescape ${tmp_disk_image}] -mountpoint [shellescape ${mountpoint}] -private -nobrowse -noautoopen -noautofsck -noverify -readonly"
<span style='display:block; white-space:pre;background:#ffe0e0;'>-} else {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- system "hdiutil convert -quiet -ov -format UDTO -o '${tmp_disk_image}' '${disk_image}'"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- system "hdiutil attach -quiet '${tmp_disk_image}' -mountpoint '${mountpoint}' -private -nobrowse -noautoopen -noautofsck -noverify -readonly"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span> return ${mountpoint}
}
# Unmounts a disk image.
proc my_detach_disk_image {mountpoint} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>-if {[vercmp [macports_version] 2.6.99] >= 0} {
</span> system "hdiutil detach [shellescape ${mountpoint}] -force"
<span style='display:block; white-space:pre;background:#ffe0e0;'>-} else {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- system "hdiutil detach '${mountpoint}' -force"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span> file delete -force ${mountpoint}
}
</pre><pre style='margin:0'>
</pre>