git: 6e02e43ad954 - main - graphics/zgv: Remove USES=makeinfo

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Sun, 22 Oct 2023 14:45:18 UTC
The branch main has been updated by bofh:

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

commit 6e02e43ad9540fc5d1f774faf4bea432de3aed21
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-10-22 10:46:44 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-10-22 14:45:03 +0000

    graphics/zgv: Remove USES=makeinfo
    
    - Distfile ships with info files so no need to regenerate
    - Pet portclippy
    - Remove patch for the texi file as that was needed for the texinfo
      which was in base
---
 graphics/zgv/Makefile             | 27 ++++++++++++---------------
 graphics/zgv/files/patch-zgv.texi | 11 -----------
 2 files changed, 12 insertions(+), 26 deletions(-)

diff --git a/graphics/zgv/Makefile b/graphics/zgv/Makefile
index a1d428a7bb82..585c5ed309ff 100644
--- a/graphics/zgv/Makefile
+++ b/graphics/zgv/Makefile
@@ -14,29 +14,26 @@ LICENSE_FILE=	${WRKSRC}/COPYING
 LIB_DEPENDS=	libpng.so:graphics/png \
 		libtiff.so:graphics/tiff
 
-USES=		gmake jpeg localbase:ldflags makeinfo
-ALL_TARGET=	zgv info
+USES=		gmake jpeg localbase:ldflags
+ALL_TARGET=	zgv
 INFO=		zgvrc
 
 OPTIONS_DEFINE=	SDL DOCS
 
+SDL_LIB_DEPENDS_OFF=	libvga.so:graphics/svgalib
+SDL_USES=	sdl
+SDL_USE=	SDL=sdl
+SDL_MAKE_ENV=	BACKEND=SDL
+SDL_MAKE_ENV_OFF=	BACKEND=SVGALIB
+SDL_CPPFLAGS=	$$(${SDL_CONFIG} --cflags)
+SDL_LDFLAGS=	$$(${SDL_CONFIG} --libs)
+
 .include <bsd.port.options.mk>
 
-.if ${PORT_OPTIONS:MSDL}
-USES+=		sdl
-USE_SDL=	sdl
-MAKE_ENV+=	BACKEND=SDL
-CPPFLAGS+=	$$(${SDL_CONFIG} --cflags)
-LDFLAGS+=	$$(${SDL_CONFIG} --libs)
-.else
-LIB_DEPENDS+=	libvga.so:graphics/svgalib
-MAKE_ENV+=	BACKEND=SVGALIB
-ONLY_FOR_ARCHS=	i386 amd64
+.if empty(PORT_OPTIONS:MSDL)
+ONLY_FOR_ARCHS=	amd64 i386
 .endif
 
-post-extract:
-	@${RM} ${WRKSRC}/doc/zgv
-
 post-patch:
 	@${REINPLACE_CMD} -e \
 		's|^CC=|#CC=|g ; \
diff --git a/graphics/zgv/files/patch-zgv.texi b/graphics/zgv/files/patch-zgv.texi
deleted file mode 100644
index 20a2210ba6cb..000000000000
--- a/graphics/zgv/files/patch-zgv.texi
+++ /dev/null
@@ -1,11 +0,0 @@
---- doc/zgv.texi.orig	2005-01-28 13:05:10 UTC
-+++ doc/zgv.texi
-@@ -1526,7 +1526,7 @@ and which proportion of the list is curr
- when mouse support is enabled can be used to move around the list.
- 
- @kindex S (Selector)
--@itemx S
-+@item S
- Toggle shuffling (randomising) of slideshows. @xref{Slideshows}.
- 
- @kindex L (Selector)