commit:     5137420296af254f24781ddf852b5ae27ef2c244
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sat Mar 27 13:51:06 2021 +0000
Commit:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Mon Mar 29 08:06:16 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=51374202

media-libs/freetype: IUSE=cleartype_hinting -> cleartype-hinting

Bug: https://bugs.gentoo.org/695072
Package-Manager: Portage-3.0.17, Repoman-3.0.2
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
Closes: https://github.com/gentoo/gentoo/pull/20146
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>

 media-libs/freetype/freetype-9999.ebuild | 6 +++---
 media-libs/freetype/metadata.xml         | 2 ++
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/media-libs/freetype/freetype-9999.ebuild 
b/media-libs/freetype/freetype-9999.ebuild
index 505575341da..91ed8bacd80 100644
--- a/media-libs/freetype/freetype-9999.ebuild
+++ b/media-libs/freetype/freetype-9999.ebuild
@@ -7,7 +7,7 @@ inherit flag-o-matic libtool multilib-build multilib-minimal 
toolchain-funcs
 
 DESCRIPTION="High-quality and portable font engine"
 HOMEPAGE="https://www.freetype.org/";
-IUSE="X +adobe-cff brotli bzip2 +cleartype_hinting debug fontforge harfbuzz 
infinality +png static-libs utils"
+IUSE="X +adobe-cff brotli bzip2 +cleartype-hinting debug fontforge harfbuzz 
infinality +png static-libs utils"
 
 if [[ "${PV}" != 9999 ]] ; then
        SRC_URI="mirror://sourceforge/freetype/${P/_/}.tar.xz
@@ -124,11 +124,11 @@ src_prepare() {
        # Will be the new default for >=freetype-2.7.0
        disable_option "TT_CONFIG_OPTION_SUBPIXEL_HINTING  2"
 
-       if use infinality && use cleartype_hinting; then
+       if use infinality && use cleartype-hinting; then
                enable_option "TT_CONFIG_OPTION_SUBPIXEL_HINTING  ( 1 | 2 )"
        elif use infinality; then
                enable_option "TT_CONFIG_OPTION_SUBPIXEL_HINTING  1"
-       elif use cleartype_hinting; then
+       elif use cleartype-hinting; then
                enable_option "TT_CONFIG_OPTION_SUBPIXEL_HINTING  2"
        fi
 

diff --git a/media-libs/freetype/metadata.xml b/media-libs/freetype/metadata.xml
index 8ee62c35ac8..d27bf8abe71 100644
--- a/media-libs/freetype/metadata.xml
+++ b/media-libs/freetype/metadata.xml
@@ -12,6 +12,8 @@
        <use>
                <flag name="adobe-cff">Use Adobe CFF as default 
font-renderer</flag>
                <flag name="brotli">Enable brotli decompression support via 
<pkg>app-arch/brotli</pkg></flag>
+               <flag name="cleartype-hinting">Bytecode hinting mode for 
TrueType fonts that
+                       activates subpixel hinting (a.k.a. ClearType hinting) 
by default</flag>
                <flag name="cleartype_hinting">New bytecode hinting mode for 
TrueType fonts that
                        activates subpixel hinting (a.k.a. ClearType hinting) 
by default</flag>
                <flag name="bindist">Disable ClearType support (see 
http://freetype.org/patents.html)</flag>

Reply via email to