On 3/7/20 12:53 PM, Stefan Bethke wrote:
I'm working on updating the Gitea port to 1.11, and I need to download the 
source archive off the release page, instead of an archive of the Github repo. 
The source archive on the release page contains additional files that are 
needed for the build (Go and node modules that would need to be downloaded 
during the build otherwise).

PORTNAME=       gitea
DISTVERSIONPREFIX=      v
DISTVERSION=    1.11.2
USE_GITHUB=     yes

How do I tell make that I do want to download the release tar.gz instead of the 
repo archive? Specifically, I need to download
https://github.com/go-gitea/gitea/releases/download/v1.11.2/gitea-src-1.11.2.tar.gz
instead of
https://codeload.github.com/go-gitea/gitea/tar.gz/v1.11.2?dummy=/go-gitea-gitea-v1.11.2_GH0.tar.gz

In such case I'd just just use

MASTER_SITES= https://github.com/go-gitea/gitea/releases/download/${DISTVERSIONFULL}/

and then set DISTNAME appropriately.

Cheers,

Mateusz Piotrowski

_______________________________________________
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"

Reply via email to