summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2021-03-20 20:28:36 +0100
committerAndreas Sturmlechner <asturm@gentoo.org>2021-03-21 20:05:38 +0100
commit6dec6eae6de4add853f5f20f93300887aff2a558 (patch)
treea593d8ac9a7537210023376690f7c0c8d95aa8a8 /media-fonts/wqy-zenhei
parentmedia-fonts/wqy-unibit: EAPI-7 bump, fix HOMEPAGE (diff)
downloadgentoo-6dec6eae6de4add853f5f20f93300887aff2a558.tar.gz
gentoo-6dec6eae6de4add853f5f20f93300887aff2a558.tar.bz2
gentoo-6dec6eae6de4add853f5f20f93300887aff2a558.zip
media-fonts/wqy-zenhei: EAPI-7 bump
Package-Manager: Portage-3.0.17, Repoman-3.0.2 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'media-fonts/wqy-zenhei')
-rw-r--r--media-fonts/wqy-zenhei/files/44-wqy-zenhei.conf.patch4
-rw-r--r--media-fonts/wqy-zenhei/wqy-zenhei-0.9.46.ebuild24
2 files changed, 13 insertions, 15 deletions
diff --git a/media-fonts/wqy-zenhei/files/44-wqy-zenhei.conf.patch b/media-fonts/wqy-zenhei/files/44-wqy-zenhei.conf.patch
index 6c90475d9e4f..0c77fa737990 100644
--- a/media-fonts/wqy-zenhei/files/44-wqy-zenhei.conf.patch
+++ b/media-fonts/wqy-zenhei/files/44-wqy-zenhei.conf.patch
@@ -1,5 +1,5 @@
---- 44-wqy-zenhei.conf.old 2014-02-14 00:41:31.277115976 +0100
-+++ 44-wqy-zenhei.conf 2014-02-14 00:43:18.985123207 +0100
+--- a/44-wqy-zenhei.conf
++++ b/44-wqy-zenhei.conf
@@ -4,9 +4,35 @@
<fontconfig>
<!-- modified by Madsen@SMTH -->
diff --git a/media-fonts/wqy-zenhei/wqy-zenhei-0.9.46.ebuild b/media-fonts/wqy-zenhei/wqy-zenhei-0.9.46.ebuild
index 3c6b62a97aa8..956649284083 100644
--- a/media-fonts/wqy-zenhei/wqy-zenhei-0.9.46.ebuild
+++ b/media-fonts/wqy-zenhei/wqy-zenhei-0.9.46.ebuild
@@ -1,29 +1,29 @@
-# Copyright 2007-2020 Gentoo Authors
+# Copyright 2007-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=5
+EAPI=7
+
DISABLE_AUTOFORMATTING=true
-inherit font readme.gentoo
+inherit font readme.gentoo-r1
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"
+S="${WORKDIR}/${PN}"
LICENSE="GPL-2-with-font-exception"
SLOT="0"
KEYWORDS="amd64 arm ~arm64 ppc ppc64 x86"
IUSE=""
-S="${WORKDIR}/${PN}"
-FONT_S="${S}"
-FONT_SUFFIX="ttc"
+# Only installs fonts
+RESTRICT="binchecks strip test"
+
FONT_CONF=(
43-wqy-zenhei-sharp.conf
44-wqy-zenhei.conf
)
-
-# Only installs fonts
-RESTRICT="binchecks strip test"
+FONT_SUFFIX="ttc"
DOC_CONTENTS="This font installs two fontconfig configuration files.
@@ -33,9 +33,7 @@ To activate preferred rendering, run:
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"
-}
+PATCHES=( "${FILESDIR}/44-wqy-zenhei.conf.patch" )
src_compile() {
:
@@ -49,5 +47,5 @@ src_install() {
pkg_postinst() {
unset FONT_CONF # override default message
font_pkg_postinst
- readme.gentoo_pkg_postinst
+ readme.gentoo_print_elog
}