public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sebastien Fabbro" <bicatali@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/mpir/
Date: Mon, 24 Jul 2017 19:33:00 +0000 (UTC)	[thread overview]
Message-ID: <1500924763.225d0f08f014632aa519898bf333f7d3c02b5307.bicatali@gentoo> (raw)

commit:     225d0f08f014632aa519898bf333f7d3c02b5307
Author:     Sébastien Fabbro <bicatali <AT> gentoo <DOT> org>
AuthorDate: Mon Jul 24 19:29:23 2017 +0000
Commit:     Sebastien Fabbro <bicatali <AT> gentoo <DOT> 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
+}


             reply	other threads:[~2017-07-24 19:33 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-24 19:33 Sebastien Fabbro [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-06-28  9:39 [gentoo-commits] repo/gentoo:master commit in: sci-libs/mpir/ Sam James
2022-06-21 22:09 Sam James
2022-06-21 22:09 Sam James
2022-06-21 22:09 Sam James
2022-05-20  0:19 Sam James
2022-04-30 15:53 Marek Szuba
2021-03-01 19:51 Sergei Trofimovich
2021-02-28 21:34 Sam James
2021-02-27 10:08 Sam James
2021-02-27 10:07 Sam James
2021-02-26 21:59 Sam James
2020-08-17  7:56 Sergei Trofimovich
2020-06-28 22:06 Mike Gilbert
2019-11-11 21:48 Mike Gilbert
2019-05-02 22:02 Mikle Kolyada
2019-03-10 15:26 Mikle Kolyada
2019-03-09 19:18 Thomas Deutschmann
2019-02-28 16:56 Mikle Kolyada
2019-01-17 20:45 Mikle Kolyada
2018-07-08 19:10 Sergei Trofimovich
2018-05-01 10:48 Mikle Kolyada
2018-03-30 18:08 Sergei Trofimovich
2018-02-21 22:11 Michał Górny
2017-06-26 20:18 Tobias Klausmann
2017-05-26 10:16 Tobias Klausmann
2017-03-22 19:48 Markus Meier
2017-02-19  8:40 Markus Meier
2017-01-25  6:39 Jeroen Roovers

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1500924763.225d0f08f014632aa519898bf333f7d3c02b5307.bicatali@gentoo \
    --to=bicatali@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox