summaryrefslogtreecommitdiff
path: root/x11-fonts/linux-f8-fontconfig
diff options
context:
space:
mode:
authorBoris Samorodov <bsam@FreeBSD.org>2007-05-23 14:54:21 +0000
committerBoris Samorodov <bsam@FreeBSD.org>2007-05-23 14:54:21 +0000
commitbdaf48957bc6ad634f4ad6dace901f9d654d84b9 (patch)
tree2578e7d1daf26cfb43b6d3f5fcfb6c5f3e4d5dd0 /x11-fonts/linux-f8-fontconfig
parent- Add option for Ruby bindings (diff)
. change the prefix (/usr/X11 -> %{LOCALBASE}) at the configuration file; [1]
. do REINPLACE at post-patch instead of post-install; [2] . don't let the linux fc-cache mess up the native cache file (delete [3] the binary and the man); . add some comments to the Makefile. PR: 110632 [1] Submitted by: Karol Kwiatkowski <karol.kwiat at gmail.com> [1] Suggested by: pav [2], netchild [3] Approved by: portmgr (pav)
Notes
Notes: svn path=/head/; revision=191618
Diffstat (limited to 'x11-fonts/linux-f8-fontconfig')
-rw-r--r--x11-fonts/linux-f8-fontconfig/Makefile13
-rw-r--r--x11-fonts/linux-f8-fontconfig/pkg-plist2
2 files changed, 9 insertions, 6 deletions
diff --git a/x11-fonts/linux-f8-fontconfig/Makefile b/x11-fonts/linux-f8-fontconfig/Makefile
index e8e5eb54bf25..fd8d8c954c47 100644
--- a/x11-fonts/linux-f8-fontconfig/Makefile
+++ b/x11-fonts/linux-f8-fontconfig/Makefile
@@ -7,7 +7,7 @@
PORTNAME= fontconfig
PORTVERSION= 2.2.3
-PORTREVISION= 6
+PORTREVISION= 7
CATEGORIES= x11-fonts linux
DISTNAME= ${PORTNAME}-${PORTVERSION}-13
@@ -24,10 +24,15 @@ PLIST_SUB+= PORTVERSION="${PORTVERSION}"
BRANDELF_DIRS= usr/bin
+# We will use some other configuration file, so delete a linux one
+# Don't let the linux fc-cache mess up the native cache file
post-extract:
- ${RM} ${WRKSRC}/etc/fonts/fonts.conf
+ @${RM} ${WRKSRC}/etc/fonts/fonts.conf \
+ ${WRKSRC}/usr/bin/fc-cache \
+ ${WRKSRC}/usr/share/man/man1/fc-cache.1.gz
-post-install:
- ${INSTALL_DATA} ${FILESDIR}/fonts.conf ${PREFIX}/etc/fonts/fonts.conf
+# Here is our configuration file
+post-patch:
+ @${CAT} ${FILESDIR}/fonts.conf | ${SED} 's:/usr/X11R6:${LOCALBASE}:g' > ${WRKSRC}/etc/fonts/fonts.conf
.include <bsd.port.mk>
diff --git a/x11-fonts/linux-f8-fontconfig/pkg-plist b/x11-fonts/linux-f8-fontconfig/pkg-plist
index cb1f841b2938..918babda115a 100644
--- a/x11-fonts/linux-f8-fontconfig/pkg-plist
+++ b/x11-fonts/linux-f8-fontconfig/pkg-plist
@@ -1,7 +1,6 @@
etc/fonts/fonts.conf
etc/fonts/fonts.dtd
etc/fonts/local.conf
-usr/bin/fc-cache
usr/bin/fc-list
usr/lib/libfontconfig.so.1
usr/lib/libfontconfig.so.1.0.4
@@ -10,7 +9,6 @@ usr/share/doc/fontconfig-%%PORTVERSION%%/COPYING
usr/share/doc/fontconfig-%%PORTVERSION%%/README
usr/share/doc/fontconfig-%%PORTVERSION%%/fontconfig-user.html
usr/share/doc/fontconfig-%%PORTVERSION%%/fontconfig-user.txt
-usr/share/man/man1/fc-cache.1.gz
usr/share/man/man1/fc-list.1.gz
usr/share/man/man5/fonts-conf.5.gz
@dirrm etc/fonts