Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/gitea www/gitea: fix the SUBST block for updating ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c31d11dcd0b6
branches:  trunk
changeset: 430544:c31d11dcd0b6
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Fri May 01 21:27:49 2020 +0000

description:
www/gitea: fix the SUBST block for updating the version number

In the distfile gitea-1.11.4.tar.gz, the version number is written as
1.9.0-dev, which is probably a mistake. Make sure that this version
number is always fixed, until this inconsistency is fixed upstream.

diffstat:

 www/gitea/Makefile |  11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diffs (28 lines):

diff -r 5ffa34bf0ba1 -r c31d11dcd0b6 www/gitea/Makefile
--- a/www/gitea/Makefile        Fri May 01 21:12:05 2020 +0000
+++ b/www/gitea/Makefile        Fri May 01 21:27:49 2020 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.31 2020/04/12 11:01:50 bsiegert Exp $
+# $NetBSD: Makefile,v 1.32 2020/05/01 21:27:49 rillig Exp $
 
 DISTNAME=      gitea-1.11.4
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=go-gitea/}
-PKGREVISION=   2
+PKGREVISION=   3
 CATEGORIES=    www
 GITHUB_TAG=    v${PKGVERSION_NOREV}
 
@@ -53,9 +53,10 @@
 
 SUBST_CLASSES+=                        fix-version
 SUBST_STAGE.fix-version=       pre-configure
-SUBST_MESSAGE.fix-version=     Fix the version number.
-SUBST_FILES.fix-version=       ${WRKSRC}/main.go
-SUBST_SED.fix-version=         -E 's\#^(var Version = )"[^"]+"\#\1"${PKGVERSION}"\#'
+SUBST_MESSAGE.fix-version=     Fix the outdated version number.
+SUBST_FILES.fix-version=       main.go
+SUBST_SED.fix-version=         -e 's,^\(       Version = \)"1\.9\.0-dev",\1"${PKGVERSION}",'
+SUBST_NOOP_OK.fix-version=     no
 
 SUBST_CLASSES+=                fix-var
 SUBST_STAGE.fix-var=   pre-configure



Home | Main Index | Thread Index | Old Index