macports localinstall github tries to download from macports
ken.cunningham.webuse at gmail.com
Mon Apr 27 19:55:35 UTC 2020
it takes some work sometimes to make the github PortGroup obey your bidding:
you know that you want this file:
you would have thought that setting:
would work to get you that file, but it does not, because the github portgroup generates this url instead:
and there is nothing at that URL. Ergo your 404 error.
This can be very frustrating. Some package mangers just let you put in the whole URL you want -- that is nice :> -- but it bypasses a feature MacPorts wants to have, which is distfile mirroring, which is nice when it works.
You can see the URL the github PG generates by using
and then just monkey around with options until it matches a place where there is a file.
In practical terms for right now, if you remove this line:
and you should be OK
port distfiles will tell you.
I often paste the URL I want into the portfile as a comment, and then keep monkeying around with the GitHub PG settings until I get something.
Anybody who tells you it is very easy and you're missing something obvious just forgets what it was like before they knew how to manhandle the github PG :>
More information about the macports-users