git: 09df1b7f1f9b - main - devel/sord: unbreak with --auto-features=enabled

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Tue, 28 Mar 2023 08:29:27 UTC
The branch main has been updated by jbeich:

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

commit 09df1b7f1f9befdc1e6eb9a67f5bf3d322627dad
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2023-03-28 08:04:05 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2023-03-28 08:28:15 +0000

    devel/sord: unbreak with --auto-features=enabled
    
    doc/meson.build:6:0: ERROR: Program 'doxygen' not found or not executable
    
    PR:             270361
    Reported by:    antoine (via exp-run)
---
 devel/sord/Makefile                |  1 +
 devel/sord/files/patch-meson.build | 15 +++++++++++++++
 2 files changed, 16 insertions(+)

diff --git a/devel/sord/Makefile b/devel/sord/Makefile
index 28e24b927026..97237a2cb4f1 100644
--- a/devel/sord/Makefile
+++ b/devel/sord/Makefile
@@ -15,6 +15,7 @@ LIB_DEPENDS=	libpcre.so:devel/pcre \
 
 USES=		meson pkgconfig python:build tar:xz
 USE_LDCONFIG=	yes
+MESON_ARGS=	-Ddocs=disabled
 PLIST_SUB=	VERSION=${DISTVERSION}
 
 .include <bsd.port.mk>
diff --git a/devel/sord/files/patch-meson.build b/devel/sord/files/patch-meson.build
new file mode 100644
index 000000000000..998dc8663f69
--- /dev/null
+++ b/devel/sord/files/patch-meson.build
@@ -0,0 +1,15 @@
+Manpages are available even with -Ddocs=disabled
+
+--- meson.build.orig	2022-09-09 03:08:05 UTC
++++ meson.build
+@@ -128,10 +128,8 @@ if not get_option('tools').disabled()
+     meson.override_find_program('sord_validate', sord_validate)
+   endif
+ 
+-  if not get_option('docs').disabled()
+     install_man(files('doc/sordi.1'))
+     install_man(files('doc/sord_validate.1'))
+-  endif
+ endif
+ 
+ if not get_option('docs').disabled()