git: 87b049c22e05 - main - print/pdf-tools: Update and fix build with devel_full flavor

From: Joseph Mingrone <jrm_at_FreeBSD.org>
Date: Thu, 11 Aug 2022 18:04:26 UTC
The branch main has been updated by jrm:

URL: https://cgit.FreeBSD.org/ports/commit/?id=87b049c22e058554e42ced1506412e6319f8968f

commit 87b049c22e058554e42ced1506412e6319f8968f
Author:     Joseph Mingrone <jrm@FreeBSD.org>
AuthorDate: 2022-08-11 04:02:46 +0000
Commit:     Joseph Mingrone <jrm@FreeBSD.org>
CommitDate: 2022-08-11 18:04:06 +0000

    print/pdf-tools: Update and fix build with devel_full flavor
    
    The batch-update-autoloads function is no longer available in the master
    branch, so use loaddefs-generate-batch for the devel_full flavor.
    
    Sponsored by:   The FreeBSD Foundation
---
 print/pdf-tools/Makefile | 17 +++++++++++------
 print/pdf-tools/distinfo |  6 +++---
 2 files changed, 14 insertions(+), 9 deletions(-)

diff --git a/print/pdf-tools/Makefile b/print/pdf-tools/Makefile
index 959bf7723511..3d4e680d8eb9 100644
--- a/print/pdf-tools/Makefile
+++ b/print/pdf-tools/Makefile
@@ -1,7 +1,7 @@
 PORTNAME=	pdf-tools
 DISTVERSIONPREFIX=	v
-DISTVERSION=	0.91
-PORTREVISION=	7
+DISTVERSION=	0.91-54
+DISTVERSIONSUFFIX=	-gbb0b71f
 CATEGORIES=	print elisp
 PKGNAMESUFFIX=	${EMACS_PKGNAMESUFFIX}
 
@@ -33,11 +33,16 @@ do-build:
 	cd ${WRKSRC}/server && ./autogen.sh && ./configure -q && make
 	${EMACS_CMD} -q --batch -L ${WRKSRC}/lisp -f batch-byte-compile \
 		${WRKSRC}/lisp/*.el
+.if ${FLAVOR:U} == devel_full
+	 ${EMACS_CMD} -q --batch -f loaddefs-generate-batch \
+		${WRKSRC}/lisp/${PORTNAME}-loaddefs.el ${WRKSRC}/lisp
+.else
 	${EMACS_CMD} -q --batch \
-		--eval "(setq generated-autoload-file \
-			\"${WRKSRC}/lisp/${PORTNAME}-loaddefs.el\" \
-			backup-inhibited t)" \
-		-f batch-update-autoloads ${WRKSRC}/lisp
+	--eval "(setq generated-autoload-file \
+		\"${WRKSRC}/lisp/${PORTNAME}-loaddefs.el\" \
+		backup-inhibited t)" \
+	-f batch-update-autoloads ${WRKSRC}/lisp
+.endif
 
 do-install:
 	@${MKDIR} ${STAGEDIR}${PREFIX}/${EMACS_SITE_LISPDIR}/${PORTNAME}
diff --git a/print/pdf-tools/distinfo b/print/pdf-tools/distinfo
index 90792ffd87be..99ea74ead288 100644
--- a/print/pdf-tools/distinfo
+++ b/print/pdf-tools/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1641488632
-SHA256 (vedang-pdf-tools-v0.91_GH0.tar.gz) = 93f88d27e7910b76ffe2c506670d685b41c0b2cd3086543971d0c700c9eadee3
-SIZE (vedang-pdf-tools-v0.91_GH0.tar.gz) = 456351
+TIMESTAMP = 1660168493
+SHA256 (vedang-pdf-tools-v0.91-54-gbb0b71f_GH0.tar.gz) = 86c7de8b582f5d08e3f5690e1b2bff295ffbcdf09200302b01e379de2ca77353
+SIZE (vedang-pdf-tools-v0.91-54-gbb0b71f_GH0.tar.gz) = 460448