From 9afdaaa83e7a0ecbe04090afed7d3f463adf05ef Mon Sep 17 00:00:00 2001 From: kwm Date: Mon, 21 Mar 2011 09:14:15 +0000 Subject: Correct CATEGORIE so portmaster doesn't error out. Run fc-cache on install. Not sure if more is needed. git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@15518 df743ca5-7f9a-e211-a948-0013205c9059 --- x11-fonts/cantarell-fonts/Makefile | 8 +++++++- x11-fonts/cantarell-fonts/pkg-plist | 2 ++ 2 files changed, 9 insertions(+), 1 deletion(-) (limited to 'x11-fonts/cantarell-fonts') diff --git a/x11-fonts/cantarell-fonts/Makefile b/x11-fonts/cantarell-fonts/Makefile index 2043458cd..9901ce736 100644 --- a/x11-fonts/cantarell-fonts/Makefile +++ b/x11-fonts/cantarell-fonts/Makefile @@ -7,7 +7,8 @@ PORTNAME= cantarell-fonts PORTVERSION= 0.0.4 -CATEGORIES= fonts gnome +PORTREVISION= 1 +CATEGORIES= x11-fonts gnome MASTER_SITES= GNOME MAINTAINER= kwm@FreeBSD.org @@ -18,9 +19,14 @@ LIB_DEPENDS= fontconfig.1:${PORTSDIR}/x11-fonts/fontconfig USE_GNOME= pkgconfig USE_GMAKE= yes GNU_CONFIGURE= yes +FONTSDIR= share/fonts/cantarell +PLIST_SUB= FONTSDIR=${FONTSDIR} post-patch: @${REINPLACE_CMD} -e 's|(datadir)/fontconfig/conf.avail/|(prefix)/etc/fonts/conf.avail/|g' \ ${WRKSRC}/fontconfig/Makefile.in +post-install: + @${LOCALBASE}/bin/fc-cache -f -v ${PREFIX}/${FONTSDIR} + .include diff --git a/x11-fonts/cantarell-fonts/pkg-plist b/x11-fonts/cantarell-fonts/pkg-plist index 87cd9feee..8086f08df 100644 --- a/x11-fonts/cantarell-fonts/pkg-plist +++ b/x11-fonts/cantarell-fonts/pkg-plist @@ -1,3 +1,5 @@ etc/fonts/conf.avail/31-cantarell.conf share/fonts/cantarell/Cantarell-Bold.otf share/fonts/cantarell/Cantarell-Regular.otf +@exec %D/bin/fc-cache -f -v %D/%%FONTSDIR%% +@dirrm share/fonts/cantarell -- cgit v1.2.3