diff options
author | Fabian Groffen <grobian@gentoo.org> | 2017-12-19 18:49:09 +0100 |
---|---|---|
committer | Fabian Groffen <grobian@gentoo.org> | 2017-12-19 18:49:43 +0100 |
commit | da9631f509b21f34f51ac2780589f5d64161f8d6 (patch) | |
tree | 574863db44795ed67b7d84e9e86abed3bbbfa60c /app-crypt | |
parent | sys-fs/udisks: use disted release tarball, avoids full gtk-doc dependency (diff) | |
download | gentoo-da9631f509b21f34f51ac2780589f5d64161f8d6.tar.gz gentoo-da9631f509b21f34f51ac2780589f5d64161f8d6.tar.bz2 gentoo-da9631f509b21f34f51ac2780589f5d64161f8d6.zip |
app-crypt/gpgme: drop obsolete hacks for Darwin, shorten socketpath length
Package-Manager: Portage-2.3.13, Repoman-2.3.3
Diffstat (limited to 'app-crypt')
-rw-r--r-- | app-crypt/gpgme/gpgme-1.10.0.ebuild | 24 |
1 files changed, 9 insertions, 15 deletions
diff --git a/app-crypt/gpgme/gpgme-1.10.0.ebuild b/app-crypt/gpgme/gpgme-1.10.0.ebuild index 513d108c1747..d10d5c4e145d 100644 --- a/app-crypt/gpgme/gpgme-1.10.0.ebuild +++ b/app-crypt/gpgme/gpgme-1.10.0.ebuild @@ -48,6 +48,15 @@ pkg_setup() { addpredict /run/user/$(id -u)/gnupg } +src_prepare() { + default + + # Fix too long socket path for gpg-agent, this is mainly a problem + # for Prefix, where the builddir is deeper in the FS tree. + sed -i -e '/GNUPGHOME/s:$(abs_builddir):'"${T}"':' \ + tests/gpg/Makefile.{am,in} || die +} + src_configure() { local languages=() use common-lisp && languages+=( "cl" ) @@ -59,21 +68,6 @@ 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 - - # Work around bug 601834 - use python && append-cflags -D_DARWIN_C_SOURCE - fi - econf \ --enable-languages="${languages[*]}" \ $(use_enable static-libs static) |