Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Nov 2019 01:49:27 +0000 (UTC)
From:      Alan Somers <asomers@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r518074 - head/security/gnupg
Message-ID:  <201911210149.xAL1nRXB011498@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: asomers (src committer)
Date: Thu Nov 21 01:49:27 2019
New Revision: 518074
URL: https://svnweb.freebsd.org/changeset/ports/518074

Log:
  security/gnupg: rebuild man pages on every build
  
  gnupg ships its man pages as texinfo files, precompiled into info files.
  This change causes make to rebuild them every time.  There are two reasons:
  
  * Rebuilding them automatically corrects several Linuxisms in paths (e.g.
    /etc => /usr/local/etc).
  
  * Rebuilding them is a neccessary precondition for making any local changes
    that will affect the content of the man pages, which I intend to do in a
    future commit.
  
  Reviewed by:	adamw
  Approved by:	adamw (maintainer)
  Sponsored by:	Axcient
  Differential Revision:	https://reviews.freebsd.org/D22471

Modified:
  head/security/gnupg/Makefile

Modified: head/security/gnupg/Makefile
==============================================================================
--- head/security/gnupg/Makefile	Thu Nov 21 01:19:57 2019	(r518073)
+++ head/security/gnupg/Makefile	Thu Nov 21 01:49:27 2019	(r518074)
@@ -2,7 +2,7 @@
 
 PORTNAME=	gnupg
 PORTVERSION=	2.2.17
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	security
 MASTER_SITES=	GNUPG
 
@@ -45,6 +45,8 @@ SCDAEMON_DESC=	Enable Smartcard daemon (with libusb)
 SUID_GPG_DESC=	Install GPG with suid
 WKS_SERVER_DESC=Install the Web Key Service server
 
+DOCS_BUILD_DEPENDS=	makeinfo:print/texinfo
+
 GNUTLS_CONFIGURE_ENABLE=gnutls
 GNUTLS_LIB_DEPENDS=	libgnutls.so:security/gnutls
 
@@ -60,6 +62,11 @@ NLS_USES=		gettext
 SCDAEMON_CONFIGURE_ENABLE=	scdaemon
 
 WKS_SERVER_CONFIGURE_ENABLE=	wks-tools
+
+# Touch the texinfo files to force makeinfo to run.  This fixes Linuxisms in
+# the paths in the man pages.
+pre-build:
+	@${TOUCH} ${WRKSRC}/doc/*.texi
 
 post-install:
 	@${MV} ${STAGEDIR}${DATADIR}/help*.txt ${STAGEDIR}${DOCSDIR}



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