Update of /cvsroot/fink/dists/10.7/stable/main/finkinfo/x11
In directory vz-cvs-3.sog:/tmp/cvs-serv28009/x11

Added Files:
        fc-ghostscript-fonts.info fontconfig-path.info 
        fontconfig-path.patch 
Log Message:
Works in 10.7

--- NEW FILE: fontconfig-path.patch ---
diff -ruN fontconfig-path-orig/README fontconfig-path/README
--- fontconfig-path-orig/README Wed Dec 31 16:00:00 1969
+++ fontconfig-path/README      Sat Jan 29 00:15:27 2005
@@ -0,0 +1,16 @@
+fontconfig-path is a simple package to add additional font directories, e.g. 
the ghostscript fonts,
+to the fontconfig search path. 
+
+To use fontconfig-path, add the following lines to your package
+
+Depend: fontconfig-path
+Install: <<
+  mkdir -p %i/share/fontconfig-path
+  ln -s your-font-directory %i/share/fontconfig-path/your-package-name
+<<
+PostInstScript: fc-cache
+PostRmScript: fc-cache
+
+fontconfig-path is in the public domain.
+
+Matthias Neeracher
diff -ruN fontconfig-path-orig/fontconfig-path.conf 
fontconfig-path/fontconfig-path.conf
--- fontconfig-path-orig/fontconfig-path.conf   Wed Dec 31 16:00:00 1969
+++ fontconfig-path/fontconfig-path.conf        Fri Jan 28 23:52:42 2005
@@ -0,0 +1,17 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<!-- /etc/fonts.conf file to configure system font access -->
+<fontconfig>
+       <dir>@PREFIX@/share/fontconfig-path</dir>
+
+<!--
+  Load regular configuration file (New style)
+-->
+       <include 
ignore_missing="yes">/usr/X11/lib/X11/fontconfig/fonts.conf</include>
+
+<!--
+  Load regular configuration file (Old style)
+-->
+       <include 
ignore_missing="yes">/usr/X11/lib/X11/fonts/fonts.conf</include>
+
+</fontconfig>
diff -ruN fontconfig-path-orig/fontconfig-path.csh 
fontconfig-path/fontconfig-path.csh
--- fontconfig-path-orig/fontconfig-path.csh    Wed Dec 31 16:00:00 1969
+++ fontconfig-path/fontconfig-path.csh Fri Jan 28 23:55:05 2005
@@ -0,0 +1 @@
+setenv FONTCONFIG_FILE @PREFIX@/share/fontconfig-path/fontconfig-path.conf
diff -ruN fontconfig-path-orig/fontconfig-path.sh 
fontconfig-path/fontconfig-path.sh
--- fontconfig-path-orig/fontconfig-path.sh     Wed Dec 31 16:00:00 1969
+++ fontconfig-path/fontconfig-path.sh  Sat Jan 29 00:15:37 2005
@@ -0,0 +1 @@
+export FONTCONFIG_FILE=@PREFIX@/share/fontconfig-path/fontconfig-path.conf

--- NEW FILE: fc-ghostscript-fonts.info ---
Package: fc-ghostscript-fonts
Version: 20110722
Revision: 1
Depends: fontconfig-path, ghostscript-fonts (>= 8.11-3) | system-ghostscript
Type: nosource
CompileScript: echo "No compile needed"
InstallScript: <<
 mkdir -p %i/share/doc/fc-ghostscript-fonts
 echo "This public-domain package makes the ghostscript fonts available in 
fontconfig." >%i/share/doc/fc-ghostscript-fonts/README.fc-ghostscript-fonts
 mkdir -p %i/share/fontconfig-path
 ln -s %p/share/ghostscript/fonts %i/share/fontconfig-path/ghostscript
<<
PostInstScript: fc-cache || echo Ignoring errors...
PostRmScript: fc-cache || echo Ignoring errors...
Description: Add ghostscript fonts to fontconfig search
DescDetail: <<
 Installs a symbolic link from ghostscript fonts to the appropriate place, 
 and uses fontconfig-path to make the fonts available. 

 This is closely modeled after x-ghostscript-fonts.
<<
License: Public Domain
Maintainer: Matthias Neeracher <neerac...@mac.com>



--- NEW FILE: fontconfig-path.info ---
Package: fontconfig-path
Version: 20110722
Revision: 1
Type: nosource
NoSourceDirectory: true
BuildDepends: fink (>= 0.24.12)
PatchFile: %n.patch
PatchFile-MD5: ff06c0474731a669b64bf95c4d79a1d6
PatchScript: sed 's|@PREFIX@|%p|' %{PatchFile} | patch -p1
CompileScript: echo "No compile needed"
InstallScript: <<
mkdir -p %i/share/%n
cp %n.conf %i/share/%n
mkdir -p %i/etc/profile.d
chmod a+x %n.*sh
cp %n.*sh %i/etc/profile.d
<<
PostRmScript: <<
 OLD_FONTCONFIG_FILE=/usr/X11/lib/X11/fonts/fonts.conf
 NEW_FONTCONFIG_FILE=/usr/X11/lib/X11/fontconfig/fonts.conf
 if [[ "$1" == "remove" || "$1" == "purge" ]]; then
   rm -rf %p/share/fontconfig-path
   if [ -e $NEW_FONTCONFIG_FILE ] ; then 
        FONTCONFIG_FILE=$NEW_FONTCONFIG_FILE fc-cache || echo Ignoring errors...
        else FONTCONFIG_FILE=$OLD_FONTCONFIG_FILE fc-cache || echo Ignoring 
errors...
        fi
 fi
<<
DocFiles: README
Description: Add custom directories to fontconfig search
DescUsage: <<
 If fontconfig is having trouble finding fonts, update fontconf-path to the
 latest version and then try "fink reinstall fontconfig-path", followed by
 "fink reinstall fc-ghostscript-fonts" (if fc-ghostscript fonts was installed.
<<
License: Public Domain
Maintainer: Matthias Neeracher <neerac...@mac.com>




------------------------------------------------------------------------------
10 Tips for Better Web Security
Learn 10 ways to better secure your business today. Topics covered include:
Web security, SSL, hacker attacks & Denial of Service (DoS), private keys,
security Microsoft Exchange, secure Instant Messaging, and much more.
http://www.accelacomm.com/jaw/sfnl/114/51426210/
_______________________________________________
Fink-commits mailing list
Fink-commits@lists.sourceforge.net
http://news.gmane.org/gmane.os.apple.fink.cvs

Reply via email to