Annotation of /trunk/core/mpfr/mpfr-4.0.1-r1.smage2
Parent Directory | Revision Log
Revision 30705 -
(hide annotations)
(download)
Mon Mar 12 14:00:36 2018 UTC (6 years, 6 months ago) by niro
File size: 1008 byte(s)
Mon Mar 12 14:00:36 2018 UTC (6 years, 6 months ago) by niro
File size: 1008 byte(s)
auto added: ver bump to 4.0.1-r1
1 | niro | 30705 | # $Id$ |
2 | |||
3 | PNAME="mpfr" | ||
4 | PVER="4.0.1" | ||
5 | PBUILD="r1" | ||
6 | |||
7 | PATCHLEVEL="" | ||
8 | |||
9 | PCAT="dev-libs" | ||
10 | |||
11 | DESCRIPTION="The MPFR library is a C library for multiple-precision floating-point computations with correct rounding." | ||
12 | HOMEPAGE="http://www.mpfr.org/" | ||
13 | |||
14 | DEPEND=">= dev-libs/gmp-6.1" | ||
15 | |||
16 | SRCFILE="${PNAME}-${PVER}.tar.xz" | ||
17 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" | ||
18 | |||
19 | sminclude multilib mbuild | ||
20 | |||
21 | SRC_URI=( | ||
22 | #http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/distfiles/${SRCFILE} | ||
23 | http://www.mpfr.org/${PNAME}-current/${SRCFILE} | ||
24 | http://www.mpfr.org/${PNAME}-${PVER}/${SRCFILE} | ||
25 | mirror://${PNAME}/${SRCFILE} | ||
26 | ) | ||
27 | |||
28 | if [[ -n ${PATCHLEVEL} ]] | ||
29 | then | ||
30 | SRC_URI+=( mirror://${PNAME}/${PNAME}-${PVER}-p${PATCHLEVEL}.patch ) | ||
31 | fi | ||
32 | |||
33 | UP2DATE="updatecmd ${HOMEPAGE}/${PNAME}-current | highesttarball xz" | ||
34 | |||
35 | src_prepare() | ||
36 | { | ||
37 | munpack ${SRCFILE} || die | ||
38 | |||
39 | if [[ -n ${PATCHLEVEL} ]] | ||
40 | then | ||
41 | # -Np1 is required, weird patch | ||
42 | mpatch -Np1 ${PNAME}-${PVER}-p${PATCHLEVEL}.patch || die | ||
43 | fi | ||
44 | } | ||
45 | |||
46 | src_compile() | ||
47 | { | ||
48 | mconfigure --enable-thread-safe || die | ||
49 | mmake || die | ||
50 | } |