From 8c364c784966be1700ea39ae45028f3e9be9cae0 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Tue, 27 Mar 2018 22:40:05 +0100 Subject: gentoo resync : 27.03.2018 --- sys-devel/libtool/libtool-9999.ebuild | 34 +++++++++++++++++++++++----------- 1 file changed, 23 insertions(+), 11 deletions(-) (limited to 'sys-devel/libtool/libtool-9999.ebuild') diff --git a/sys-devel/libtool/libtool-9999.ebuild b/sys-devel/libtool/libtool-9999.ebuild index 13af7fa0f519..140bf7a5cb41 100644 --- a/sys-devel/libtool/libtool-9999.ebuild +++ b/sys-devel/libtool/libtool-9999.ebuild @@ -1,11 +1,11 @@ # Copyright 1999-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -EAPI="5" +EAPI=6 LIBTOOLIZE="true" #225559 WANT_LIBTOOL="none" -inherit autotools epatch epunt-cxx multilib unpacker prefix +inherit autotools epunt-cxx multilib unpacker prefix if [[ ${PV} == "9999" ]] ; then EGIT_REPO_URI="git://git.savannah.gnu.org/${PN}.git @@ -33,23 +33,35 @@ DEPEND="${RDEPEND} app-arch/xz-utils" [[ ${PV} == "9999" ]] && DEPEND+=" sys-apps/help2man" +PATCHES=( + "${FILESDIR}"/${PN}-2.4.3-use-linux-version-in-fbsd.patch #109105 + "${FILESDIR}"/${PN}-2.4.6-mint.patch + "${FILESDIR}"/${PN}-2.2.6a-darwin-module-bundle.patch + "${FILESDIR}"/${PN}-2.4.6-darwin-use-linux-version.patch +) + src_unpack() { if [[ ${PV} == "9999" ]] ; then git-r3_src_unpack - cd "${S}" - ./bootstrap || die else unpacker_src_unpack fi } src_prepare() { + if [[ "${PV}" = 9999 ]] ; then + eapply "${FILESDIR}"/${PN}-2.4.6-pthread.patch #650876 + ./bootstrap || die + else + PATCHES+=( + "${FILESDIR}"/${P}-pthread_bootstrapped.patch #650876 + ) + fi + use vanilla && return 0 - epatch "${FILESDIR}"/${PN}-2.4.3-use-linux-version-in-fbsd.patch #109105 - epatch "${FILESDIR}"/${PN}-2.4.6-mint.patch - epatch "${FILESDIR}"/${PN}-2.2.6a-darwin-module-bundle.patch - epatch "${FILESDIR}"/${PN}-2.4.6-darwin-use-linux-version.patch + default + if use prefix ; then # seems that libtool has to know about EPREFIX a little bit # better, since it fails to find prefix paths to search libs @@ -58,7 +70,7 @@ src_prepare() { # (argh...). This could also be fixed by making the gcc wrapper # return the correct result for -print-search-dirs (doesn't # include prefix dirs ...). - epatch "${FILESDIR}"/${PN}-2.2.10-eprefix.patch + eapply "${FILESDIR}"/${PN}-2.2.10-eprefix.patch eprefixify m4/libtool.m4 fi pushd libltdl >/dev/null @@ -79,10 +91,10 @@ src_configure() { # to find a bash shell. if /bin/sh is bash, it uses that. this can # cause problems for people who switch /bin/sh on the fly to other # shells, so just force libtool to use /bin/bash all the time. - export CONFIG_SHELL=$(type -P bash) + export CONFIG_SHELL="$(type -P bash)" # Do not bother hardcoding the full path to sed. Just rely on $PATH. #574550 - export ac_cv_path_SED=$(basename "$(type -P sed)") + export ac_cv_path_SED="$(basename "$(type -P sed)")" local myconf [[ ${CHOST} == *-darwin* ]] && myconf="--program-prefix=g" -- cgit v1.2.3