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 A5ADE1382C5 for ; Sun, 6 May 2018 08:29:56 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D6202E089B; Sun, 6 May 2018 08:29:55 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A3982E089B for ; Sun, 6 May 2018 08:29:55 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 7E3E9335C88 for ; Sun, 6 May 2018 08:29:54 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id DD88033 for ; Sun, 6 May 2018 08:29:52 +0000 (UTC) From: "Lars Wendler" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Lars Wendler" Message-ID: <1525595386.fdf3034423cf76c8a4ee2fc1abfc30aa539bd3dc.polynomial-c@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: games-engines/scummvm/files/, games-engines/scummvm/ X-VCS-Repository: repo/gentoo X-VCS-Files: games-engines/scummvm/files/scummvm-2.0.0-freetype_pkgconfig.patch games-engines/scummvm/scummvm-2.0.0.ebuild X-VCS-Directories: games-engines/scummvm/ games-engines/scummvm/files/ X-VCS-Committer: polynomial-c X-VCS-Committer-Name: Lars Wendler X-VCS-Revision: fdf3034423cf76c8a4ee2fc1abfc30aa539bd3dc X-VCS-Branch: master Date: Sun, 6 May 2018 08:29:52 +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: 8efcb0e1-b49c-4f0d-b2c9-158180ee8f25 X-Archives-Hash: b6759b18caa655c8818b7d0f33c18e9e commit: fdf3034423cf76c8a4ee2fc1abfc30aa539bd3dc Author: Lars Wendler gentoo org> AuthorDate: Sun May 6 08:29:21 2018 +0000 Commit: Lars Wendler gentoo org> CommitDate: Sun May 6 08:29:46 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fdf30344 games-engines/scummvm: Added experimental freetype_pkgconfig patch Bug: https://bugs.gentoo.org/655032 Package-Manager: Portage-2.3.36, Repoman-2.3.9 .../files/scummvm-2.0.0-freetype_pkgconfig.patch | 50 ++++++++++++++++++++++ games-engines/scummvm/scummvm-2.0.0.ebuild | 6 ++- 2 files changed, 54 insertions(+), 2 deletions(-) diff --git a/games-engines/scummvm/files/scummvm-2.0.0-freetype_pkgconfig.patch b/games-engines/scummvm/files/scummvm-2.0.0-freetype_pkgconfig.patch new file mode 100644 index 00000000000..669cffc945c --- /dev/null +++ b/games-engines/scummvm/files/scummvm-2.0.0-freetype_pkgconfig.patch @@ -0,0 +1,50 @@ +From 86c7fd67e5ab2e721de8493d162d7605b1b08823 Mon Sep 17 00:00:00 2001 +From: Lars Wendler +Date: Sun, 6 May 2018 10:22:48 +0200 +Subject: [PATCH] Use pkg-config to find freetype if freetype-config is not + available + +--- + configure | 17 +++++++++++------ + 1 file changed, 11 insertions(+), 6 deletions(-) + +diff --git a/configure b/configure +index 8e2a387acc..e3c15a9a2a 100755 +--- a/configure ++++ b/configure +@@ -4674,7 +4674,13 @@ if test "$_freetype2" != "no"; then + find_freetypeconfig + + if test -z "$_freetypeconfig"; then +- _freetype2=no ++ if pkg-config --exists freetype2; then ++ FREETYPE2_LIBS=`pkg-config --libs freetype2` ++ FREETYPE2_CFLAGS=`pkg-config --cflags freetype2` ++ _freetype2=yes ++ else ++ _freetype2=no ++ fi + else + # Since 2.3.12, freetype-config prepends $SYSROOT to everything. + # This means we can't pass it a --prefix that includes $SYSROOT. +@@ -4714,13 +4720,12 @@ EOF + fi + cc_check_clean + fi +- +- if test "$_freetype2" = "yes"; then +- append_var LIBS "$FREETYPE2_LIBS" +- append_var INCLUDES "$FREETYPE2_CFLAGS" +- fi + fi + ++ if test "$_freetype2" = "yes"; then ++ append_var LIBS "$FREETYPE2_LIBS" ++ append_var INCLUDES "$FREETYPE2_CFLAGS" ++ fi + fi + + echocheck "FreeType2" +-- +2.17.0 + diff --git a/games-engines/scummvm/scummvm-2.0.0.ebuild b/games-engines/scummvm/scummvm-2.0.0.ebuild index 4f775bc1705..0df104f23aa 100644 --- a/games-engines/scummvm/scummvm-2.0.0.ebuild +++ b/games-engines/scummvm/scummvm-2.0.0.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2017 Gentoo Foundation +# Copyright 1999-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=6 @@ -32,7 +32,9 @@ DEPEND="${RDEPEND} app-arch/xz-utils x86? ( dev-lang/nasm )" -S=${WORKDIR}/${P/_/} +S="${WORKDIR}/${P/_/}" + +PATCHES=( "${FILESDIR}/${PN}-2.0.0-freetype_pkgconfig.patch" ) src_prepare() { default