<div dir="ltr"><div dir="ltr">Raf, I can not directly answer your question about the download URL.  Recent work added a new codeberg portgroup to make this simpler.  I suggest you see what was done in the portfiles for other recent codeberg ports:  smake, star, cdrtools.  There are also a few older codeberg ports to examine, pre-portgroup, if you wish.</div><div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jun 14, 2023 at 2:58 AM raf via macports-users <<a href="mailto:macports-users@lists.macports.org">macports-users@lists.macports.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
I have a Portfile question.<br>
<br>
I have the (possibly incorrect) impression that<br>
values in the list of ${master_sites} need to be<br>
URLs to a directory that can have a filename appended<br>
to it to download the distfile. Is that correct?<br>
Or can it be the URL to the distfile itself?<br>
<br>
I'm asking because I use the <a href="http://codeberg.org" rel="noreferrer" target="_blank">codeberg.org</a> git repository site,<br>
and when you make a "release" there, you can attach a file<br>
such as your official distfile/tarball. But the URL for it<br>
looks like:<br>
<br>
  <a href="https://codeberg.org/attachments/" rel="noreferrer" target="_blank">https://codeberg.org/attachments/</a><UUID><br>
<br>
I'd like to put that in a Portfile, but I'm worried that<br>
macports will append "/${name}-${version}.tar.gz" and try<br>
to download that. If it does, that won't work. But if it<br>
just downloads the URL itself, it would work.<br>
<br>
Does macports work with URLs like this in ${master_sites}?<br>
<br>
cheers,<br>
raf<br>
</blockquote></div></div>