Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 May 2024 15:07:05 GMT
From:      Muhammad Moinur Rahman <bofh@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 1c17d9be53de - main - devel/avr-libc: Mark BROKEN for DOXYGEN option
Message-ID:  <202405281507.44SF75nI007949@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by bofh:

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

commit 1c17d9be53de45d9d530b84ca767e9120eab77f2
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2024-05-28 15:05:13 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2024-05-28 15:06:57 +0000

    devel/avr-libc: Mark BROKEN for DOXYGEN option
    
    - Build fails without showing any specific error while generating the
      documentation
    - Utilize OPTIONSNG while I am here
    - Make the OPTIONS logic easier
    - Pet portclippy while I am here
    
    Approved by:    portmgr (blanket)
    Sponsored by:   Nepustil
---
 devel/avr-libc/Makefile | 77 ++++++++++++++++++++++---------------------------
 1 file changed, 34 insertions(+), 43 deletions(-)

diff --git a/devel/avr-libc/Makefile b/devel/avr-libc/Makefile
index 2f89b5d7487e..7621fcfa4e6b 100644
--- a/devel/avr-libc/Makefile
+++ b/devel/avr-libc/Makefile
@@ -18,68 +18,59 @@ RUN_DEPENDS=	avr-as:devel/binutils@avr \
 		avr-ld:devel/binutils@avr \
 		avr-gcc:devel/avr-gcc
 
-OPTIONS_DEFINE=	DOXYGEN
+USES=		gettext-tools gmake tar:bzip2
 
-.include <bsd.port.options.mk>
+HAS_CONFIGURE=	yes
+CONFIGURE_ARGS=	--build=`./config.guess` --host=avr --prefix=${PREFIX}
+CONFIGURE_ENV=	CC=avr-gcc PREFIX=${PREFIX}
 
-.if ! ${PORT_OPTIONS:MDOXYGEN}
-.undef WITHOUT_AVRLIBCDOCS=	true
-.endif
+OPTIONS_DEFINE=	DOXYGEN
 
-.if ${PORT_OPTIONS:MDOXYGEN}
-USES+=		tex
-USE_TEX=	latex:build
-BUILD_DEPENDS+=	doxygen:devel/doxygen \
+DOXYGEN_BROKEN=	Build fails without showing any specific error while generating the documentation
+DOXYGEN_BUILD_DEPENDS=	doxygen:devel/doxygen \
 		fig2dev:print/fig2dev \
-		jpegtopnm:graphics/netpbm \
-		dvips:print/tex-dvipsk
-.endif
+		jpegtopnm:graphics/netpbm
+DOXYGEN_USES=	tex
+DOXYGEN_USE=	TEX=dvipsk:build,formats:build,latex:build
+DOXYGEN_CONFIGURE_ON=	--enable-doc --disable-versioned-doc \
+	--mandir=${PREFIX}/share/doc/avr-libc/man
+DOXYGEN_VARS=	PLIST_DOC=${PKGDIR}/pkg-plist.doc
 
-USES=		gettext-tools tar:bzip2 gmake
-HAS_CONFIGURE=	yes
+.include <bsd.port.options.mk>
 
-CONFIGURE_ENV=	CC=avr-gcc PREFIX=${PREFIX}
-.if ${PORT_OPTIONS:MDOXYGEN}
-CONFIGURE_ARGS=	--build=`./config.guess` --host=avr \
-	--enable-doc --disable-versioned-doc --prefix=${PREFIX} \
-	--mandir=${PREFIX}/share/doc/avr-libc/man
-PLIST_DOC=	${PKGDIR}/pkg-plist.doc
-.else
-CONFIGURE_ARGS=	--build=`./config.guess` --host=avr --prefix=${PREFIX}
-PLIST_DOC=
+.if ! ${PORT_OPTIONS:MDOXYGEN}
+.undef WITHOUT_AVRLIBCDOCS=	true
 .endif
 
-post-patch:
-.if ! ${PORT_OPTIONS:MDOXYGEN}
+post-patch-DOXYGEN-off:
 	${REINPLACE_CMD} -e '/SUBDIRS/s,examples,,' ${WRKSRC}/doc/Makefile.in
-.endif
 
 do-install:
-		${RM} ${TMPPLIST}
-.if ${PORT_OPTIONS:MDOXYGEN}
-		(cd ${BUILD_WRKSRC}/doc/api/avr-libc-user-manual && \
+	${RM} ${TMPPLIST}
+	${CAT} ${PLIST} >> ${TMPPLIST}
+	@for file in ${PLIST_FILES}; do \
+		${ECHO_CMD} $${file} >> ${TMPPLIST}; \
+	done
+	(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} \
+		${MAKE_CMD} ${MAKE_ARGS} install)
+	${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/AUTHORS \
+		${STAGEDIR}/${DOCSDIR}
+
+do-install-DOXYGEN-on:
+	(cd ${BUILD_WRKSRC}/doc/api/avr-libc-user-manual && \
 		 ${FIND} . -type f \
-		  \( -name '*.html' -or -name '*.css' -or \
-		     -name '*.jpg' -or -name '*.png' \) |\
+		 \( -name '*.html' -or -name '*.css' -or \
+		    -name '*.jpg' -or -name '*.png' \) |\
 		 ${GREP} -v '/search/' |\
 		 ${SORT} |\
 		 ${SED} -e 's|^\.|share/doc/avr-libc/avr-libc-user-manual|' \
 		 >> ${TMPPLIST})
-		(cd ${BUILD_WRKSRC}/doc/api/man/man3 && \
+	(cd ${BUILD_WRKSRC}/doc/api/man/man3 && \
 		 ${FIND} . -type f |\
 		 ${SORT} |\
 		 ${SED} -e 's|^\.|share/doc/avr-libc/man/man3|' \
 		 >> ${TMPPLIST})
-		${CAT} ${PLIST_DOC} >> ${TMPPLIST}
-.endif
-		${CAT} ${PLIST} >> ${TMPPLIST}
-	        @for file in ${PLIST_FILES}; do \
-			${ECHO_CMD} $${file} >> ${TMPPLIST}; \
-	        done
-		(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} \
-			${MAKE_CMD} ${MAKE_ARGS} install)
-		${MKDIR} ${STAGEDIR}${DOCSDIR}
-		${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/AUTHORS \
-			${STAGEDIR}/${DOCSDIR}
+	${CAT} ${PLIST_DOC} >> ${TMPPLIST}
 
 .include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202405281507.44SF75nI007949>