git: f7d5a6658e5b - main - math/givaro: Add DOXYGEN option

From: Kurt Jaeger <pi_at_FreeBSD.org>
Date: Mon, 11 May 2026 18:13:49 UTC
The branch main has been updated by pi:

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

commit f7d5a6658e5bf67b00e74ea9c51313849bc8e62b
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2026-05-11 18:13:25 +0000
Commit:     Kurt Jaeger <pi@FreeBSD.org>
CommitDate: 2026-05-11 18:13:25 +0000

    math/givaro: Add DOXYGEN option
    
    - Sort PLIST
    - Bump PORTREVISION for package change
    
    Documentation built with Doxygen should be added to DOXYGEN option
    rather than DOCS option.
    
    PR:     295149
---
 math/givaro/Makefile  | 12 +++++++-----
 math/givaro/pkg-plist |  2 +-
 2 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/math/givaro/Makefile b/math/givaro/Makefile
index 7c8d4cb3d095..35c09e6311c3 100644
--- a/math/givaro/Makefile
+++ b/math/givaro/Makefile
@@ -1,6 +1,7 @@
 PORTNAME=	givaro
 PORTVERSION=	4.2.1
 DISTVERSIONPREFIX=	v
+PORTREVISION=	1
 CATEGORIES=	math
 
 PATCH_SITES=	https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/
@@ -30,16 +31,17 @@ CONFIGURE_ARGS=	--with-gmp="${LOCALBASE}"
 INSTALL_TARGET=	install-strip
 TEST_TARGET=	check
 
-OPTIONS_DEFINE=	DOCS
+OPTIONS_DEFINE=	DOCS DOXYGEN
+DOXYGEN_IMPLIES=DOCS
 OPTIONS_SUB=	yes
 
-DOCS_BUILD_DEPENDS=	doxygen:devel/doxygen \
+DOXYGEN_BUILD_DEPENDS=	doxygen:devel/doxygen \
 			dot:graphics/graphviz
-DOCS_USE=		TEX=base:build,dvipsk:build,latex:build,pdftex:build
-DOCS_CONFIGURE_ON=	--enable-doc \
+DOXYGEN_USE=		TEX=base:build,dvipsk:build,latex:build,pdftex:build
+DOXYGEN_CONFIGURE_ON=	--enable-doc \
 			--with-docdir=${DOCSDIR}
 
-post-install-DOCS-on:
+post-install-DOXYGEN-on:
 	${RMDIR} ${STAGEDIR}${DOCSDIR}/givaro-dev-html
 	${FIND} ${WRKSRC}/docs/givaro-html -not -type d \
 		| ${SED} -ne 's,^${WRKSRC}/docs/givaro-html,${DOCSDIR}/givaro-html,p' >> ${TMPPLIST}
diff --git a/math/givaro/pkg-plist b/math/givaro/pkg-plist
index 7488604d26c9..6b1dc4db25bd 100644
--- a/math/givaro/pkg-plist
+++ b/math/givaro/pkg-plist
@@ -1,4 +1,3 @@
-%%PORTDOCS%%%%DOCSDIR%%/givaro.html
 bin/givaro-config
 include/givaro-config.h
 include/givaro/StaticElement.h
@@ -229,4 +228,5 @@ lib/libgivaro.so
 lib/libgivaro.so.9
 lib/libgivaro.so.9.2.1
 libdata/pkgconfig/givaro.pc
+%%DOXYGEN%%%%PORTDOCS%%%%DOCSDIR%%/givaro.html
 %%DATADIR%%/givaro-makefile