diff options
author | Mamoru Komachi <usata@gentoo.org> | 2004-06-21 13:11:54 +0000 |
---|---|---|
committer | Mamoru Komachi <usata@gentoo.org> | 2004-06-21 13:11:54 +0000 |
commit | 0111181a5cdb3f7369f351bc8582885a15d9d70e (patch) | |
tree | 43d2713e586a6bbb79a1ded01ca6e627c1100d96 /media-fonts/hkscs-ming/hkscs-ming-1.0_pre20030919-r1.ebuild | |
parent | * mm-sources: version bump (diff) | |
download | gentoo-2-0111181a5cdb3f7369f351bc8582885a15d9d70e.tar.gz gentoo-2-0111181a5cdb3f7369f351bc8582885a15d9d70e.tar.bz2 gentoo-2-0111181a5cdb3f7369f351bc8582885a15d9d70e.zip |
font.eclassify
Diffstat (limited to 'media-fonts/hkscs-ming/hkscs-ming-1.0_pre20030919-r1.ebuild')
-rw-r--r-- | media-fonts/hkscs-ming/hkscs-ming-1.0_pre20030919-r1.ebuild | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/media-fonts/hkscs-ming/hkscs-ming-1.0_pre20030919-r1.ebuild b/media-fonts/hkscs-ming/hkscs-ming-1.0_pre20030919-r1.ebuild new file mode 100644 index 000000000000..f7e7341abef0 --- /dev/null +++ b/media-fonts/hkscs-ming/hkscs-ming-1.0_pre20030919-r1.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2004 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-fonts/hkscs-ming/hkscs-ming-1.0_pre20030919-r1.ebuild,v 1.1 2004/06/21 13:11:54 usata Exp $ + +inherit rpm font + +RESTRICT="nomirror nostrip" + +RPM_V=1.0 + +DESCRIPTION="Hong Kong SAR Government Official Reference Chinese Font that implements ISO10646 and HKSCS-2001" +HOMEPAGE="http://www.info.gov.hk/digital21/eng/hkscs/hkscs_iso.html" +SRC_URI="http://www.info.gov.hk/digital21/chi/hkscs/download/linux_redhat/setup.bin" + +LICENSE="HKSCS" +SLOT="0" +KEYWORDS="~x86 ~ppc" +IUSE="" + +DEPEND="" + +S=${WORKDIR} +FONT_S="${S}/usr/share/inputmethod" +FONT_SUFFIX="ttf" + +src_unpack() { + # complicated and convoluted unpack procedure + LINENUMBER=237 + cd ${S}; tail -n +${LINENUMBER} ${DISTDIR}/${A} | tar zxv || die "unpack failed" + + # then we rpm_unpack the fonts package + rpm_unpack ${S}/package_rh/imfont-${RPM_V}-0.i386.rpm +} + +src_compile() { + return +} + +pkg_postinst() { + einfo "The font name installed is 'Ming(for ISO10646)'. To add make it" + einfo "the default Chinese font, you should add entries to your" + einfo "/etc/fonts/local.conf similar to:" + einfo " " + einfo "<alias>" + einfo " <family>Luxi Sans</family>" + einfo " <family>Bitstream Vera Sans</family>" + einfo " <family>Ming(for ISO10646)</family>" + einfo " <default><family>sans-serif</family></default>" + einfo "</alias>" + einfo " " +} |