git: 3444b0a0df22 - main - graphics/gdk-pixbuf2: make manpages optional, pet portlint (+)

From: Dima Panov <fluffy_at_FreeBSD.org>
Date: Thu, 11 Aug 2022 14:29:43 UTC
The branch main has been updated by fluffy:

URL: https://cgit.FreeBSD.org/ports/commit/?id=3444b0a0df22dc925ae5bd60b690a6d5d39b071e

commit 3444b0a0df22dc925ae5bd60b690a6d5d39b071e
Author:     Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2022-08-11 14:25:50 +0000
Commit:     Dima Panov <fluffy@FreeBSD.org>
CommitDate: 2022-08-11 14:25:50 +0000

    graphics/gdk-pixbuf2: make manpages optional, pet portlint (+)
    
    MANPAGES option is on by default to mimic previous behaviour.
    Relax Python handling with shebangfix
---
 graphics/gdk-pixbuf2/Makefile  | 23 ++++++++++++-----------
 graphics/gdk-pixbuf2/pkg-plist |  4 ++--
 2 files changed, 14 insertions(+), 13 deletions(-)

diff --git a/graphics/gdk-pixbuf2/Makefile b/graphics/gdk-pixbuf2/Makefile
index 3def2c85671e..4cca5b59acc2 100644
--- a/graphics/gdk-pixbuf2/Makefile
+++ b/graphics/gdk-pixbuf2/Makefile
@@ -11,30 +11,31 @@ COMMENT=	Graphic library for GTK+
 LICENSE=	LGPL20+
 LICENSE_FILE=	${WRKSRC}/COPYING
 
-BUILD_DEPENDS=	docbook-xsl>0:textproc/docbook-xsl
-
 USES=		cpe gettext gnome localbase:ldflags meson pkgconfig \
-		python:3.7+,build shared-mime-info tar:xz trigger
+		python:3.7+,build shared-mime-info shebangfix tar:xz trigger
 CPE_VENDOR=	gnome
 USE_GNOME=	glib20 introspection:build libxslt:build
+SHEBANG_FILES=	build-aux/*.py
 USE_LDCONFIG=	yes
-MESON_ARGS=	-Dman=true -Dbuiltin_loaders="none" -Dinstalled_tests=false
+MESON_ARGS=	-Dbuiltin_loaders="none" -Dgtk_doc=false -Dinstalled_tests=false
 TRIGGERS=	gdk-pixbuf-query-loaders
 SUB_LIST=	GTK2_VERSION=${GTK2_VERSION}
 
-BINARY_ALIAS=	python3=${PYTHON_VERSION}
-
 OPTIONS_SUB=	yes
-OPTIONS_DEFINE=	JPEG PNG TIFF
-OPTIONS_DEFAULT=JPEG PNG TIFF
+OPTIONS_DEFINE=	JPEG MANPAGES PNG TIFF
+OPTIONS_DEFAULT=JPEG MANPAGES PNG TIFF
 
-JPEG_MESON_ENABLE=	jpeg
 JPEG_USES=		jpeg
+JPEG_MESON_ENABLE=	jpeg
+
+MANPAGES_BUILD_DEPENDS=	docbook-xsl>0:textproc/docbook-xsl
+MANPAGES_USE=		gnome=libxslt:build
+MANPAGES_MESON_TRUE=	man
 
-PNG_MESON_ENABLE=	png
 PNG_LIB_DEPENDS=	libpng.so:graphics/png
+PNG_MESON_ENABLE=	png
 
-TIFF_MESON_ENABLE=	tiff
 TIFF_LIB_DEPENDS=	libtiff.so:graphics/tiff
+TIFF_MESON_ENABLE=	tiff
 
 .include <bsd.port.mk>
diff --git a/graphics/gdk-pixbuf2/pkg-plist b/graphics/gdk-pixbuf2/pkg-plist
index 9131da84a18b..0968e86692c0 100644
--- a/graphics/gdk-pixbuf2/pkg-plist
+++ b/graphics/gdk-pixbuf2/pkg-plist
@@ -34,8 +34,8 @@ lib/libgdk_pixbuf-2.0.so
 lib/libgdk_pixbuf-2.0.so.0
 lib/libgdk_pixbuf-2.0.so.0.4200.8
 libdata/pkgconfig/gdk-pixbuf-2.0.pc
-man/man1/gdk-pixbuf-csource.1.gz
-man/man1/gdk-pixbuf-query-loaders.1.gz
+%%MANPAGES%%man/man1/gdk-pixbuf-csource.1.gz
+%%MANPAGES%%man/man1/gdk-pixbuf-query-loaders.1.gz
 share/gir-1.0/GdkPixbuf-2.0.gir
 share/gir-1.0/GdkPixdata-2.0.gir
 share/locale/af/LC_MESSAGES/gdk-pixbuf.mo