git: a98faba3390c - main - x11-fonts/anomaly-mono: Improve port

Daniel Engberg <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.ports
Message-ID <[email protected]>
The branch main has been updated by diizzy:

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

commit a98faba3390c1321836b5193b38bae966ce70f7d
Author:     Daniel Engberg <[email protected]>
AuthorDate: 2026-08-14 20:03:25 +0000
Commit:     Daniel Engberg <[email protected]>
CommitDate: 2026-08-14 20:47:33 +0000

    x11-fonts/anomaly-mono: Improve port
    
    Only extract files that gets installed
    
    PR:             296927
    Approved by:    maintainer timeout, 3+ weeks
---
 x11-fonts/anomaly-mono/Makefile | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/x11-fonts/anomaly-mono/Makefile b/x11-fonts/anomaly-mono/Makefile
index 84252242f5c7..61e2f983de8c 100644
--- a/x11-fonts/anomaly-mono/Makefile
+++ b/x11-fonts/anomaly-mono/Makefile
@@ -10,10 +10,15 @@ LICENSE=	OFL11
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
 USES=		fonts
+
 USE_GITHUB=	yes
 GH_ACCOUNT=	benbusby
 GH_TAGNAME=	9799d01d42b726374fe8733949a84a8ac071e509
 
+EXTRACT_AFTER_ARGS=	--include ${GH_PROJECT_DEFAULT}-${GH_TAGNAME_EXTRACT}/LICENSE \
+			--include ${GH_PROJECT_DEFAULT}-${GH_TAGNAME_EXTRACT}/*.otf \
+			--no-same-owner --no-same-permissions
+
 NO_ARCH=	yes
 NO_BUILD=	yes
 
@@ -21,8 +26,6 @@ PLIST_FILES=	${FONTSDIR}/AnomalyMono-Powerline.otf \
 		${FONTSDIR}/AnomalyMono-Regular.otf
 do-install:
 	@${MKDIR} ${STAGEDIR}${FONTSDIR}
-.for i in Regular Powerline
-	${INSTALL_DATA} ${WRKSRC}/AnomalyMono-${i}.otf ${STAGEDIR}${FONTSDIR}
-.endfor
+	${INSTALL_DATA} ${WRKSRC}/*.otf ${STAGEDIR}${FONTSDIR}
 
 .include <bsd.port.mk>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.