Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Oct 2023 09:58:07 GMT
From:      Felix Palmen <zirias@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 0a170fe305d6 - main - Templates/Makefile: Modernize and extend
Message-ID:  <202310110958.39B9w7Dw036580@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by zirias:

URL: https://cgit.FreeBSD.org/ports/commit/?id=0a170fe305d6eecd040244933023740d937fdaa2

commit 0a170fe305d6eecd040244933023740d937fdaa2
Author:     Felix Palmen <zirias@FreeBSD.org>
AuthorDate: 2023-10-11 09:45:40 +0000
Commit:     Felix Palmen <zirias@FreeBSD.org>
CommitDate: 2023-10-11 09:56:37 +0000

    Templates/Makefile: Modernize and extend
    
    The template for a port Makefile can be used automatically by editors
    like vim. It hasn't been updated since its introduction in 2014 though.
    
    Modernize and extend it to meet current best practices:
    
    - Replace PORTVERSION with DISTVERSION, which is now the preferred
      variable to use.
    - Add the WWW variable which should be set for every port.
    - Add the LICENSE and LICENSE_FILE variables which should also be set
      whenever possible.
    
    Approved by:            bapt
    Differential Revision:  https://reviews.freebsd.org/D42155
---
 Templates/Makefile | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/Templates/Makefile b/Templates/Makefile
index cfac256fc616..539dabea8a54 100644
--- a/Templates/Makefile
+++ b/Templates/Makefile
@@ -1,9 +1,13 @@
 PORTNAME=
-PORTVERSION=
+DISTVERSION=
 CATEGORIES=
 MASTER_SITES=
 
 MAINTAINER=
 COMMENT=
+WWW=
+
+LICENSE=
+LICENSE_FILE=
 
 .include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202310110958.39B9w7Dw036580>