/[gentoo-x86]/sci-libs/mpir/mpir-2.5.1.ebuild
Gentoo

Contents of /sci-libs/mpir/mpir-2.5.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Fri Aug 3 19:53:49 2012 UTC (3 years ago) by bicatali
Branch: MAIN
Changes since 1.2: +2 -2 lines
keyword amd64-linux x86-linux

(Portage version: 2.2.01.20796-prefix/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-libs/mpir/mpir-2.5.1.ebuild,v 1.2 2012/06/27 14:11:29 ssuominen Exp $
4
5 EAPI=4
6
7 inherit eutils autotools-utils
8
9 DESCRIPTION="Library for arbitrary precision integer arithmetic (fork of gmp)"
10 HOMEPAGE="http://www.mpir.org/"
11 SRC_URI="http://www.mpir.org/${P}.tar.lzma"
12
13 LICENSE="LGPL-3"
14 SLOT="0"
15 KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
16 IUSE="+cxx cpudetection static-libs"
17
18 DEPEND="x86? ( dev-lang/yasm )
19 amd64? ( dev-lang/yasm )"
20 RDEPEND=""
21
22 src_prepare() {
23 epatch \
24 "${FILESDIR}"/${PN}-2.2.0-yasm.patch \
25 "${FILESDIR}"/${PN}-1.3.0-ABI-multilib.patch \
26 "${FILESDIR}"/${PN}-2.5.1-automake-1.12.patch
27
28 # In the same way there was QA regarding executable stacks
29 # with GMP we have some here as well. We cannot apply the
30 # GMP solution as yasm is used, at least on x86/amd64.
31 # Furthermore we are able to patch config.ac.
32 ebegin "Patching assembler files to remove executable sections"
33 local i
34 for i in $(find . -type f -name '*.asm') ; do
35 cat >> $i <<-EOF
36 #if defined(__linux__) && defined(__ELF__)
37 .section .note.GNU-stack,"",%progbits
38 #endif
39 EOF
40 done
41
42 for i in $(find . -type f -name '*.as') ; do
43 cat >> $i <<-EOF
44 %ifidn __OUTPUT_FORMAT__,elf
45 section .note.GNU-stack noalloc noexec nowrite progbits
46 %endif
47 EOF
48 done
49 eend
50 eautoreconf
51 }
52
53 src_configure() {
54 # beware that cpudetection aka fat binaries is x86/amd64 only.
55 # Place mpir in profiles/arch/$arch/package.use.mask
56 # when making it available on $arch.
57 myeconfargs+=(
58 $(use_enable cxx)
59 $(use_enable cpudetection fat)
60 )
61 autotools-utils_src_configure
62 }

  ViewVC Help
Powered by ViewVC 1.1.20