aboutsummaryrefslogtreecommitdiffstats
path: root/x11-fonts
diff options
context:
space:
mode:
authorsunpoet <sunpoet@FreeBSD.org>2014-07-23 01:42:01 +0800
committersunpoet <sunpoet@FreeBSD.org>2014-07-23 01:42:01 +0800
commit96b25119a8511155360e0b2e804c3e1988608a89 (patch)
treebb535f52cb1538d7364c5d0827560b5ea433ad2f /x11-fonts
parent602688b8e904ff3671c90557643c9bbcc17509cb (diff)
downloadfreebsd-ports-gnome-96b25119a8511155360e0b2e804c3e1988608a89.tar.gz
freebsd-ports-gnome-96b25119a8511155360e0b2e804c3e1988608a89.tar.zst
freebsd-ports-gnome-96b25119a8511155360e0b2e804c3e1988608a89.zip
- Remove leading indefinite article from COMMENT
- Use @fcfontsdir - Simplify FONTDIR - Cleanup Makefile
Diffstat (limited to 'x11-fonts')
-rw-r--r--x11-fonts/sourcesanspro-ttf/Makefile27
-rw-r--r--x11-fonts/sourcesanspro-ttf/files/pkg-message.in2
-rw-r--r--x11-fonts/sourcesanspro-ttf/pkg-plist5
3 files changed, 11 insertions, 23 deletions
diff --git a/x11-fonts/sourcesanspro-ttf/Makefile b/x11-fonts/sourcesanspro-ttf/Makefile
index a6ae2f4495ca..08b2da5ea623 100644
--- a/x11-fonts/sourcesanspro-ttf/Makefile
+++ b/x11-fonts/sourcesanspro-ttf/Makefile
@@ -3,41 +3,32 @@
PORTNAME= sourcesanspro-ttf
PORTVERSION= 1.050
+PORTREVISION= 1
CATEGORIES= x11-fonts
MASTER_SITES= SF/sourcesans.adobe
DISTNAME= SourceSansPro_FontsOnly-${PORTVERSION}
MAINTAINER= office@FreeBSD.org
-COMMENT= A set of fonts by Adobe designed for user interfaces
+COMMENT= Set of fonts by Adobe designed for user interfaces
LICENSE= OFL11
-BUILD_DEPENDS= mkfontscale:${PORTSDIR}/x11-fonts/mkfontscale \
+BUILD_DEPENDS= mkfontscale:${PORTSDIR}/x11-fonts/mkfontscale \
mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir
+NO_BUILD= yes
USES= zip
USE_XORG= x11
-PLIST_SUB= FONTDIR="${FONTDIR:S|${PREFIX}/||}"
-
-SUB_FILES= pkg-message
PKGMESSAGE= ${WRKDIR}/pkg-message
+PLIST_SUB= FONTDIR=${FONTDIR}
+SUB_FILES= pkg-message
SUB_LIST= FONTDIR=${FONTDIR}
-FONTNAME= SourceSansPro
-FONTDIR= ${PREFIX}/lib/X11/fonts/${FONTNAME}
-INSTDAT= fonts.dir fonts.scale
-
-MKFONTSCL_CMD= ${LOCALBASE}/bin/mkfontscale
-MKFONTDIR_CMD= ${LOCALBASE}/bin/mkfontdir
-
-do-build:
- cd ${WRKSRC}/ && ${MKFONTSCL_CMD}
- cd ${WRKSRC}/ && ${MKFONTDIR_CMD}
+FONTDIR= lib/X11/fonts/SourceSansPro
do-install:
- ${MKDIR} ${STAGEDIR}${FONTDIR}
- cd ${WRKSRC}/ && \
- ${INSTALL_DATA} ${INSTDAT} TTF/*.ttf ${STAGEDIR}${FONTDIR}
+ ${MKDIR} ${STAGEDIR}${PREFIX}/${FONTDIR}
+ cd ${WRKSRC}/ && ${INSTALL_DATA} TTF/*.ttf ${STAGEDIR}${PREFIX}/${FONTDIR}
.include <bsd.port.mk>
diff --git a/x11-fonts/sourcesanspro-ttf/files/pkg-message.in b/x11-fonts/sourcesanspro-ttf/files/pkg-message.in
index dca252c8f1d3..6592e4421e31 100644
--- a/x11-fonts/sourcesanspro-ttf/files/pkg-message.in
+++ b/x11-fonts/sourcesanspro-ttf/files/pkg-message.in
@@ -2,4 +2,4 @@ You can start using the fonts by following these instructions:
Add the following line to the "Files" section of your x.org configuration file:
- FontPath "%%FONTDIR%%/"
+ FontPath "%%PREFIX%%/%%FONTDIR%%/"
diff --git a/x11-fonts/sourcesanspro-ttf/pkg-plist b/x11-fonts/sourcesanspro-ttf/pkg-plist
index 90bb76b2511e..495d80058581 100644
--- a/x11-fonts/sourcesanspro-ttf/pkg-plist
+++ b/x11-fonts/sourcesanspro-ttf/pkg-plist
@@ -10,7 +10,4 @@
%%FONTDIR%%/SourceSansPro-Regular.ttf
%%FONTDIR%%/SourceSansPro-Semibold.ttf
%%FONTDIR%%/SourceSansPro-SemiboldIt.ttf
-%%FONTDIR%%/fonts.dir
-%%FONTDIR%%/fonts.scale
-@unexec rm %D/%%FONTDIR%%/fonts.cache-1 2>/dev/null || /usr/bin/true
-@dirrm %%FONTDIR%%
+@fcfontsdir %%FONTDIR%%