From e748ba9741f6540f4675c23e3e37b73e822c13a4 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 31 May 2021 20:59:14 +0100 Subject: gentoo resync : 31.05.2021 --- sci-libs/mpir/Manifest | 4 +- sci-libs/mpir/files/mpir-2.7.2-ABI-multilib.patch | 4 +- sci-libs/mpir/mpir-3.0.0-r1.ebuild | 75 ++++++++++++++++++++++ sci-libs/mpir/mpir-3.0.0.ebuild | 77 ----------------------- 4 files changed, 79 insertions(+), 81 deletions(-) create mode 100644 sci-libs/mpir/mpir-3.0.0-r1.ebuild delete mode 100644 sci-libs/mpir/mpir-3.0.0.ebuild (limited to 'sci-libs/mpir') diff --git a/sci-libs/mpir/Manifest b/sci-libs/mpir/Manifest index 653c9a1858f1..265f9f16d750 100644 --- a/sci-libs/mpir/Manifest +++ b/sci-libs/mpir/Manifest @@ -1,4 +1,4 @@ -AUX mpir-2.7.2-ABI-multilib.patch 3902 BLAKE2B 915c6dabaf88115869eb34de98b6739fc552aeaf3df0293ef6465e9af6cdf2de6cf1c3e9bc39dd87c0d84a131e97b4017efe311ce3fd4a68a8ff00acafbe94d3 SHA512 81dd03d85dde94fedd4777ae1e5075420de0886675a4f8fba065cfba46f8bf0a3caf15c1efecbed4125ff27bad9c5b39e5eb05719aeabc72b52723f973d59eeb +AUX mpir-2.7.2-ABI-multilib.patch 3830 BLAKE2B e1f39b6f8d21546680cda9f82307af4601ba3e3cb16f5b9039fcf43a8d9ff28261bc2f4ff204f03d794254c4edc906b9babd0a51ee70cf0f5a6d89a3a245fbe3 SHA512 d55ef6f1b3a41755623a64d8873317887c4e5b630d52a5bd8d139e70bb746817899e3983f4f1178e7b1efc21ac0864debaa752e70369b5e071b4012e6cc965eb DIST mpir-3.0.0.tar.bz2 2572041 BLAKE2B f564944dd76586ca6e50c39f1199468b905a3db7bbb8b2ee6cf3dcdfb00757d7eefc57e010d5cfc3d6db7ba2676e36f7980365e85c87827b4901ec4e80349915 SHA512 c735105db8b86db739fd915bf16064e6bc82d0565ad8858059e4e93f62c9d72d9a1c02a5ca9859b184346a8dc64fa714d4d61404cff1e405dc548cbd54d0a88e -EBUILD mpir-3.0.0.ebuild 1857 BLAKE2B 98ac00bb3413fc6896409079d5ba852e51ad144ac9c3f7aa4a1e60706e55d4c712566da46fd2cf77831dbddf47551f8e33f753b0098e09eb3514294ee4704d07 SHA512 983ced141e91d063cd15d19226c71d4321637417a499426f2c376c7d7b81a06ec2aa429662bf083a6c42502c8414f5a9d066559586b97d9894680d5919ac030e +EBUILD mpir-3.0.0-r1.ebuild 1798 BLAKE2B 0af285eb415d2f5e8543b285d291847eb839d7226556eb318eff346b5baaa389f1c9fc735e00f17d459cca84b43fc9cc82bd0b0726fc25e46defc5b2aed5e0ed SHA512 42ceeace02ca4438759cf89c8b1a9719dcfd769486171f44d228b0741012e0deeafadcb8594278c7c64aab328b922de1f9ed5c25008d09cf1108848627eb37e6 MISC metadata.xml 792 BLAKE2B 9c0bea642d53a6afb0abeecefcc940c012b5cecf8c6e98fdf69eb718f63ea8e7c7f913fa1cd8360240b5f355e3742a5ccae00166690cf8a83226ad636342d279 SHA512 811f781a961982955ba036f719ec5cce3def93190fb786ef3c3a60f1b54f9b7638d8083cf0f273174002da7d358d25e8764de591d7b587b41198c48c52908fcc diff --git a/sci-libs/mpir/files/mpir-2.7.2-ABI-multilib.patch b/sci-libs/mpir/files/mpir-2.7.2-ABI-multilib.patch index f02df55ccf98..100a6ae7088d 100644 --- a/sci-libs/mpir/files/mpir-2.7.2-ABI-multilib.patch +++ b/sci-libs/mpir/files/mpir-2.7.2-ABI-multilib.patch @@ -1,5 +1,5 @@ ---- a/configure.ac 2009-11-28 10:48:59.196977657 +0000 -+++ b/configure.ac 2009-11-28 10:54:50.717976971 +0000 +--- a/configure.ac ++++ b/configure.ac @@ -361,7 +361,7 @@ # hugely bloat the output. diff --git a/sci-libs/mpir/mpir-3.0.0-r1.ebuild b/sci-libs/mpir/mpir-3.0.0-r1.ebuild new file mode 100644 index 000000000000..eab814932b38 --- /dev/null +++ b/sci-libs/mpir/mpir-3.0.0-r1.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +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="~alpha amd64 arm ~arm64 hppa ~ia64 ppc ppc64 ~s390 ~sparc x86 ~amd64-linux ~x86-linux" +IUSE="+cxx cpudetection" + +BDEPEND=" + x86? ( dev-lang/yasm ) + amd64? ( dev-lang/yasm ) +" + +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 || die + + #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 || die + + %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) + --disable-static + ) + # https://bugs.gentoo.org/661430 + if ! use amd64 && ! use x86; then + myeconfargs+=( --with-yasm="${BROOT}"/bin/false ) + fi + econf "${myeconfargs[@]}" +} + +src_install() { + default + find "${ED}" -name '*.la' -delete || die +} diff --git a/sci-libs/mpir/mpir-3.0.0.ebuild b/sci-libs/mpir/mpir-3.0.0.ebuild deleted file mode 100644 index ccd38ea08c0d..000000000000 --- a/sci-libs/mpir/mpir-3.0.0.ebuild +++ /dev/null @@ -1,77 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# 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="~alpha amd64 arm ~arm64 hppa ~ia64 ppc ppc64 ~s390 ~sparc x86 ~amd64-linux ~x86-linux" -IUSE="+cxx cpudetection static-libs" - -DEPEND=" - x86? ( dev-lang/yasm ) - amd64? ( dev-lang/yasm ) - amd64-fbsd? ( 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) - ) - # https://bugs.gentoo.org/661430 - if ! use amd64 && ! use x86; then - myeconfargs+=( --with-yasm=/bin/false ) - fi - econf "${myeconfargs[@]}" -} - -src_install() { - default - use static-libs || rm -f "${ED}"/usr/$(get_libdir)/*la -} -- cgit v1.2.3