summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeffrey Gardner <je_fro@gentoo.org>2007-06-10 04:42:59 +0000
committerJeffrey Gardner <je_fro@gentoo.org>2007-06-10 04:42:59 +0000
commitedfc6b7d7b64ce4e367c149b93be4e09c190e377 (patch)
treeb477d62c1447b77a511d4c2038bbbc9cb58e0bc0 /media-fonts/liberation-fonts-ttf
parentupdate findutils selinux patch. (diff)
downloadgentoo-2-edfc6b7d7b64ce4e367c149b93be4e09c190e377.tar.gz
gentoo-2-edfc6b7d7b64ce4e367c149b93be4e09c190e377.tar.bz2
gentoo-2-edfc6b7d7b64ce4e367c149b93be4e09c190e377.zip
Adding fontconfig file. Thanks to Ed Catmur and Wouter Bolsterlee.
(Portage version: 2.1.2.7)
Diffstat (limited to 'media-fonts/liberation-fonts-ttf')
-rw-r--r--media-fonts/liberation-fonts-ttf/ChangeLog6
-rw-r--r--media-fonts/liberation-fonts-ttf/files/liberation-fonts-ttf-fontconfig.txt25
-rw-r--r--media-fonts/liberation-fonts-ttf/liberation-fonts-ttf-3.ebuild17
3 files changed, 46 insertions, 2 deletions
diff --git a/media-fonts/liberation-fonts-ttf/ChangeLog b/media-fonts/liberation-fonts-ttf/ChangeLog
index dd42b1a5cd0c..7f4e7a165ac1 100644
--- a/media-fonts/liberation-fonts-ttf/ChangeLog
+++ b/media-fonts/liberation-fonts-ttf/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for media-fonts/liberation-fonts-ttf
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-fonts/liberation-fonts-ttf/ChangeLog,v 1.10 2007/06/05 01:33:08 je_fro Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-fonts/liberation-fonts-ttf/ChangeLog,v 1.11 2007/06/10 04:42:59 je_fro Exp $
+
+ 10 Jun 2007; Jeff Gardner <je_fro@gentoo.org>
+ +files/liberation-fonts-ttf-fontconfig.txt, liberation-fonts-ttf-3.ebuild:
+ Adding fontconfig file. Thanks to Ed Catmur and Wouter Bolsterlee.
05 Jun 2007; Jeff Gardner <je_fro@gentoo.org> ChangeLog:
Initial import.
diff --git a/media-fonts/liberation-fonts-ttf/files/liberation-fonts-ttf-fontconfig.txt b/media-fonts/liberation-fonts-ttf/files/liberation-fonts-ttf-fontconfig.txt
new file mode 100644
index 000000000000..5edc51a1d1b0
--- /dev/null
+++ b/media-fonts/liberation-fonts-ttf/files/liberation-fonts-ttf-fontconfig.txt
@@ -0,0 +1,25 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+
+ <!-- Symlinking this file to /etc/fonts/conf.d/ will allow
+ you to use liberation fonts instead of the microsoft truetype fonts.
+ (from http://uwstopia.nl/blog/2007/05/free-your-fonts) -->
+
+ <!-- Liberation fonts -->
+ <match target="pattern">
+ <test qual="any" name="family"><string>Times New Roman</string></test>
+ <edit name="family" mode="assign"><string>Liberation Serif</string></edit>
+ </match>
+ <match target="pattern">
+ <test qual="any" name="family"><string>Arial</string></test>
+ <edit name="family" mode="assign"><string>Liberation Sans</string></edit>
+ </match>
+ <match target="pattern">
+ <test qual="any" name="family"><string>Courier</string></test>
+ <edit name="family" mode="assign"><string>Liberation Mono</string></edit>
+ </match>
+
+
+</fontconfig>
+
diff --git a/media-fonts/liberation-fonts-ttf/liberation-fonts-ttf-3.ebuild b/media-fonts/liberation-fonts-ttf/liberation-fonts-ttf-3.ebuild
index f612bc6f40bc..5f6fa9f1c16e 100644
--- a/media-fonts/liberation-fonts-ttf/liberation-fonts-ttf-3.ebuild
+++ b/media-fonts/liberation-fonts-ttf/liberation-fonts-ttf-3.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-fonts/liberation-fonts-ttf/liberation-fonts-ttf-3.ebuild,v 1.7 2007/06/05 00:36:14 je_fro Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-fonts/liberation-fonts-ttf/liberation-fonts-ttf-3.ebuild,v 1.8 2007/06/10 04:42:59 je_fro Exp $
inherit font
@@ -20,3 +20,18 @@ S="${FONT_S}"
FONT_SUFFIX="ttf"
DOCS="License.txt"
+
+src_install() {
+ font_src_install
+
+ # from http://uwstopia.nl/blog/2007/05/free-your-fonts
+ insinto /etc/fonts/conf.avail
+ newins ${FILESDIR}/${PN}-fontconfig.txt 60-liberation.conf \
+ || die "newins failed"
+}
+
+pkg_postinst() {
+ einfo
+ einfo "To substitute Liberation fonts for Microsoft equivalents, use:"
+ einfo " cd /etc/fonts/conf.d/ && ln -sf ../conf.avail/60-liberation.conf ."
+}