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 287DB139085 for ; Tue, 20 Dec 2016 14:18:28 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6E2A021C082; Tue, 20 Dec 2016 14:18:27 +0000 (UTC) Received: from smtp.gentoo.org (dev.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 4B91321C082 for ; Tue, 20 Dec 2016 14:18:27 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 3558D34105A for ; Tue, 20 Dec 2016 14:18:26 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9898824AB for ; Tue, 20 Dec 2016 14:18:24 +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: <1482243471.c2e644a316368ec1965e2be96f9f2f811288409f.grobian@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/gmp/gmp-6.1.2.ebuild X-VCS-Directories: dev-libs/gmp/ X-VCS-Committer: grobian X-VCS-Committer-Name: Fabian Groffen X-VCS-Revision: c2e644a316368ec1965e2be96f9f2f811288409f X-VCS-Branch: master Date: Tue, 20 Dec 2016 14:18:24 +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: 26b4c2d1-f373-4284-9e4a-366e39c3aacf X-Archives-Hash: 461a75ea55dd721aeed573761af3218c commit: c2e644a316368ec1965e2be96f9f2f811288409f Author: Fabian Groffen gentoo org> AuthorDate: Tue Dec 20 14:17:51 2016 +0000 Commit: Fabian Groffen gentoo org> CommitDate: Tue Dec 20 14:17:51 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c2e644a3 dev-libs/gmp: add Prefix support Package-Manager: portage-2.3.0 dev-libs/gmp/gmp-6.1.2.ebuild | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/dev-libs/gmp/gmp-6.1.2.ebuild b/dev-libs/gmp/gmp-6.1.2.ebuild index 48abb3c..5d10200 100644 --- a/dev-libs/gmp/gmp-6.1.2.ebuild +++ b/dev-libs/gmp/gmp-6.1.2.ebuild @@ -18,7 +18,7 @@ SRC_URI="ftp://ftp.gmplib.org/pub/${MY_P}/${MY_P}.tar.xz LICENSE="|| ( LGPL-3+ GPL-2+ )" # The subslot reflects the C & C++ SONAMEs. SLOT="0/10.4" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~ppc-aix ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" IUSE="+asm doc cxx pgo static-libs" DEPEND="sys-devel/m4 @@ -43,8 +43,8 @@ src_prepare() { # So, to avoid patching the source constantly, wrap things up. mv configure configure.wrapped || die cat <<-\EOF > configure - #!/bin/sh - exec env ABI="${GMPABI}" "$0.wrapped" "$@" + #!/usr/bin/env sh + exec env ABI="${GMPABI}" "${CONFIG_SHELL}" "$0.wrapped" "$@" EOF # Patches to original configure might have lost the +x bit. chmod a+rx configure{,.wrapped} @@ -65,6 +65,11 @@ multilib_src_configure() { esac export GMPABI + #367719 + if [[ ${CHOST} == *-mint* ]]; then + filter-flags -O? + fi + tc-export CC ECONF_SOURCE="${S}" econf \ --localstatedir="${EPREFIX}"/var/state/gmp \ @@ -97,9 +102,9 @@ multilib_src_install() { emake DESTDIR="${D}" install # should be a standalone lib - rm -f "${D}"/usr/$(get_libdir)/libgmp.la + rm -f "${ED}"/usr/$(get_libdir)/libgmp.la # this requires libgmp - local la="${D}/usr/$(get_libdir)/libgmpxx.la" + local la="${ED}/usr/$(get_libdir)/libgmpxx.la" use static-libs \ && sed -i 's:/[^ ]*/libgmp.la:-lgmp:' "${la}" \ || rm -f "${la}" @@ -107,5 +112,5 @@ multilib_src_install() { multilib_src_install_all() { einstalldocs - use doc && cp "${DISTDIR}"/gmp-man-${MY_PV}.pdf "${D}"/usr/share/doc/${PF}/ + use doc && cp "${DISTDIR}"/gmp-man-${MY_PV}.pdf "${ED}"/usr/share/doc/${PF}/ }