aboutsummaryrefslogtreecommitdiff
path: root/x11-fonts/sharefonts
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2015-03-19 17:20:17 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2015-03-19 17:20:17 +0000
commitf7193d14cffce1ace92d15b3ce6188f7ba61a2a8 (patch)
tree9755bef4ecc487fd0aad422bb9b7742a63687104 /x11-fonts/sharefonts
parent26f84f0fab4465c7228fa8ba7a560b0b4310b791 (diff)
downloadports-f7193d14cffce1ace92d15b3ce6188f7ba61a2a8.tar.gz
ports-f7193d14cffce1ace92d15b3ce6188f7ba61a2a8.zip
Convert to USES=fonts
Notes
Notes: svn path=/head/; revision=381626
Diffstat (limited to 'x11-fonts/sharefonts')
-rw-r--r--x11-fonts/sharefonts/Makefile11
-rw-r--r--x11-fonts/sharefonts/pkg-plist3
2 files changed, 6 insertions, 8 deletions
diff --git a/x11-fonts/sharefonts/Makefile b/x11-fonts/sharefonts/Makefile
index a5ab7e46d58f..b9ea77585b14 100644
--- a/x11-fonts/sharefonts/Makefile
+++ b/x11-fonts/sharefonts/Makefile
@@ -3,7 +3,7 @@
PORTNAME= sharefonts
PORTVERSION= 0.10
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= x11-fonts
MASTER_SITES= http://download.gimp.org/pub/%SUBDIR%/ \
ftp://ftp.sunet.se/pub/gnu/%SUBDIR%/ \
@@ -18,11 +18,12 @@ RESTRICTED= Shareware: cannot be distributed without prior authorization
NO_BUILD= yes
-FONTDIR?= ${PREFIX}/lib/X11/fonts/${PORTNAME}
-PLIST_SUB= FONTDIR="${FONTDIR:S|${PREFIX}/||}"
+USES= fonts
+FONTSDIR?= ${PREFIX}/lib/X11/fonts/${PORTNAME}
+PLIST_SUB= FONTDIR="${FONTSDIR}"
do-install:
- @${MKDIR} ${STAGEDIR}${FONTDIR}
- ${INSTALL_DATA} ${WRKDIR}/sharefont/* ${STAGEDIR}${FONTDIR}
+ @${MKDIR} ${STAGEDIR}${FONTSDIR}
+ ${INSTALL_DATA} ${WRKDIR}/sharefont/* ${STAGEDIR}${FONTSDIR}
.include <bsd.port.mk>
diff --git a/x11-fonts/sharefonts/pkg-plist b/x11-fonts/sharefonts/pkg-plist
index 54e6c4be0a41..32a2cad69fe6 100644
--- a/x11-fonts/sharefonts/pkg-plist
+++ b/x11-fonts/sharefonts/pkg-plist
@@ -41,6 +41,3 @@
%%FONTDIR%%/upperwes.shareware
%%FONTDIR%%/westslnt.pfb
%%FONTDIR%%/westslnt.shareware
-@unexec rm %D/%%FONTDIR%%/fonts.cache-1 2>/dev/null || true
-@dirrm %%FONTDIR%%
-@exec %%LOCALBASE%%/bin/fc-cache -f -v %D/%%FONTDIR%% || true