<div dir="auto">If it's off GitHub or GitLab you don't have to create the tarball unless it has submodules (you can also fetch multiple tarballs but this is complex). I actually have a script to update my ports that are of 'latest version' tarballs.<div dir="auto"><br></div><div dir="auto"><a href="https://github.com/Tatsh/ports/blob/master/_resources/bin/liveupdate">https://github.com/Tatsh/ports/blob/master/_resources/bin/liveupdate</a></div><div dir="auto"><br></div><div dir="auto">Unfortunately on MacPorts there's no PortGroup to use git or similar to fetch the latest code. I guess it's because it will almost certainly bring more tickets into the system especially when said latest versions are important dependencies. On Gentoo we do have this feature (provided by eclasses, equivalent of PoetGroup) and you have to make configuration changes to use it when it comes to packages in the main tree. This makes the point that you're on your own when you start doing this to your system.</div><div dir="auto"><br></div><div dir="auto">You can write your own PortGroup to do this so the code can be shared among your ports, similar to Gentoo's way:</div><div dir="auto"><br></div><div dir="auto"><a href="https://gitweb.gentoo.org/repo/gentoo.git/plain/eclass/git-r3.eclass">https://gitweb.gentoo.org/repo/gentoo.git/plain/eclass/git-r3.eclass</a></div><div dir="auto"><br></div><div dir="auto">Basically, git clone if the clone isn't there already, update otherwise (replacing fetch phase). Don't forget submodules. Make the clone live somewhere permanent until the package is uninstalled. When installing, copy recursively the clone to the normal build directory (replacing the extract phase) then the rest of the system can work as is.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, May 21, 2022, 16:38 Bill Cole <<a href="mailto:macportsusers-20171215@billmail.scconsult.com">macportsusers-20171215@billmail.scconsult.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 2022-05-21 at 15:24:23 UTC-0400 (Sat, 21 May 2022 15:24:23 -0400)<br>
Andrew Udvare <<a href="mailto:audvare@gmail.com" target="_blank" rel="noreferrer">audvare@gmail.com</a>><br>
is rumored to have said:<br>
<br>
> Rather than pull via version control,<br>
<br>
Which is MY GOAL, not an incidental mechanical issue.<br>
<br>
> grab a tarball with the SHA you want.<br>
<br>
Which would mean creating an ad hoc tarball before each (rapid) update.<br>
<br>
> That's how I do 'latest' version ports.<br>
<br>
Well, that requires:<br>
<br>
1. creating a tarball<br>
2. calculating the hashes<br>
3. editing the portfile<br>
<br>
Which is a lot of fiddling for each new version.<br>
My goal is to NOT do all that, but to get the same installation that I would get if I did. It is also to have a way that non-developer users can easily install the actual latest version of the moment, which is sometimes the easiest way to get fixes that don't merit a full release.<br>
<br>
<br>
-- <br>
Bill Cole<br>
<a href="mailto:bill@scconsult.com" target="_blank" rel="noreferrer">bill@scconsult.com</a> or <a href="mailto:billcole@apache.org" target="_blank" rel="noreferrer">billcole@apache.org</a><br>
(AKA @grumpybozo and many *@<a href="http://billmail.scconsult.com" rel="noreferrer noreferrer" target="_blank">billmail.scconsult.com</a> addresses)<br>
Not Currently Available For Hire<br>
</blockquote></div>