Gentoo Archives: gentoo-commits

From: "Thomas Kahle (tomka)" <tomka@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-libs/mpir: mpir-2.6.0-r2.ebuild ChangeLog
Date: Wed, 22 May 2013 16:20:37
Message-Id: 20130522162034.366162171D@flycatcher.gentoo.org
1 tomka 13/05/22 16:20:34
2
3 Modified: ChangeLog
4 Added: mpir-2.6.0-r2.ebuild
5 Log:
6 fix tests with gcc-4.8 (bug 470838)
7
8 (Portage version: 2.1.12.1/cvs/Linux x86_64, signed Manifest commit with key 0x89DEB219565C32BC!)
9
10 Revision Changes Path
11 1.19 sci-libs/mpir/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/mpir/ChangeLog?rev=1.19&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/mpir/ChangeLog?rev=1.19&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/mpir/ChangeLog?r1=1.18&r2=1.19
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sci-libs/mpir/ChangeLog,v
20 retrieving revision 1.18
21 retrieving revision 1.19
22 diff -u -r1.18 -r1.19
23 --- ChangeLog 19 Feb 2013 16:03:02 -0000 1.18
24 +++ ChangeLog 22 May 2013 16:20:34 -0000 1.19
25 @@ -1,6 +1,12 @@
26 # ChangeLog for sci-libs/mpir
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/mpir/ChangeLog,v 1.18 2013/02/19 16:03:02 tomka Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/mpir/ChangeLog,v 1.19 2013/05/22 16:20:34 tomka Exp $
30 +
31 +*mpir-2.6.0-r2 (22 May 2013)
32 +
33 + 22 May 2013; Thomas Kahle <tomka@g.o> +files/mpir-2.6.0-gcc48.patch,
34 + +mpir-2.6.0-r2.ebuild:
35 + fix tests with gcc-4.8 (bug 470838)
36
37 *mpir-2.6.0-r1 (19 Feb 2013)
38
39
40
41
42 1.1 sci-libs/mpir/mpir-2.6.0-r2.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/mpir/mpir-2.6.0-r2.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/mpir/mpir-2.6.0-r2.ebuild?rev=1.1&content-type=text/plain
46
47 Index: mpir-2.6.0-r2.ebuild
48 ===================================================================
49 # Copyright 1999-2013 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/sci-libs/mpir/mpir-2.6.0-r2.ebuild,v 1.1 2013/05/22 16:20:34 tomka Exp $
52
53 EAPI=5
54
55 inherit autotools-utils eutils toolchain-funcs
56
57 DESCRIPTION="Library for arbitrary precision integer arithmetic (fork of gmp)"
58 HOMEPAGE="http://www.mpir.org/"
59 SRC_URI="http://www.mpir.org/${P}.tar.lzma"
60
61 LICENSE="LGPL-3"
62 SLOT="0"
63 KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
64 IUSE="+cxx cpudetection static-libs"
65
66 DEPEND="x86? ( dev-lang/yasm )
67 amd64? ( dev-lang/yasm )"
68 RDEPEND=""
69
70 src_prepare() {
71 tc-export CC
72 epatch \
73 "${FILESDIR}"/${PN}-2.6.0-yasm.patch \
74 "${FILESDIR}"/${PN}-1.3.0-ABI-multilib.patch \
75 "${FILESDIR}"/${PN}-2.5.1-automake-1.12.patch \
76 "${FILESDIR}"/${PN}-2.6.0-gcc48.patch
77
78 # In the same way there was QA regarding executable stacks
79 # with GMP we have some here as well. We cannot apply the
80 # GMP solution as yasm is used, at least on x86/amd64.
81 # Furthermore we are able to patch config.ac.
82 ebegin "Patching assembler files to remove executable sections"
83 local i
84 for i in $(find . -type f -name '*.asm') ; do
85 cat >> $i <<-EOF
86 #if defined(__linux__) && defined(__ELF__)
87 .section .note.GNU-stack,"",%progbits
88 #endif
89 EOF
90 done
91
92 for i in $(find . -type f -name '*.as') ; do
93 cat >> $i <<-EOF
94 %ifidn __OUTPUT_FORMAT__,elf
95 section .note.GNU-stack noalloc noexec nowrite progbits
96 %endif
97 EOF
98 done
99 eend
100 eautoreconf
101 }
102
103 src_configure() {
104 # beware that cpudetection aka fat binaries is x86/amd64 only.
105 # Place mpir in profiles/arch/$arch/package.use.mask
106 # when making it available on $arch.
107 myeconfargs+=(
108 $(use_enable cxx)
109 $(use_enable cpudetection fat)
110 )
111 autotools-utils_src_configure
112 }