diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /media-fonts/wqy-zenhei/wqy-zenhei-0.9.46.ebuild |
reinit the tree, so we can have metadata
Diffstat (limited to 'media-fonts/wqy-zenhei/wqy-zenhei-0.9.46.ebuild')
-rw-r--r-- | media-fonts/wqy-zenhei/wqy-zenhei-0.9.46.ebuild | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/media-fonts/wqy-zenhei/wqy-zenhei-0.9.46.ebuild b/media-fonts/wqy-zenhei/wqy-zenhei-0.9.46.ebuild new file mode 100644 index 000000000000..1ffc48121423 --- /dev/null +++ b/media-fonts/wqy-zenhei/wqy-zenhei-0.9.46.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +DISABLE_AUTOFORMATTING=true +inherit font readme.gentoo + +DESCRIPTION="WenQuanYi Hei-Ti Style (sans-serif) Chinese outline font" +HOMEPAGE="http://wenq.org/wqy2/index.cgi?ZenHei" +SRC_URI="mirror://sourceforge/project/wqy/${PN}-snapshot/${PV}-May/${P}-May.tar.bz2" + +LICENSE="GPL-2-with-font-exception" +SLOT="0" +KEYWORDS="amd64 arm ppc ppc64 x86 ~x86-fbsd" +IUSE="" + +S="${WORKDIR}/${PN}" +FONT_S="${S}" +FONT_SUFFIX="ttc" +FONT_CONF=( + 43-wqy-zenhei-sharp.conf + 44-wqy-zenhei.conf +) + +# Only installs fonts +RESTRICT="binchecks strip test" + +DOC_CONTENTS="This font installs two fontconfig configuration files. + +To activate preferred rendering, run: + eselect fontconfig enable 44-wqy-zenhei.conf + +To make the font only use embedded bitmap fonts when available, run: + eselect fontconfig enable 43-wqy-zenhei-sharp.conf" + +src_prepare() { + epatch "${FILESDIR}/44-wqy-zenhei.conf.patch" +} + +src_compile() { + : +} + +src_install() { + font_src_install + readme.gentoo_create_doc +} + +pkg_postinst() { + unset FONT_CONF # override default message + font_pkg_postinst + readme.gentoo_pkg_postinst +} |