On 2020/05/15 11:14, Pavel Korovin wrote:
> On 05/15, Antoine Jacoutot wrote:
> > That's not the MASTER_SITES this port uses:
> > https://github.com/go-gitea/gitea/archive/v1.11.5/
> > Upstream provides tarballs, why not use them and set MASTER_SITES to
> > https://github.com/go-gitea/gitea/releases/download/v1.11.5/
>
> Fixed, thank you!
>
> --
> With best regards,
> Pavel Korovin
>
oh, this is not quite right, GH_* should just be used for the /archive/ URLs,
like this... but I don't know how to work that into the go.port.mk mess
Index: Makefile
===================================================================
RCS file: /cvs/ports/www/gitea/Makefile,v
retrieving revision 1.36
diff -u -p -r1.36 Makefile
--- Makefile 15 May 2020 08:13:10 -0000 1.36
+++ Makefile 15 May 2020 08:47:49 -0000
@@ -3,13 +3,10 @@
COMMENT = compact self-hosted Git service
VERSION = 1.11.5
-GH_ACCOUNT = go-gitea
-GH_PROJECT = gitea
-GH_TAGNAME = v${VERSION}
+DISTNAME = gitea-src-${VERSION}
+PKGNAME = gitea-${VERSION}
-MASTER_SITES =
https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/releases/download/${GH_TAGNAME}/
-
-DISTFILES = ${GH_PROJECT}-src-${VERSION}${EXTRACT_SUFX}
+MASTER_SITES =
https://github.com/go-gitea/gitea/releases/download/v${VERSION}/
CATEGORIES = www devel