# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ IUSE="" RPM_P="${P}-705.noarch" DESCRIPTION="Fonts by SGI" HOMEPAGE="http://www.suse.com/us/private/products/suse_linux/prof/packages_professional/sgi-fonts.html" SRC_URI="ftp://ftp.suse.com/pub/suse/i386/9.1/suse/noarch/${RPM_P}.rpm" LICENSE="X11 MIT" SLOT="0" KEYWORDS="~x86 ~ppc ~alpha ~mips ~amd64 ~hppa ~ia64 ~ppc64" DEPEND="virtual/x11 app-arch/rpm2targz app-arch/tar" S="${WORKDIR}/usr/X11R6/lib/X11/fonts/misc/sgi" FONTDIR="/usr/share/fonts/sgi" src_unpack() { rpm2targz "${DISTDIR}/${RPM_P}.rpm" &> /dev/null || die tar zxf "${RPM_P}.tar.gz" || die } src_install() { insinto ${FONTDIR} doins *.pcf.gz || die "${S}" doins "fonts.alias" /usr/X11R6/bin/mkfontscale ${D}/${FONTDIR} /usr/X11R6/bin/mkfontdir ${D}/${FONTDIR} } pkg_postinst() { einfo einfo "You need to add the following line into 'Section \"Files\"' in" einfo "your X config and restart X Window System to use these fonts." einfo einfo "\t FontPath \"${FONTDIR}\"" einfo } pkg_postrm(){ einfo einfo "You need to remove following line from 'Section \"Files\"' in" einfo "X config to unmerge this package completely." einfo einfo "\t FontPath \"${FONTDIR}\"" einfo }