# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-fonts/baekmuk-fonts/baekmuk-fonts-2.1-r1.ebuild,v 1.14 2004/11/04 05:25:47 vapier Exp $ DESCRIPTION="Korean Baekmuk Font" HOMEPAGE="http://kldp.net/projects/baekmuk/" SRC_URI="http://gentoo.or.kr/distfiles/baekmuk-fonts/${P}.tar.gz" LICENSE="BAEKMUK" SLOT="0" KEYWORDS="alpha amd64 arm hppa ia64 mips ppc ppc64 sparc x86" IUSE="X truetype" DEPEND="virtual/x11 truetype? ( virtual/xft )" RDEPEND="X? ( virtual/x11 truetype? ( virtual/xft ) )" FONTDIR="/usr/share/fonts/baekmuk" TTFONTDIR="/usr/share/fonts/ttf/korean/baekmuk" src_compile() { mkdir pcf for i in bdf/*.bdf ; do echo "Converting ${i##*/} into pcf format ..." bdftopcf $i | gzip -c -9 > ${i//bdf/pcf}.gz || die done } src_install () { insinto ${FONTDIR} doins pcf/* || die if use X ; then mkfontdir ${D}${FONTDIR} if use truetype ; then insinto ${TTFONTDIR} doins ttf/* || die mkfontscale ${D}${TTFONTDIR} fc-cache ${D}${TTFONTDIR} fi fi # these files seem to be 0 byte?? #dodoc README COPYRIGHT COPYRIGHT.ks hconfig.ps } pkg_postinst() { if use X ; then einfo einfo "You MUST add the path of Baekmuk fonts in /etc/X11/XF86Config" einfo "" einfo "Section \"Files\"" einfo "\tFontPath \"${FONTDIR}\"" use truetype >/dev/null 2>&1 && \ einfo "\tFontPath \"${TTFONTDIR}\"" einfo "" einfo "And you must restart your X server." einfo "" fi }