diff options
author | bapt <bapt@FreeBSD.org> | 2015-03-20 01:35:29 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2015-03-20 01:35:29 +0800 |
commit | dc6709863c947f832f37c1e70738b275d754ed0d (patch) | |
tree | 9c404b4daeaa88d744d35522517615557f2153ff /x11-fonts | |
parent | c343cadd687c2062561dee002ffabbafdad00bf9 (diff) | |
download | freebsd-ports-gnome-dc6709863c947f832f37c1e70738b275d754ed0d.tar.gz freebsd-ports-gnome-dc6709863c947f832f37c1e70738b275d754ed0d.tar.zst freebsd-ports-gnome-dc6709863c947f832f37c1e70738b275d754ed0d.zip |
Convert to USES=fonts
various cleanup
Diffstat (limited to 'x11-fonts')
-rw-r--r-- | x11-fonts/code2001/Makefile | 17 | ||||
-rw-r--r-- | x11-fonts/code2001/pkg-plist | 7 |
2 files changed, 4 insertions, 20 deletions
diff --git a/x11-fonts/code2001/Makefile b/x11-fonts/code2001/Makefile index 60b259315b57..bbfd4ceaa7a1 100644 --- a/x11-fonts/code2001/Makefile +++ b/x11-fonts/code2001/Makefile @@ -3,6 +3,7 @@ PORTNAME= code2001 PORTVERSION= 0.919 +PORTREVISION= 1 CATEGORIES= x11-fonts MASTER_SITES= CENKES/myports/${DIST_SUBDIR} DISTFILES= CODE2001.ZIP @@ -11,26 +12,16 @@ DIST_SUBDIR= ${PORTNAME}-${PORTVERSION} MAINTAINER= ports@FreeBSD.org COMMENT= Free Plane 1 Unicode-based 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 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 +PLIST_FILES= ${FONTSDIR}/${FONTNAME}.ttf post-extract: @${MKDIR} ${WRKSRC} @${MV} ${WRKDIR}/CODE2001.TTF ${WRKSRC}/${FONTNAME}.ttf -do-build: - @cd ${WRKSRC} && ${MKFONTSCL_CMD} && ${MKFONTDIR_CMD} - do-install: @${MKDIR} ${STAGEDIR}${FONTSDIR} ${INSTALL_DATA} ${WRKSRC}/* ${STAGEDIR}${FONTSDIR} diff --git a/x11-fonts/code2001/pkg-plist b/x11-fonts/code2001/pkg-plist deleted file mode 100644 index abbe63b17e84..000000000000 --- a/x11-fonts/code2001/pkg-plist +++ /dev/null @@ -1,7 +0,0 @@ -%%FONTSDIR%%/code2001.ttf -%%FONTSDIR%%/fonts.dir -%%FONTSDIR%%/fonts.scale -@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%% |