gimp-sharefonts _unstable_ port information

Package: gimp-sharefonts
Version: 0.10
Revision: 3
Depends: xfontpath
Source: mirror:gimp:fonts/sharefonts-%v.tar.gz
Source-MD5: fd407f15efc7f06e320c10fd73d66c1f
SourceDirectory: sharefont
CompileScript: <<
<<
InstallScript: <<
#!/bin/sh -ev
# hot stinkin' DAMN this is ugly
install -d -m 755 %d`%p/bin/xfontpath basedir`/sharefont
install -c -m 644 * %d`%p/bin/xfontpath basedir`/sharefont
<<
PostInstScript: <<
if test -x %p/bin/xfontpath; then
%p/bin/xfontpath --silent install sharefont
fi
if test -f /etc/X11/XftConfig; then
if grep -v -q `%p/bin/xfontpath basedir`/sharefont /etc/X11/XftConfig; then
echo dir \"`%p/bin/xfontpath basedir`/sharefont\" >> /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 sharefont
fi
if test -f /etc/X11/XftConfig; then
if grep -q `%p/bin/xfontpath basedir`/sharefont /etc/X11/XftConfig; then
if grep -v `%p/bin/xfontpath basedir`/sharefont /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: Shareware scalable X11 fonts
DescDetail: <<
A set of non-free Type1 fonts from gimp.org.
<<
License: Restrictive
Maintainer: Alexander Strange