pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/cloc cloc: fix man page generation.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b2148c55547f
branches:  trunk
changeset: 454613:b2148c55547f
user:      fcambus <fcambus%pkgsrc.org@localhost>
date:      Sun Jun 13 19:51:23 2021 +0000

description:
cloc: fix man page generation.

pod2man.mk previously failed to generate the man page because of a date
command failure.

Issue originally reported by Omar Polo on the OpenBSD ports mailing
list, and workaround provided there by Stuart Henderson.

diffstat:

 devel/cloc/Makefile |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (22 lines):

diff -r f115e40411a4 -r b2148c55547f devel/cloc/Makefile
--- a/devel/cloc/Makefile       Sun Jun 13 19:02:59 2021 +0000
+++ b/devel/cloc/Makefile       Sun Jun 13 19:51:23 2021 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.11 2021/05/24 19:49:54 wiz Exp $
+# $NetBSD: Makefile,v 1.12 2021/06/13 19:51:23 fcambus Exp $
 
 DISTNAME=      cloc-1.90
-PKGREVISION=   1
+PKGREVISION=   2
 CATEGORIES=    devel
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=AlDanial/}
 GITHUB_RELEASE=        v${PKGVERSION_NOREV}
@@ -20,6 +20,8 @@
 
 REPLACE_PERL+= Unix/cloc
 
+MAKE_ENV+=     PODDATE=`stat -t %Y-%m-%d -f %Sm ${WRKSRC}/cloc`
+
 NO_BUILD=      yes
 BUILD_DIRS=    Unix
 



Home | Main Index | Thread Index | Old Index