Index: head/www/gitea/Makefile =================================================================== --- head/www/gitea/Makefile +++ head/www/gitea/Makefile @@ -4,6 +4,7 @@ PORTNAME= gitea DISTVERSIONPREFIX= v DISTVERSION= 1.9.3 +PORTREVISION= 1 CATEGORIES= www MAINTAINER= stb@lassitu.de @@ -19,7 +20,7 @@ GH_ACCOUNT= go-gitea USE_RC_SUBR= gitea -GO_BUILDFLAGS= -tags "${GO_TAGS}" +GO_BUILDFLAGS= -tags "${GO_TAGS}" -ldflags '-X "main.Version=${PORTVERSION}"' SUB_FILES+= app.ini.sample SUB_LIST+= GITUSER=${USERS} @@ -46,15 +47,6 @@ .endif SUB_LIST+= DAEMONARGS="${DAEMONARGS}" - -post-patch: - # Gitea releases don't supply the release version number; the - # automatic method to obtain the version number in the Gitea build - # system only works when sources are checked out from git. - # See https://github.com/go-gitea/gitea/issues/1136#issuecomment-311622745 - @${SED} -Ei .orig \ - -e 's#^(var Version = )"[^"]+"#\1"${PORTVERSION}"#' \ - ${GO_WRKSRC}/main.go do-install: ${INSTALL_PROGRAM} ${GO_WRKDIR_BIN}/${PORTNAME} ${STAGEDIR}${PREFIX}/sbin