The distfile is only about 40M big but extracts to 205M sources, of
which we only ever need two directories that sum up to 7M;  it also
makes it clearer what this port actually requires from upstream and
WRKSRC is lot cleaner.

Feedback? OK?


Index: Makefile
===================================================================
RCS file: /cvs/ports/sysutils/coreboot-utils/Makefile,v
retrieving revision 1.3
diff -u -p -r1.3 Makefile
--- Makefile    14 May 2020 19:20:27 -0000      1.3
+++ Makefile    15 May 2020 16:23:40 -0000
@@ -24,6 +24,9 @@ WANTLIB =             c
 MASTER_SITES =         https://coreboot.org/releases/
 
 EXTRACT_SUFX =         .tar.xz
+# extract only what's needed (7M) instead of everything (205M)
+EXTRACT_CASES =                *${EXTRACT_SUFX}) xzdec 
<${FULLDISTDIR}/$$archive | \
+                               ${TAR} xf - ${DISTNAME}/{src/commonlib,util};;
 
 USE_GMAKE =            Yes
 

Reply via email to