From 76fc4757ac91ac7947a01fb7b53dddf9a78a01d1 Mon Sep 17 00:00:00 2001 From: Patrick J Volkerding Date: Mon, 4 Nov 2013 17:08:47 +0000 Subject: Slackware 14.1 Mon Nov 4 17:08:47 UTC 2013 Slackware 14.1 x86_64 stable is released! It's been another interesting release cycle here at Slackware bringing new features like support for UEFI machines, updated compilers and development tools, the switch from MySQL to MariaDB, and many more improvements throughout the system. Thanks to the team, the upstream developers, the dedicated Slackware community, and everyone else who pitched in to help make this release a reality. The ISOs are off to be replicated, a 6 CD-ROM 32-bit set and a dual-sided 32-bit/64-bit x86/x86_64 DVD. Please consider supporting the Slackware project by picking up a copy from store.slackware.com. We're taking pre-orders now, and offer a discount if you sign up for a subscription. Have fun! :-) --- source/x/fontconfig/fontconfig.SlackBuild | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) (limited to 'source/x/fontconfig/fontconfig.SlackBuild') diff --git a/source/x/fontconfig/fontconfig.SlackBuild b/source/x/fontconfig/fontconfig.SlackBuild index bb3b192f..2fd360ae 100755 --- a/source/x/fontconfig/fontconfig.SlackBuild +++ b/source/x/fontconfig/fontconfig.SlackBuild @@ -1,6 +1,6 @@ #!/bin/sh -# Copyright 2008, 2009, 2010 Patrick J. Volkerding, Sebeka, Minnesota, USA +# Copyright 2008, 2009, 2010, 2013 Patrick J. Volkerding, Sebeka, Minnesota, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -86,6 +86,10 @@ CFLAGS=$SLKCFLAGS \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --mandir=/usr/man \ --sysconfdir=/etc \ + --with-templatedir=/etc/fonts/conf.avail \ + --with-baseconfigdir=/etc/fonts \ + --with-configdir=/etc/fonts/conf.d \ + --with-xmldir=/etc/fonts \ --localstatedir=/var \ --enable-static=no \ --build=$ARCH-slackware-linux @@ -94,6 +98,15 @@ CFLAGS=$SLKCFLAGS \ make $NUMJOBS || make || exit 1 make install DESTDIR=$PKG || exit 1 +# Upstream has changed the default templatedir to /usr/share/fontconfig/conf.avail. +# This change, if accepted, would break any existing font package containing a +# conf.avail directory. The safest thing to do is to keep things in the +# traditional location, but put a link in the new place so that font packages +# following the new standard location will work. Let's hear it for being +# "more correct" at the expense of having things "just work"! +mkdir -p $PKG/usr/share/fontconfig +( cd $PKG/usr/share/fontconfig ; ln -sf /etc/fonts/conf.avail . ) + mkdir -p $PKG/usr/doc/fontconfig-$VERSION cp -a \ AUTHORS COPYING* INSTALL NEWS README \ @@ -120,7 +133,6 @@ find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ # Set up the default options in /etc/fonts/conf.d: ( cd $PKG/etc/fonts/conf.d for fontconf in \ - 20-fix-globaladvance.conf \ 20-unhint-small-vera.conf \ 30-urw-aliases.conf \ 30-metric-aliases.conf \ @@ -135,7 +147,12 @@ find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ 69-unifont.conf \ 80-delicious.conf \ 90-synthetic.conf ; do - ln -sf ../conf.avail/$fontconf . || exit 1 + if [ -r ../conf.avail/$fontconf ]; then + ln -sf ../conf.avail/$fontconf . + else + echo "ERROR: unable to symlink ../conf.avail/$fontconf, file does not exist." + exit 1 + fi done if [ ! $? = 0 ]; then exit 1 @@ -166,5 +183,5 @@ cat $CWD/slack-desc > $PKG/install/slack-desc zcat $CWD/doinst.sh.gz > $PKG/install/doinst.sh cd $PKG -/sbin/makepkg -l y -c n $TMP/fontconfig-$VERSION-$ARCH-$BUILD.txz +/sbin/makepkg -l y -c n --prepend $TMP/fontconfig-$VERSION-$ARCH-$BUILD.txz -- cgit v1.2.3