Projects
New Ticket     Wiki     Browse Source     Timeline     Roadmap     Bug Reports     Search

Changeset 22515

Show
Ignore:
Timestamp:
2007-03-03 13:22:32 (19 months ago)
Author:
vinc17@…
Message:

Become maintainer, clean up Portfile and added upstream patches 1 to 5.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/dports/devel/mpfr/Portfile

    r22478 r22515  
    33PortSystem 1.0 
    44 
    5 name            mpfr 
    6 version         2.2.1 
    7 categories      devel math 
    8 platforms       darwin  
    9 maintainers     nomaintainer@macports.org 
     5name            mpfr 
     6version         2.2.1 
     7revision        1 
     8categories      devel math 
     9platforms       darwin 
     10maintainers     vincent-opdarw@vinc17.org 
    1011 
    11 description     The MPFR library is a C library for multiple-precision floating-point computations  
    12 long_description         The MPFR library is a C library for multiple-precision \ 
    13                          floating-point computations with exact rounding (also called \ 
    14                          correct rounding). It is based on the GMP multiple-precision \ 
    15                          library and should replace the MPF class in further releases \ 
    16                          of GMP. 
     12description     C library for multiple-precision floating-point computations 
     13long_description \ 
     14    MPFR is a portable C library for arbitrary-precision binary \ 
     15    floating-point computation with correct rounding, based on the GMP \ 
     16    multiple-precision library. The computation is both efficient and \ 
     17    has a well-defined semantics. It copies the good ideas from the \ 
     18    ANSI/IEEE-754 standard for fixed-precision floating-point arithmetic. 
    1719 
    18 homepage        http://www.mpfr.org/ 
    19 master_sites    http://www.mpfr.org/mpfr-${version}/ 
    20 checksums       md5 40bf06f8081461d8db7d6f4ad5b9f6bd \ 
    21                 sha1 d0abd0943fcfc937a816bf67baaff3f0273a19e7 
     20homepage        http://www.mpfr.org/ 
     21master_sites    http://www.mpfr.org/mpfr-${version}/ 
    2222 
    23 use_bzip2       yes 
    24 extract.only    ${name}-${version}.tar.bz2 
     23checksums \ 
     24    patch01 md5 fd276c3936d6fa5adf9fae1cd57c74c4 \ 
     25    patch01 sha1 47c3ec783f32081ea1406bc0aac06bf61fd804aa \ 
     26    patch02 md5 03e638937ec7a2af4f703577396e8e52 \ 
     27    patch02 sha1 e93c31a2baaef5367a710a5e64b82744f5de4b64 \ 
     28    patch03 md5 fa3398730e7d23fdf37ee4e5c422bf80 \ 
     29    patch03 sha1 4eaa326c4fe43499a8acbdd6fc71c6a408663650 \ 
     30    patch04 md5 5d44d16448f85fea2acd5bcbd04cabb0 \ 
     31    patch04 sha1 9a1fec3686cfd6b227cebcb9e24d4ed8549ad5d9 \ 
     32    patch05 md5 2881b39c442466caa3451725b50f5a7a \ 
     33    patch05 sha1 4d559340e1006e84dae50e655723e916a26989ad \ 
     34    ${distname}.tar.bz2 md5 40bf06f8081461d8db7d6f4ad5b9f6bd \ 
     35    ${distname}.tar.bz2 sha1 d0abd0943fcfc937a816bf67baaff3f0273a19e7 
    2536 
    26 depends_lib     port:gmp 
     37use_bzip2       yes 
    2738 
    28 configure.args  --enable-shared --infodir=\\\${prefix}/share/info --with-gmp=${prefix} 
    29 configure.env   CFLAGS="-fno-common" LDFLAGS="-L${prefix}/lib" 
     39depends_lib     port:gmp 
    3040 
    31 test.run        yes 
    32 test.target     check 
     41patch_sites     ${master_sites} 
     42patchfiles      patch01 patch02 patch03 patch04 patch05 
     43patch.args      -p1 
    3344 
    34 post-destroot   { 
    35                 xinstall -d -m 755 ${destroot}${prefix}/share/${name} 
    36                 xinstall -m 644 -v -W ${worksrcpath} mpfr.texi texinfo.tex \ 
    37                 ${destroot}${prefix}/share/${name} 
    38                 system "ranlib ${destroot}${prefix}/lib/libmpfr.a"  
     45configure.args  --enable-shared 
     46configure.env   CPPFLAGS="-I${prefix}/include" LDFLAGS="-L${prefix}/lib" 
     47 
     48test.run        yes 
     49test.target     check 
     50 
     51platform darwin x86 { 
     52    configure.args-append --host=none-apple-darwin 
    3953} 
    40  
    41 platform darwin x86     { 
    42         configure.args-append   --host=none-apple-darwin 
    43 } 
    44 platform darwin i386    { 
    45         configure.args-append   --host=none-apple-darwin 
     54platform darwin i386 { 
     55    configure.args-append --host=none-apple-darwin 
    4656} 
    4757 
    4858platform darwin 8 { 
    49         configure.env-append    CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 CXX=/usr/bin/g++-4.0 
     59    configure.env-append CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 
    5060}