From deaa00ca2dac3dc85d9a4f33582dfaed6838108e Mon Sep 17 00:00:00 2001 From: marcus Date: Sat, 29 Mar 2003 05:43:32 +0000 Subject: Run fc-cache -f after installing pango just to make sure GNOME 2 gets some fonts registered. The real fix for this will be to make sure each XFree86 font port runs fc-cache after installation. This is being committed here so to fix the GNOME package install for 4.8-RELEASE. Reported by: murray --- x11-toolkits/pango/Makefile | 7 ++++++- x11-toolkits/pango/pkg-install | 8 ++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 x11-toolkits/pango/pkg-install (limited to 'x11-toolkits') diff --git a/x11-toolkits/pango/Makefile b/x11-toolkits/pango/Makefile index 7d70c96..dcb3b25 100644 --- a/x11-toolkits/pango/Makefile +++ b/x11-toolkits/pango/Makefile @@ -7,7 +7,7 @@ PORTNAME= pango PORTVERSION= 1.2.1 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= x11-toolkits MASTER_SITES= ${MASTER_SITE_GNOME:S,%SUBDIR%,sources/${PORTNAME}/1.2,} \ ftp://ftp.gtk.org/pub/gtk/v2.0/ \ @@ -57,5 +57,10 @@ PLIST_SUB+= XFREE4:="" post-patch: @${FIND} ${WRKSRC}/pango/opentype -name "*.[ch]" | xargs ${REINPLACE_CMD} -e \ 's|internal/tterrors\.h|fterrors.h| ; s|TT_Err_|FT_Err_|g' + +post-install: +.if !defined(PACKAGE_BUILDING) + @${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL +.endif .include diff --git a/x11-toolkits/pango/pkg-install b/x11-toolkits/pango/pkg-install new file mode 100644 index 0000000..6258166 --- /dev/null +++ b/x11-toolkits/pango/pkg-install @@ -0,0 +1,8 @@ +#!/bin/sh + +PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/X11R6/bin:${PATH} +export PATH + +if [ "$2" = "POST-INSTALL" ]; then + fc-cache -f >/dev/null 2>&1 +fi -- cgit v1.1