summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Engberg <diizzy@FreeBSD.org>2024-06-06 08:36:15 +0200
committerDaniel Engberg <diizzy@FreeBSD.org>2024-06-06 21:05:48 +0200
commit9a22dceae54e0236da83ce52cfee4af1af99d0aa (patch)
tree9ea00129db742422715ff4dfac1aeacda25e5305
parentMk/Uses/cmake.mk: Make parallel level adjustable for tests (diff)
x11-fonts/cascadia-code: Use EXTRACT_AFTER_ARGS to reduce I/O
Use EXTRACT_AFTER_ARGS to reduce I/O more than 50% by only extracting files we install. PR: 278779 Approved by: blanket (improvment to build)
-rw-r--r--x11-fonts/cascadia-code/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/x11-fonts/cascadia-code/Makefile b/x11-fonts/cascadia-code/Makefile
index c1a08d8a52a0..4ec3b4c65df2 100644
--- a/x11-fonts/cascadia-code/Makefile
+++ b/x11-fonts/cascadia-code/Makefile
@@ -3,6 +3,7 @@ PORTVERSION= 2404.23
CATEGORIES= x11-fonts
MASTER_SITES= https://github.com/microsoft/cascadia-code/releases/download/v${PORTVERSION}/
DISTNAME= CascadiaCode-${PORTVERSION}
+EXTRACT_SUFX= .zip
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Monospaced font with programming ligatures
@@ -10,12 +11,15 @@ WWW= https://github.com/microsoft/cascadia-code
LICENSE= OFL11
-USES= fonts zip
+USES= fonts
NO_ARCH= yes
NO_BUILD= yes
NO_WRKSUBDIR= yes
+EXTRACT_AFTER_ARGS= --include ttf/static \
+ --no-same-owner --no-same-permissions
+
do-install:
@${MKDIR} ${STAGEDIR}${FONTSDIR}
${INSTALL_DATA} ${WRKSRC}/ttf/static/*.ttf ${STAGEDIR}${FONTSDIR}