diff options
-rw-r--r-- | x11-fonts/cantarell-fonts/Makefile | 8 | ||||
-rw-r--r-- | x11-fonts/cantarell-fonts/pkg-plist | 2 |
2 files changed, 9 insertions, 1 deletions
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 <bsd.port.mk> 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 |