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 55DB2139085 for ; Tue, 3 Jan 2017 09:27:09 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8F7DBE0CF0; Tue, 3 Jan 2017 09:27:08 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 67B2EE0CF0 for ; Tue, 3 Jan 2017 09:27:08 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 A3A91340DC7 for ; Tue, 3 Jan 2017 09:27:07 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1F7BC24E8 for ; Tue, 3 Jan 2017 09:27:06 +0000 (UTC) From: "Fabian Groffen" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Fabian Groffen" Message-ID: <1483435616.b8217042f569525d43da8c6dbd9e106056159c0d.grobian@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-crypt/gpgme/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-crypt/gpgme/gpgme-1.8.0-r2.ebuild X-VCS-Directories: app-crypt/gpgme/ X-VCS-Committer: grobian X-VCS-Committer-Name: Fabian Groffen X-VCS-Revision: b8217042f569525d43da8c6dbd9e106056159c0d X-VCS-Branch: master Date: Tue, 3 Jan 2017 09:27:06 +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: 93b4406f-1429-4e63-ba27-6fb46b789ce7 X-Archives-Hash: 762be48adc037a8a8cda20b360e335ff commit: b8217042f569525d43da8c6dbd9e106056159c0d Author: Fabian Groffen gentoo org> AuthorDate: Tue Jan 3 09:26:22 2017 +0000 Commit: Fabian Groffen gentoo org> CommitDate: Tue Jan 3 09:26:56 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b8217042 app-crypt/gpgme: fix compilation on Darwin (C++11) Package-Manager: portage-2.2.28-prefix app-crypt/gpgme/gpgme-1.8.0-r2.ebuild | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/app-crypt/gpgme/gpgme-1.8.0-r2.ebuild b/app-crypt/gpgme/gpgme-1.8.0-r2.ebuild index 80b3f80..715c493 100644 --- a/app-crypt/gpgme/gpgme-1.8.0-r2.ebuild +++ b/app-crypt/gpgme/gpgme-1.8.0-r2.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2016 Gentoo Foundation +# Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ @@ -7,7 +7,7 @@ EAPI="6" PYTHON_COMPAT=( python2_7 python3_{4,5} ) DISTUTILS_OPTIONAL=1 -inherit distutils-r1 eutils qmake-utils +inherit distutils-r1 eutils flag-o-matic qmake-utils DESCRIPTION="GnuPG Made Easy is a library for making GnuPG easier to use" HOMEPAGE="http://www.gnupg.org/related_software/gpgme" @@ -64,6 +64,18 @@ src_configure() { export MOC="$(qt5_get_bindir)/moc" fi + if [[ ${CHOST} == *-darwin* ]] ; then + # FIXME: I don't know how to select on C++11 (libc++) here, but + # I do know all Darwin users are using C++11. This should also + # apply to GCC 4.7+ with libc++, and basically anyone targetting + # it. + + # The C-standard doesn't define strdup, and C++11 drops it + # resulting in an implicit declaration of strdup error. Since + # it is in POSIX raise the feature set to that. + append-cxxflags -D_POSIX_C_SOURCE=200112L + fi + econf \ --enable-languages="${languages[*]}" \ $(use_enable static-libs static)