From 7a1dfa66e63a1624cb5f988e6f6c47f3be68a55e Mon Sep 17 00:00:00 2001 From: Jung-uk Kim Date: Wed, 10 Aug 2011 21:33:29 +0000 Subject: Remove pkg-plist and generate it from Makefile. --- korean/nanumcoding-ttf/Makefile | 18 +++++++++++++++--- korean/nanumcoding-ttf/pkg-plist | 7 ------- 2 files changed, 15 insertions(+), 10 deletions(-) delete mode 100644 korean/nanumcoding-ttf/pkg-plist diff --git a/korean/nanumcoding-ttf/Makefile b/korean/nanumcoding-ttf/Makefile index 4590ff1890b2..880643b813f5 100644 --- a/korean/nanumcoding-ttf/Makefile +++ b/korean/nanumcoding-ttf/Makefile @@ -25,8 +25,16 @@ BUILD_DEPENDS+= ${LOCALBASE}/bin/mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir \ NO_WRKSUBDIR= yes USE_ZIP= yes -FONTSDIR= lib/X11/fonts/nanum-coding-ttf -PLIST_SUB+= FONTSDIR=${FONTSDIR} +FONTSDIR= lib/X11/fonts/nanum-coding${PKGNAMESUFFIX} +FONTLIST= NanumGothicCoding \ + NanumGothicCoding-Bold + +PLIST_DIRS= ${FONTSDIR} +.for f in ${FONTLIST} +PLIST_FILES+= ${FONTSDIR}/${f}.ttf +.endfor +PLIST_FILES+= ${FONTSDIR}/fonts.dir \ + ${FONTSDIR}/fonts.scale post-extract: @# XXX File names are encoded in EUC-KR. @@ -40,11 +48,15 @@ do-build: do-install: ${MKDIR} ${PREFIX}/${FONTSDIR} - ${INSTALL_DATA} ${WRKSRC}/*.ttf ${PREFIX}/${FONTSDIR} +.for f in ${FONTLIST} + ${INSTALL_DATA} ${WRKSRC}/${f}.ttf ${PREFIX}/${FONTSDIR} +.endfor ${INSTALL_DATA} ${WRKSRC}/fonts.dir ${PREFIX}/${FONTSDIR} ${INSTALL_DATA} ${WRKSRC}/fonts.scale ${PREFIX}/${FONTSDIR} post-install: + @${ECHO_CMD} "@exec fc-cache -s %D/${FONTSDIR} 2>/dev/null || true" >> ${TMPPLIST} + @${ECHO_CMD} "@unexec fc-cache -s %D/${FONTSDIR} 2>/dev/null || true" >> ${TMPPLIST} @-${LOCALBASE}/bin/fc-cache -s ${PREFIX}/${FONTSDIR} 2>/dev/null .include diff --git a/korean/nanumcoding-ttf/pkg-plist b/korean/nanumcoding-ttf/pkg-plist deleted file mode 100644 index a47b0d9ed858..000000000000 --- a/korean/nanumcoding-ttf/pkg-plist +++ /dev/null @@ -1,7 +0,0 @@ -%%FONTSDIR%%/NanumGothicCoding-Bold.ttf -%%FONTSDIR%%/NanumGothicCoding.ttf -%%FONTSDIR%%/fonts.dir -%%FONTSDIR%%/fonts.scale -@dirrm %%FONTSDIR%% -@exec fc-cache -s %D/%%FONTSDIR%% 2>/dev/null || true -@unexec fc-cache -s %D/%%FONTSDIR%% 2>/dev/null || true -- cgit v1.2.3