aboutsummaryrefslogtreecommitdiffstats
path: root/x11-fonts
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2015-03-20 01:33:11 +0800
committerbapt <bapt@FreeBSD.org>2015-03-20 01:33:11 +0800
commitc343cadd687c2062561dee002ffabbafdad00bf9 (patch)
tree413ebcb692ac6106f0aed08a3d9727d740cacdca /x11-fonts
parent00deba8fc50e6479db77a72fc4c5199c21e8ca7a (diff)
downloadfreebsd-ports-graphics-c343cadd687c2062561dee002ffabbafdad00bf9.tar.gz
freebsd-ports-graphics-c343cadd687c2062561dee002ffabbafdad00bf9.tar.zst
freebsd-ports-graphics-c343cadd687c2062561dee002ffabbafdad00bf9.zip
Convert to USES=fonts
Various cleanup
Diffstat (limited to 'x11-fonts')
-rw-r--r--x11-fonts/code2000/Makefile20
-rw-r--r--x11-fonts/code2000/pkg-plist6
2 files changed, 3 insertions, 23 deletions
diff --git a/x11-fonts/code2000/Makefile b/x11-fonts/code2000/Makefile
index d25f6e62290..5f7a9fccd72 100644
--- a/x11-fonts/code2000/Makefile
+++ b/x11-fonts/code2000/Makefile
@@ -3,6 +3,7 @@
PORTNAME= code2000
PORTVERSION= 1.171
+PORTREVISION= 1
CATEGORIES= x11-fonts
MASTER_SITES= ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= thierry/${DIST_SUBDIR}
@@ -12,24 +13,13 @@ DIST_SUBDIR= ${PORTNAME}-${PORTVERSION}
MAINTAINER= thierry@FreeBSD.org
COMMENT= Shareware demo Unicode TrueType font
-BUILD_DEPENDS= mkfontscale:${PORTSDIR}/x11-fonts/mkfontscale \
- mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir \
- fc-cache:${PORTSDIR}/x11-fonts/fontconfig
-
-USES= zip
-
-PLIST_SUB= FONTSDIR="${FONTSDIR:S|${PREFIX}/||}"
+USES= fonts zip
SUB_FILES= pkg-message
-PKGMESSAGE= ${WRKDIR}/pkg-message
-SUB_LIST= FONTSDIR=${FONTSDIR}
FONTNAME= ${PORTNAME}
FONTSDIR?= ${PREFIX}/lib/X11/fonts/${FONTNAME}
-
-MKFONTSCL_CMD= ${LOCALBASE}/bin/mkfontscale
-MKFONTDIR_CMD= ${LOCALBASE}/bin/mkfontdir
-FCCACHE_CMD= ${LOCALBASE}/bin/fc-cache -f -v
+NO_BUILD= yes
post-extract: move-fonts rename-license
@@ -40,10 +30,6 @@ move-fonts:
rename-license:
${MV} ${WRKDIR}/CODE2000.HTM ${WRKSRC}/${FONTNAME}.html
-do-build:
- cd ${WRKSRC} && ${MKFONTSCL_CMD}
- cd ${WRKSRC} && ${MKFONTDIR_CMD}
-
do-install:
${MKDIR} ${STAGEDIR}${FONTSDIR}
${INSTALL_DATA} ${WRKSRC}/* ${STAGEDIR}${FONTSDIR}
diff --git a/x11-fonts/code2000/pkg-plist b/x11-fonts/code2000/pkg-plist
index a7345f8f0c5..71c2c578b0f 100644
--- a/x11-fonts/code2000/pkg-plist
+++ b/x11-fonts/code2000/pkg-plist
@@ -1,8 +1,2 @@
%%FONTSDIR%%/code2000.html
%%FONTSDIR%%/code2000.ttf
-%%FONTSDIR%%/fonts.dir
-%%FONTSDIR%%/fonts.scale
-@exec %%LOCALBASE%%/bin/fc-cache -f -v %D/%%FONTSDIR%% || true
-@unexec rm %D/%%FONTSDIR%%/fonts.cache-1 2>/dev/null || true
-@unexec %%LOCALBASE%%/bin/fc-cache -f -v %D/%%FONTSDIR%% 2>/dev/null || true
-@dirrm %%FONTSDIR%%