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 197AF139694 for ; Mon, 24 Jul 2017 19:33:05 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 57E93E0C7A; Mon, 24 Jul 2017 19:33:04 +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-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 1DD1DE0C7A for ; Mon, 24 Jul 2017 19:33:03 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 71498341735 for ; Mon, 24 Jul 2017 19:33:02 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 89C1F74C2 for ; Mon, 24 Jul 2017 19:33:00 +0000 (UTC) From: "Sebastien Fabbro" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sebastien Fabbro" Message-ID: <1500924763.225d0f08f014632aa519898bf333f7d3c02b5307.bicatali@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/mpir/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-libs/mpir/Manifest sci-libs/mpir/mpir-3.0.0.ebuild X-VCS-Directories: sci-libs/mpir/ X-VCS-Committer: bicatali X-VCS-Committer-Name: Sebastien Fabbro X-VCS-Revision: 225d0f08f014632aa519898bf333f7d3c02b5307 X-VCS-Branch: master Date: Mon, 24 Jul 2017 19:33:00 +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: c8fdfdc3-51dd-42d0-8e79-7961d3c704f9 X-Archives-Hash: 93ca3b4fa5591c769098112d0aeedfa9 commit: 225d0f08f014632aa519898bf333f7d3c02b5307 Author: Sébastien Fabbro gentoo org> AuthorDate: Mon Jul 24 19:29:23 2017 +0000 Commit: Sebastien Fabbro gentoo org> CommitDate: Mon Jul 24 19:32:43 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=225d0f08 sci-libs/mpir: Package-Manager: Portage-2.3.6, Repoman-2.3.3 sci-libs/mpir/Manifest | 1 + sci-libs/mpir/mpir-3.0.0.ebuild | 72 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 73 insertions(+) diff --git a/sci-libs/mpir/Manifest b/sci-libs/mpir/Manifest index 23509da06a0..04f53fced36 100644 --- a/sci-libs/mpir/Manifest +++ b/sci-libs/mpir/Manifest @@ -1,2 +1,3 @@ DIST mpir-2.6.0.tar.lzma 2472231 SHA256 2d2cd75a21a73bcd8898f092e4f123016b578288d7c7eab2df05df5e1921695f SHA512 e2608beeb72651c9b2e47f8fb2bcf672f8c74e2cd622e17cd19b12100b66e929ee31d102d2901816379b23aee1a3ea3a854e3e10ebffe2a6e4772748858f911d WHIRLPOOL 4759be848778fc4f34e87083e83e3697bfb57b9c9360ab69666afadc1b2652285a3c2a4c14321d9091ed90d0df307e89e34875a7592e24c2e405453a0b6f6e06 DIST mpir-2.7.2.tar.bz2 3771429 SHA256 a7d4c33595b4f781a51c92d5d139ec2efb3cf1bf101dfc3eef5b40c54e6f45ec SHA512 8436a0123201f9e30130ea340331c5a6445dddb58ce1f6c6a3a8303c310ac5b3c279c83b5c520a757cba82c2b14e92da44583e0eec287090cf69cbb29d516a9c WHIRLPOOL 8c7804b183282b7d804e91233176ce948a2e5e5c83dcefc4eaf31194a59431af55002a8b6a3405ddb45cac89270066c3c0ae2c4adcaa22329f4af06dbdf10ffb +DIST mpir-3.0.0.tar.bz2 2572041 SHA256 52f63459cf3f9478859de29e00357f004050ead70b45913f2c2269d9708675bb SHA512 c735105db8b86db739fd915bf16064e6bc82d0565ad8858059e4e93f62c9d72d9a1c02a5ca9859b184346a8dc64fa714d4d61404cff1e405dc548cbd54d0a88e WHIRLPOOL 7f10d08291f3a47db2d02d1db63fde8a187bd6896d42dfdd45ec9d77dafa35199b87871c53abbd43b22f78f2948e202402100c67f78f73c60a0692e5bdb49753 diff --git a/sci-libs/mpir/mpir-3.0.0.ebuild b/sci-libs/mpir/mpir-3.0.0.ebuild new file mode 100644 index 00000000000..14bfad90ba2 --- /dev/null +++ b/sci-libs/mpir/mpir-3.0.0.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools toolchain-funcs + +DESCRIPTION="Library for arbitrary precision integer arithmetic (fork of gmp)" +HOMEPAGE="http://www.mpir.org/" +SRC_URI="http://www.mpir.org/${P}.tar.bz2" + +LICENSE="LGPL-3" +SLOT="0/23" +KEYWORDS="~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux" +IUSE="+cxx cpudetection static-libs" + +DEPEND=" + x86? ( dev-lang/yasm ) + amd64? ( dev-lang/yasm ) +" +RDEPEND="" + +PATCHES=( + "${FILESDIR}"/${PN}-2.7.2-ABI-multilib.patch +) + +src_prepare() { + tc-export CC + default + # In the same way there was QA regarding executable stacks + # with GMP we have some here as well. We cannot apply the + # GMP solution as yasm is used, at least on x86/amd64. + # Furthermore we are able to patch config.ac. + ebegin "Patching assembler files to remove executable sections" + local i + for i in $(find . -type f -name '*.asm') ; do + cat >> $i <<-EOF + + #if defined(__linux__) && defined(__ELF__) + .section .note.GNU-stack,"",%progbits + #endif + EOF + done + + for i in $(find . -type f -name '*.as') ; do + cat >> $i <<-EOF + + %ifidn __OUTPUT_FORMAT__,elf + section .note.GNU-stack noalloc noexec nowrite progbits + %endif + EOF + done + eend + eautoreconf +} + +src_configure() { + # beware that cpudetection aka fat binaries is x86/amd64 only. + # Place mpir in profiles/arch/$arch/package.use.mask + # when making it available on $arch. + local myeconfargs+=( + $(use_enable cxx) + $(use_enable cpudetection fat) + $(use_enable static-libs static) + ) + econf ${myeconfargs[@]} +} + +src_install() { + default + use static-libs || rm -f "${ED}"/usr/$(get_libdir)/*la +}