From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 8A049138330 for ; Fri, 30 Sep 2016 20:17:56 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C8CC621C039; Fri, 30 Sep 2016 20:17:52 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9B38B21C039 for ; Fri, 30 Sep 2016 20:17:52 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4134E340AA7 for ; Fri, 30 Sep 2016 20:17:51 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1F60D248D for ; Fri, 30 Sep 2016 20:17:49 +0000 (UTC) From: "Mike Gilbert" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Gilbert" Message-ID: <1475266573.838c92297214d6330844df0b15ba61c33c27c430.floppym@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/freetype/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-libs/freetype/freetype-2.7-r1.ebuild media-libs/freetype/freetype-2.7-r2.ebuild X-VCS-Directories: media-libs/freetype/ X-VCS-Committer: floppym X-VCS-Committer-Name: Mike Gilbert X-VCS-Revision: 838c92297214d6330844df0b15ba61c33c27c430 X-VCS-Branch: master Date: Fri, 30 Sep 2016 20:17:49 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 64326e13-0d3f-40de-b09b-6ba26868d84b X-Archives-Hash: 2c25dbadc0efa32cc8fc75edb65aa750 commit: 838c92297214d6330844df0b15ba61c33c27c430 Author: Mike Gilbert gentoo org> AuthorDate: Fri Sep 30 15:48:24 2016 +0000 Commit: Mike Gilbert gentoo org> CommitDate: Fri Sep 30 20:16:13 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=838c9229 media-libs/freetype: avoid redefining TT_CONFIG_OPTION_SUBPIXEL_HINTING Adjust the enable_option function to remvoe comments instead of appending an additional line. This should resolve a build failure in sys-boot/grub. Also allow both cleartype and infinality to be enabled simultaneously, as documented in ftoption.h. Bug: https://bugs.gentoo.org/595558 Package-Manager: portage-2.3.1_p4_p550764 .../{freetype-2.7-r1.ebuild => freetype-2.7-r2.ebuild} | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/media-libs/freetype/freetype-2.7-r1.ebuild b/media-libs/freetype/freetype-2.7-r2.ebuild similarity index 93% rename from media-libs/freetype/freetype-2.7-r1.ebuild rename to media-libs/freetype/freetype-2.7-r2.ebuild index c7c0aaf..8650a68 100644 --- a/media-libs/freetype/freetype-2.7-r1.ebuild +++ b/media-libs/freetype/freetype-2.7-r2.ebuild @@ -41,8 +41,6 @@ RDEPEND="${CDEPEND} abi_x86_32? ( utils? ( !app-emulation/emul-linux-x86-xlibs[-abi_x86_32(-)] ) )" PDEPEND="infinality? ( media-libs/fontconfig-infinality )" -REQUIRED_USE="?? ( cleartype_hinting infinality )" - PATCHES=( # This is the same as the 01 patch from infinality "${FILESDIR}"/${PN}-2.7-enable-valid.patch @@ -52,27 +50,28 @@ PATCHES=( src_prepare() { enable_option() { - sed -i -e "/#define $1/a #define $1" \ + sed -i -e "/#define $1/ { s:/\* ::; s: \*/:: }" \ include/${PN}/config/ftoption.h \ || die "unable to enable option $1" } disable_option() { - sed -i -e "/#define $1/ { s:^:/*:; s:$:*/: }" \ + sed -i -e "/#define $1/ { s:^:/* :; s:$: */: }" \ include/${PN}/config/ftoption.h \ || die "unable to disable option $1" } default - if use infinality; then - # FT_CONFIG_OPTION_SUBPIXEL_RENDERING is already enabled in freetype-2.4.11 + # 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 + 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 - # Will be the new default for >=freetype-2.7.0 enable_option "TT_CONFIG_OPTION_SUBPIXEL_HINTING 2" - else - disable_option "TT_CONFIG_OPTION_SUBPIXEL_HINTING 2" fi if ! use bindist; then