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 2384A138334 for ; Wed, 29 Aug 2018 13:36:51 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 27F07E05C1; Wed, 29 Aug 2018 13:36:50 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 EFF1FE05C1 for ; Wed, 29 Aug 2018 13:36:49 +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 BE595340CB1 for ; Wed, 29 Aug 2018 13:36:46 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C3CB43BD for ; Wed, 29 Aug 2018 13:36:44 +0000 (UTC) From: "Akinori Hattori" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Akinori Hattori" Message-ID: <1535549607.cfe2bf058f9d2e61dd9ce39b46cc4df491a18ec9.hattya@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/m17n-lib/, dev-libs/m17n-lib/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/m17n-lib/files/m17n-lib-ftconfig.patch dev-libs/m17n-lib/m17n-lib-1.8.0.ebuild X-VCS-Directories: dev-libs/m17n-lib/ dev-libs/m17n-lib/files/ X-VCS-Committer: hattya X-VCS-Committer-Name: Akinori Hattori X-VCS-Revision: cfe2bf058f9d2e61dd9ce39b46cc4df491a18ec9 X-VCS-Branch: master Date: Wed, 29 Aug 2018 13:36:44 +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: b34536df-6b73-42a6-8dfb-d2780c6ffbf6 X-Archives-Hash: 8fcdd646b79f0730598c703f55cb9e6a commit: cfe2bf058f9d2e61dd9ce39b46cc4df491a18ec9 Author: Ulrich Müller gentoo org> AuthorDate: Wed Aug 29 08:47:49 2018 +0000 Commit: Akinori Hattori gentoo org> CommitDate: Wed Aug 29 13:33:27 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cfe2bf05 dev-libs/m17n-lib: use pkg-config to find freetype Closes: https://bugs.gentoo.org/664818 Package-Manager: Portage-2.3.40, Repoman-2.3.9 dev-libs/m17n-lib/files/m17n-lib-ftconfig.patch | 29 +++++++++++++++++++++++++ dev-libs/m17n-lib/m17n-lib-1.8.0.ebuild | 1 + 2 files changed, 30 insertions(+) diff --git a/dev-libs/m17n-lib/files/m17n-lib-ftconfig.patch b/dev-libs/m17n-lib/files/m17n-lib-ftconfig.patch new file mode 100644 index 00000000000..203f836bf94 --- /dev/null +++ b/dev-libs/m17n-lib/files/m17n-lib-ftconfig.patch @@ -0,0 +1,29 @@ +--- a/configure.ac ++++ b/configure.ac +@@ -210,21 +210,20 @@ + dnl Check for Freetype2 usability. + AC_ARG_WITH(freetype, + AS_HELP_STRING([--with-freetype],[enable Freetype support])) +-AC_CHECK_PROG(HAVE_FREETYPE_CONFIG, freetype-config, yes) +-if test "x$with_freetype" != "xno" -a "x$HAVE_FREETYPE_CONFIG" = "xyes"; then +- FREETYPE_INC=`freetype-config --cflags` ++if test "x$with_freetype" != "xno"; then ++ PKG_CHECK_MODULES([FT2], [freetype2]) + save_CPPFLAGS="$CPPFLAGS" +- CPPFLAGS="$CPPFLAGS $FREETYPE_INC" ++ CPPFLAGS="$CPPFLAGS $FT2_CFLAGS" + AC_CHECK_HEADER(ft2build.h, HAVE_FREETYPE=yes, + HAVE_FREETYPE=no CPPFLAGS="$save_CPPFLAGS") + if test "x$HAVE_FREETYPE" = "xyes" ; then + save_LIBS="$LIBS" +- LIBS="$LIBS `freetype-config --libs`" ++ LIBS="$LIBS $FT2_LIBS" + AC_CHECK_LIB(freetype, FT_Init_FreeType, HAVE_FREETYPE=yes, + HAVE_FREETYPE=no) + LIBS="$save_LIBS" + if test "x$HAVE_FREETYPE" = "xyes"; then +- FREETYPE_LD_FLAGS=`freetype-config --libs` ++ FREETYPE_LD_FLAGS=$FT2_LIBS + AC_DEFINE(HAVE_FREETYPE, 1, + [Define to 1 if you have FreeType library and header file.]) + M17N_EXT_LIBS="$M17N_EXT_LIBS freetype" diff --git a/dev-libs/m17n-lib/m17n-lib-1.8.0.ebuild b/dev-libs/m17n-lib/m17n-lib-1.8.0.ebuild index c98449bc342..767f8eabe5f 100644 --- a/dev-libs/m17n-lib/m17n-lib-1.8.0.ebuild +++ b/dev-libs/m17n-lib/m17n-lib-1.8.0.ebuild @@ -36,6 +36,7 @@ DEPEND="${RDEPEND} PATCHES=( "${FILESDIR}"/${PN}-configure.patch "${FILESDIR}"/${PN}-freetype.patch + "${FILESDIR}"/${PN}-ftconfig.patch "${FILESDIR}"/${PN}-ispell.patch "${FILESDIR}"/${PN}-parallel-make.patch "${FILESDIR}"/${PN}-pkg-config.patch