diff options
author | 2017-07-24 19:29:23 +0000 | |
---|---|---|
committer | 2017-07-24 19:32:43 +0000 | |
commit | 225d0f08f014632aa519898bf333f7d3c02b5307 (patch) | |
tree | 2189b5d6746429b9150464f60cbeb89752ecf196 /sci-libs | |
parent | sci-libs/pgplot: fix for static build, prefix, and for EAPI6 (diff) | |
download | gentoo-225d0f08f014632aa519898bf333f7d3c02b5307.tar.gz gentoo-225d0f08f014632aa519898bf333f7d3c02b5307.tar.bz2 gentoo-225d0f08f014632aa519898bf333f7d3c02b5307.zip |
sci-libs/mpir:
Package-Manager: Portage-2.3.6, Repoman-2.3.3
Diffstat (limited to 'sci-libs')
-rw-r--r-- | sci-libs/mpir/Manifest | 1 | ||||
-rw-r--r-- | sci-libs/mpir/mpir-3.0.0.ebuild | 72 |
2 files changed, 73 insertions, 0 deletions
diff --git a/sci-libs/mpir/Manifest b/sci-libs/mpir/Manifest index 23509da06a0e..04f53fced369 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 000000000000..14bfad90ba26 --- /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 +} |