pkgsrc-Changes archive

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

CVS commit: pkgsrc/www/gitea



Module Name:    pkgsrc
Committed By:   rillig
Date:           Fri May  1 21:27:49 UTC 2020

Modified Files:
        pkgsrc/www/gitea: Makefile

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 pkgsrc/www/gitea/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/www/gitea/Makefile
diff -u pkgsrc/www/gitea/Makefile:1.31 pkgsrc/www/gitea/Makefile:1.32
--- pkgsrc/www/gitea/Makefile:1.31      Sun Apr 12 11:01:50 2020
+++ pkgsrc/www/gitea/Makefile   Fri May  1 21:27:49 2020
@@ -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 @@ PKG_HOME.${GITEA_USER}=              ${VARBASE}/db/g
 
 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