the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: gimp-freefonts
Version: 0.10
Revision: 3
Depends: xfontpath
Source: mirror:gimp:gimp/fonts/freefonts-%v.tar.gz
Source-MD5: a547b5b861d6eb138394bb83748d4eee
SourceDirectory: freefont
CompileScript: <<
<<
InstallScript: <<
#!/bin/sh -ev
# hot stinkin' DAMN this is ugly
install -d -m 755 %d`%p/bin/xfontpath basedir`/freefont
install -c -m 644 * %d`%p/bin/xfontpath basedir`/freefont
<<
PostInstScript: <<
if test -x %p/bin/xfontpath; then
%p/bin/xfontpath --silent install freefont
fi
if test -f /etc/X11/XftConfig; then
if grep -v -q `%p/bin/xfontpath basedir`/freefont /etc/X11/XftConfig; then
echo dir \"`%p/bin/xfontpath basedir`/freefont\" >> /etc/X11/XftConfig
fi
fi
echo "All done. You may need to restart X to get antialiased fonts"
echo "in some applications."
<<
PostRmScript: <<
if test -x %p/bin/xfontpath; then
%p/bin/xfontpath --silent remove freefont
fi
if test -f /etc/X11/XftConfig; then
if grep -q `%p/bin/xfontpath basedir`/freefont /etc/X11/XftConfig; then
if grep -v `%p/bin/xfontpath basedir`/freefont /etc/X11/XftConfig > /etc/X11/XftConfig.tmp; then
mv /etc/X11/XftConfig.tmp /etc/X11/XftConfig
else
echo "an error occurred removing your font settings from /etc/X11/XftConfig"
fi
fi
fi
<<
Description: Freeware scalable X11 fonts
DescDetail: <<
A set of free Type1 fonts from gimp.org.
<<
License: Public Domain
Maintainer: Alexander Strange