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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Mon Aug 15 09:22:11 2011 UTC (3 years ago) by tomka
Branch: MAIN
Changes since 1.1: +8 -7 lines
use autotools-utils.eclass

(Portage version: 2.1.10.10/cvs/Linux i686)

1 # Copyright 1999-2011 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.4.0.ebuild,v 1.1 2011/08/07 01:23:20 bicatali Exp $
4
5 EAPI=4
6
7 inherit eutils autotools-utils
8
9 DESCRIPTION="Library for arbitrary precision integer arithmetic derived from version 4.2.1 of gmp"
10 HOMEPAGE="http://www.mpir.org/"
11 SRC_URI="http://www.mpir.org/${P}.tar.bz2"
12
13 LICENSE="LGPL-3"
14 SLOT="0"
15 KEYWORDS="~amd64 ~ppc ~x86"
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
27 # In the same way there was QA regarding executable stacks
28 # with GMP we have some here as well. We cannot apply the
29 # GMP solution as yasm is used, at least on x86/amd64.
30 # Furthermore we are able to patch config.ac.
31 ebegin "Patching assembler files to remove executable sections"
32 local i
33 for i in $(find . -type f -name '*.asm') ; do
34 cat >> $i <<-EOF
35 #if defined(__linux__) && defined(__ELF__)
36 .section .note.GNU-stack,"",%progbits
37 #endif
38 EOF
39 done
40
41 for i in $(find . -type f -name '*.as') ; do
42 cat >> $i <<-EOF
43 %ifidn __OUTPUT_FORMAT__,elf
44 section .note.GNU-stack noalloc noexec nowrite progbits
45 %endif
46 EOF
47 done
48 eend
49 eautoreconf
50 }
51
52 src_configure() {
53 # beware that cpudetection aka fat binaries is x86/amd64 only.
54 # Place mpir in profiles/arch/$arch/package.use.mask when making it available on $arch.
55 myeconfargs=(
56 $(use_enable cxx)
57 $(use_enable cpudetection fat)
58 $(use_enable static-libs static)
59 )
60 autotools-utils_src_configure
61 }

  ViewVC Help
Powered by ViewVC 1.1.20