git: ee85af825aba - main - textproc/libxmlb: Add option for DOCS

From: Daniel Engberg <diizzy_at_FreeBSD.org>
Date: Sun, 05 Nov 2023 07:52:23 UTC
The branch main has been updated by diizzy:

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

commit ee85af825abaa760e8504cee2a45c3fbe457bc5f
Author:     Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2023-11-05 01:05:43 +0000
Commit:     Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2023-11-05 07:52:11 +0000

    textproc/libxmlb: Add option for DOCS
    
    Make DOCS optional to avoid pulling in gtk-doc
    
    PR:             273377
    Approved by:    desktop (arrowd)
---
 textproc/libxmlb/Makefile  |  6 ++++-
 textproc/libxmlb/distinfo  |  2 +-
 textproc/libxmlb/pkg-plist | 64 +++++++++++++++++++++++-----------------------
 3 files changed, 38 insertions(+), 34 deletions(-)

diff --git a/textproc/libxmlb/Makefile b/textproc/libxmlb/Makefile
index 419a1f7af238..c549f512d0b0 100644
--- a/textproc/libxmlb/Makefile
+++ b/textproc/libxmlb/Makefile
@@ -10,7 +10,6 @@ WWW=		https://github.com/hughsie/libxmlb
 LICENSE=	LGPL21
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-BUILD_DEPENDS=	gtkdoc-scan:textproc/gtk-doc
 LIB_DEPENDS=	libstemmer.so:textproc/snowballstemmer \
 		libzstd.so:archivers/zstd
 
@@ -19,4 +18,9 @@ USE_GNOME=	glib20 introspection:build
 
 MESON_ARGS=	-Dstemmer=true
 
+OPTIONS_DEFINE=	DOCS
+
+DOCS_BUILD_DEPENDS=	gtkdoc-scan:textproc/gtk-doc
+DOCS_MESON_TRUE=	gtkdoc
+
 .include <bsd.port.mk>
diff --git a/textproc/libxmlb/distinfo b/textproc/libxmlb/distinfo
index 33dbc934c7d5..6e18807fd7fb 100644
--- a/textproc/libxmlb/distinfo
+++ b/textproc/libxmlb/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1693135479
+TIMESTAMP = 1693109922
 SHA256 (libxmlb-0.3.14.tar.xz) = a2f0056eed14ff791aee2b08b1514a0f1b6cf215f0579138a8cae8c45a0d3b0f
 SIZE (libxmlb-0.3.14.tar.xz) = 100288
diff --git a/textproc/libxmlb/pkg-plist b/textproc/libxmlb/pkg-plist
index beab51327b1e..4aaf258d1e4f 100644
--- a/textproc/libxmlb/pkg-plist
+++ b/textproc/libxmlb/pkg-plist
@@ -33,36 +33,36 @@ libexec/installed-tests/libxmlb/test.xml.zstd
 libexec/installed-tests/libxmlb/xb-self-test
 man/man1/xb-tool.1.gz
 share/gir-1.0/Xmlb-2.0.gir
-share/gtk-doc/html/libxmlb/annotation-glossary.html
-share/gtk-doc/html/libxmlb/api-index-full.html
-share/gtk-doc/html/libxmlb/deprecated-api-index.html
-share/gtk-doc/html/libxmlb/home.png
-share/gtk-doc/html/libxmlb/index.html
-share/gtk-doc/html/libxmlb/intro.html
-share/gtk-doc/html/libxmlb/left-insensitive.png
-share/gtk-doc/html/libxmlb/left.png
-share/gtk-doc/html/libxmlb/libxmlb-XbBuilder.html
-share/gtk-doc/html/libxmlb/libxmlb-XbBuilderFixup.html
-share/gtk-doc/html/libxmlb/libxmlb-XbBuilderNode.html
-share/gtk-doc/html/libxmlb/libxmlb-XbBuilderSource.html
-share/gtk-doc/html/libxmlb/libxmlb-XbBuilderSourceCtx.html
-share/gtk-doc/html/libxmlb/libxmlb-XbMachine.html
-share/gtk-doc/html/libxmlb/libxmlb-XbNode.html
-share/gtk-doc/html/libxmlb/libxmlb-XbQuery.html
-share/gtk-doc/html/libxmlb/libxmlb-XbSilo.html
-share/gtk-doc/html/libxmlb/libxmlb-xb-node-query.html
-share/gtk-doc/html/libxmlb/libxmlb-xb-opcode.html
-share/gtk-doc/html/libxmlb/libxmlb-xb-query-context.html
-share/gtk-doc/html/libxmlb/libxmlb-xb-silo-export.html
-share/gtk-doc/html/libxmlb/libxmlb-xb-silo-query.html
-share/gtk-doc/html/libxmlb/libxmlb-xb-stack.html
-share/gtk-doc/html/libxmlb/libxmlb-xb-string.html
-share/gtk-doc/html/libxmlb/libxmlb-xb-value-bindings.html
-share/gtk-doc/html/libxmlb/libxmlb.devhelp2
-share/gtk-doc/html/libxmlb/libxmlb.html
-share/gtk-doc/html/libxmlb/right-insensitive.png
-share/gtk-doc/html/libxmlb/right.png
-share/gtk-doc/html/libxmlb/style.css
-share/gtk-doc/html/libxmlb/up-insensitive.png
-share/gtk-doc/html/libxmlb/up.png
+%%PORTDOCS%%share/gtk-doc/html/libxmlb/annotation-glossary.html
+%%PORTDOCS%%share/gtk-doc/html/libxmlb/api-index-full.html
+%%PORTDOCS%%share/gtk-doc/html/libxmlb/deprecated-api-index.html
+%%PORTDOCS%%share/gtk-doc/html/libxmlb/home.png
+%%PORTDOCS%%share/gtk-doc/html/libxmlb/index.html
+%%PORTDOCS%%share/gtk-doc/html/libxmlb/intro.html
+%%PORTDOCS%%share/gtk-doc/html/libxmlb/left-insensitive.png
+%%PORTDOCS%%share/gtk-doc/html/libxmlb/left.png
+%%PORTDOCS%%share/gtk-doc/html/libxmlb/libxmlb-XbBuilder.html
+%%PORTDOCS%%share/gtk-doc/html/libxmlb/libxmlb-XbBuilderFixup.html
+%%PORTDOCS%%share/gtk-doc/html/libxmlb/libxmlb-XbBuilderNode.html
+%%PORTDOCS%%share/gtk-doc/html/libxmlb/libxmlb-XbBuilderSource.html
+%%PORTDOCS%%share/gtk-doc/html/libxmlb/libxmlb-XbBuilderSourceCtx.html
+%%PORTDOCS%%share/gtk-doc/html/libxmlb/libxmlb-XbMachine.html
+%%PORTDOCS%%share/gtk-doc/html/libxmlb/libxmlb-XbNode.html
+%%PORTDOCS%%share/gtk-doc/html/libxmlb/libxmlb-XbQuery.html
+%%PORTDOCS%%share/gtk-doc/html/libxmlb/libxmlb-XbSilo.html
+%%PORTDOCS%%share/gtk-doc/html/libxmlb/libxmlb-xb-node-query.html
+%%PORTDOCS%%share/gtk-doc/html/libxmlb/libxmlb-xb-opcode.html
+%%PORTDOCS%%share/gtk-doc/html/libxmlb/libxmlb-xb-query-context.html
+%%PORTDOCS%%share/gtk-doc/html/libxmlb/libxmlb-xb-silo-export.html
+%%PORTDOCS%%share/gtk-doc/html/libxmlb/libxmlb-xb-silo-query.html
+%%PORTDOCS%%share/gtk-doc/html/libxmlb/libxmlb-xb-stack.html
+%%PORTDOCS%%share/gtk-doc/html/libxmlb/libxmlb-xb-string.html
+%%PORTDOCS%%share/gtk-doc/html/libxmlb/libxmlb-xb-value-bindings.html
+%%PORTDOCS%%share/gtk-doc/html/libxmlb/libxmlb.devhelp2
+%%PORTDOCS%%share/gtk-doc/html/libxmlb/libxmlb.html
+%%PORTDOCS%%share/gtk-doc/html/libxmlb/right-insensitive.png
+%%PORTDOCS%%share/gtk-doc/html/libxmlb/right.png
+%%PORTDOCS%%share/gtk-doc/html/libxmlb/style.css
+%%PORTDOCS%%share/gtk-doc/html/libxmlb/up-insensitive.png
+%%PORTDOCS%%share/gtk-doc/html/libxmlb/up.png
 share/installed-tests/libxmlb/libxmlb.test