1 |
commit: b8217042f569525d43da8c6dbd9e106056159c0d |
2 |
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jan 3 09:26:22 2017 +0000 |
4 |
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jan 3 09:26:56 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b8217042 |
7 |
|
8 |
app-crypt/gpgme: fix compilation on Darwin (C++11) |
9 |
|
10 |
Package-Manager: portage-2.2.28-prefix |
11 |
|
12 |
app-crypt/gpgme/gpgme-1.8.0-r2.ebuild | 16 ++++++++++++++-- |
13 |
1 file changed, 14 insertions(+), 2 deletions(-) |
14 |
|
15 |
diff --git a/app-crypt/gpgme/gpgme-1.8.0-r2.ebuild b/app-crypt/gpgme/gpgme-1.8.0-r2.ebuild |
16 |
index 80b3f80..715c493 100644 |
17 |
--- a/app-crypt/gpgme/gpgme-1.8.0-r2.ebuild |
18 |
+++ b/app-crypt/gpgme/gpgme-1.8.0-r2.ebuild |
19 |
@@ -1,4 +1,4 @@ |
20 |
-# Copyright 1999-2016 Gentoo Foundation |
21 |
+# Copyright 1999-2017 Gentoo Foundation |
22 |
# Distributed under the terms of the GNU General Public License v2 |
23 |
# $Id$ |
24 |
|
25 |
@@ -7,7 +7,7 @@ EAPI="6" |
26 |
PYTHON_COMPAT=( python2_7 python3_{4,5} ) |
27 |
DISTUTILS_OPTIONAL=1 |
28 |
|
29 |
-inherit distutils-r1 eutils qmake-utils |
30 |
+inherit distutils-r1 eutils flag-o-matic qmake-utils |
31 |
|
32 |
DESCRIPTION="GnuPG Made Easy is a library for making GnuPG easier to use" |
33 |
HOMEPAGE="http://www.gnupg.org/related_software/gpgme" |
34 |
@@ -64,6 +64,18 @@ src_configure() { |
35 |
export MOC="$(qt5_get_bindir)/moc" |
36 |
fi |
37 |
|
38 |
+ if [[ ${CHOST} == *-darwin* ]] ; then |
39 |
+ # FIXME: I don't know how to select on C++11 (libc++) here, but |
40 |
+ # I do know all Darwin users are using C++11. This should also |
41 |
+ # apply to GCC 4.7+ with libc++, and basically anyone targetting |
42 |
+ # it. |
43 |
+ |
44 |
+ # The C-standard doesn't define strdup, and C++11 drops it |
45 |
+ # resulting in an implicit declaration of strdup error. Since |
46 |
+ # it is in POSIX raise the feature set to that. |
47 |
+ append-cxxflags -D_POSIX_C_SOURCE=200112L |
48 |
+ fi |
49 |
+ |
50 |
econf \ |
51 |
--enable-languages="${languages[*]}" \ |
52 |
$(use_enable static-libs static) |