blob: 9e102448051052601333511cab5ce62879ba89a4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=2
inherit eutils versionator autotools
DESCRIPTION="MPIR is a library for arbitrary precision integer arithmetic derived from version 4.2.1 of gmp"
HOMEPAGE="http://www.mpir.org/"
SRC_URI="http://www.mpir.org/${PN}-$(replace_version_separator 3 -).tar.gz"
RESTRICT="mirror"
S="${WORKDIR}/${PN}-$(get_version_component_range 1-3)"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE="nocxx"
DEPEND="dev-lang/yasm"
RDEPEND=""
src_prepare(){
epatch "${FILESDIR}/${P}-yasm.patch"
eautoreconf
}
src_configure() {
unset ABI
econf $(use_enable !nocxx cxx) \
|| die "configure failed"
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
dodoc ChangeLog README NEWS
}
|