<div dir="ltr"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>A more efficient method that overrides activate/deactivate and does not
needlessly de&re&decompress everything would seem useful.</div></blockquote><div><br></div><div>Since the dmg itself is a compressed archive, it would seem to make sense that activate/deactivate would operate directly on the dmg, no? In other words, the distfile <i>is</i> the archive, so recompressing of the destroot should be skipped entirely. Instead, the dmg distfile should either be copied or moved over to where the activate/deactivate archive usually lives.<br></div><div><br></div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>-- </div><div>Jason Liu<br></div></div></div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Dec 24, 2020 at 5:27 AM Ken Cunningham <<a href="mailto:ken.cunningham.webuse@gmail.com">ken.cunningham.webuse@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I've been building a few of these "cask" installers for my own use.<br>
<br>
I'm finding using the normal port activate/deactivate process quite inefficient for this...<br>
<br>
For example, SageMath is a 1.5GB dmg, and is about 4GB installed. Downloading the dmg, decompressing it and copying the contents into destroot, recompressing it, then activating it and decompressing it again takes just forever to do and seems wasteful on space as well.<br>
<br>
A more efficient method that overrides activate/deactivate and does not needlessly de&re&decompress everything would seem useful.<br>
<br>
Also a recommended method to avoid mirroring the distfiles ("NoMirror" license I presume) and not caching the archives (clearing archive_sites I suppose) are needed.<br>
<br>
Ken</blockquote></div>