dev-libs/libxslt: avoid glibc226 patch on Darwin, bug #642248
authorFabian Groffen <grobian@gentoo.org>
Wed, 27 Dec 2017 19:53:01 +0000 (20:53 +0100)
committerFabian Groffen <grobian@gentoo.org>
Wed, 27 Dec 2017 19:53:11 +0000 (20:53 +0100)
Closes: https://bugs.gentoo.org/642248
Package-Manager: Portage-2.3.13, Repoman-2.3.3

dev-libs/libxslt/libxslt-1.1.30-r2.ebuild

index 13a3fe82942c3689e1c79eaf7a327921c7afff48..f303699289baab5fba2c0d4a9610176bbd74f05f 100644 (file)
@@ -15,7 +15,7 @@ LICENSE="MIT"
 SLOT="0"
 KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
 
-IUSE="crypt debug examples python static-libs"
+IUSE="crypt debug examples python static-libs elibc_Darwin"
 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
 
 RDEPEND="
@@ -52,8 +52,8 @@ src_prepare() {
        # https://bugs.gentoo.org/630784
        eapply "${FILESDIR}"/1.1.30-unbreak-xslt-config.patch
 
-       # Fix build and headers with glibc-2.26, bug 632214
-       eapply "${FILESDIR}"/${PN}-1.1.30-glibc226.patch
+       # Fix build and headers with glibc-2.26, bug 632214, breaks Darwin
+       use elibc_Darwin || eapply "${FILESDIR}"/${PN}-1.1.30-glibc226.patch
 
        mv configure.{in,ac} || die