From 66cae063e749df5c98edbbb1afda2e52cbdc4df5 Mon Sep 17 00:00:00 2001 From: "Vanilla I. Shu" Date: Fri, 4 Jul 2014 03:42:07 +0000 Subject: [PATCH] Stagify. --- x11-fonts/tmu/Makefile | 17 ++++------------- x11-fonts/tmu/pkg-plist | 7 +------ 2 files changed, 5 insertions(+), 19 deletions(-) diff --git a/x11-fonts/tmu/Makefile b/x11-fonts/tmu/Makefile index cb86cbcdc1ed..32c67114d251 100644 --- a/x11-fonts/tmu/Makefile +++ b/x11-fonts/tmu/Makefile @@ -14,26 +14,17 @@ BUILD_DEPENDS= mkfontscale:${PORTSDIR}/x11-fonts/mkfontscale \ mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir \ fc-cache:${PORTSDIR}/x11-fonts/fontconfig -USE_BZIP2= yes +USES= tar:bzip2 PLIST_SUB= FONTSDIR="${FONTSDIR:S|${PREFIX}/||}" FONTNAME= ${PORTNAME} FONTSDIR?= ${PREFIX}/lib/X11/fonts/${FONTNAME} +NO_BUILD= yes -MKFONTSCL_CMD= ${LOCALBASE}/bin/mkfontscale -MKFONTDIR_CMD= ${LOCALBASE}/bin/mkfontdir -FCCACHE_CMD= ${LOCALBASE}/bin/fc-cache -f -v - -NO_STAGE= yes post-extract: @cd ${WRKSRC}/&&${MV} TibMachUni-${DISTVERSION}.ttf tmu.ttf -do-build: - @cd ${WRKSRC}/ && ${MKFONTSCL_CMD} && ${MKFONTDIR_CMD} - do-install: - @${INSTALL} -d ${FONTSDIR}/ - @${INSTALL_DATA} ${WRKSRC}/[ft]* ${FONTSDIR}/ - @${ECHO_MSG} "===> Running fc-cache" - -${FCCACHE_CMD} ${FONTSDIR} + @${INSTALL} -d ${STAGEDIR}${FONTSDIR}/ + @${INSTALL_DATA} ${WRKSRC}/tmu.ttf ${STAGEDIR}${FONTSDIR}/ .include diff --git a/x11-fonts/tmu/pkg-plist b/x11-fonts/tmu/pkg-plist index 138dcf3ea953..b8353a1d66ea 100644 --- a/x11-fonts/tmu/pkg-plist +++ b/x11-fonts/tmu/pkg-plist @@ -1,7 +1,2 @@ -%%FONTSDIR%%/fonts.dir -%%FONTSDIR%%/fonts.scale %%FONTSDIR%%/tmu.ttf -@exec %%LOCALBASE%%/bin/fc-cache -f -v %D/%%FONTSDIR%% || true -@unexec rm -f %D/%%FONTSDIR%%/fonts.cache-1 2>/dev/null || true -@unexec %%LOCALBASE%%/bin/fc-cache -f -v %D/%%FONTSDIR%% || true -@dirrm %%FONTSDIR%% +@fcfontsdir %%FONTSDIR%%