Ticket #37553: Portfile.diff

File Portfile.diff, 4.8 KB (added by florian@…, 11 years ago)

Portfile patch

  • Portfile

    old new  
    44PortSystem          1.0
    55
    66name                gmt4
    7 version             4.5.8
     7version             4.5.9
    88categories          science
    99platforms           darwin
    10 maintainers         takeshi
    11 license             LGPL-3
    12 description         the generic mapping tools
     10maintainers         eprofs.de:florian \
     11                    takeshi
     12license             GPL-2
     13description         The Generic Mapping Tools
    1314long_description GMT is an open source collection of ~65 tools  \
    1415    for manipulating geographic and Cartesian data sets and     \
    1516    producing Encapsulated PostScript File (EPS) illustrations  \
    16     ranging from simple x-y plots via contour maps to   \
     17    ranging from simple x-y plots via contour maps to           \
    1718    artificially illuminated surfaces and 3-D perspective views.
    1819conflicts           gmt
    1920homepage            http://gmt.soest.hawaii.edu/
     
    2728                    ftp://mirror.geosci.usyd.edu.au/pub/gmt \
    2829                    ftp://gmt.mirror.ac.za/pub/gmt
    2930use_bzip2           yes
    30 set gshhsversion    2.2.0
    31 set gmtsrc          gmt-${version}.tar.bz2
    32 set gshhs           gshhs-${gshhsversion}.tar.bz2
    33 distfiles           ${gmtsrc} ${gshhs}
    34 checksums           ${gmtsrc} \
    35                     md5     8a3fa928bcb8a82ebaed68d62ba8f1ba \
    36                     sha1    823783c1abc9a7e0493c35661e516d4f607fff17 \
    37                     rmd160  faa58f8c35a4e00f5a9515066b90e08a940cb0d6 \
    38                     ${gshhs} \
    39                     md5     db98bff37adc0d51fdf0ffa3834d45ad \
    40                     sha1    786d58b9a335d3bacb37f40f21ee3bfbb424cd10 \
    41                     rmd160  aa744b2fdcdf849cc5c4abce97f1d29f4cdc20a4
     31set nameprefix      gmt
     32distname            ${nameprefix}-${version}
     33set dfile_gmt_gpl   ${distname}${extract.suffix}
     34set dfile_gmt_nogpl ${nameprefix}-${version}-non-gpl${extract.suffix}
     35distfiles           ${dfile_gmt_gpl} \
     36                    ${dfile_gmt_nogpl}
     37
     38checksums           ${dfile_gmt_gpl} \
     39                    md5     9f241e97774eadd1fe79f4d7022fcaed \
     40                    sha1    711922fd99dcd47ace522f1e46fcafa5beab8c94 \
     41                    rmd160  67d36ecf68b9bcd9a38de61e4f1b3e1120c71823 \
     42                    ${dfile_gmt_nogpl} \
     43                    md5     d61a34a83dc630b464d472c6f0bdfc3a \
     44                    sha1    d03651d98a5f010090bceda2bbec09e53a543942 \
     45                    rmd160  a562f21b1e474d660cc5b9502543c127fb9fb801
    4246
    4347worksrcdir          GMT${version}
    4448
    45 depends_lib         port:netcdf
     49depends_lib         port:netcdf \
     50                    port:gshhg-gmt-nc4
    4651
    47 post-extract {
    48     # move GSHHS coastlines to worksrcpath
    49     system "mv ${workpath}/share/coast ${worksrcpath}/share && rmdir ${workpath}/share"
    50     system "mv ${workpath}/{LICENSE.TXT,README.TXT} ${worksrcpath}/share/coast"
    51 }
     52destroot.target     install-all
     53use_parallel_build  no
     54universal_variant   no
     55default_variants    +gdal
    5256
    5357configure.pre_args          --prefix=${prefix}/lib/${name}
    5458configure.args              --datarootdir=${prefix}/share/${name} \
    5559                            --docdir=${prefix}/share/doc/${name} \
    5660                            --mandir=${prefix}/share/doc/${name}/man \
    5761                            --includedir=${prefix}/share/${name}/include \
     62                            --with-gshhg-dir=${prefix}/share/gshhg-gmt-nc4 \
     63                            --with-nc-config=${prefix}/bin/nc-config \
    5864                            --enable-shared \
    5965                            --enable-flock \
    6066                            --disable-xgrid \
    6167                            --disable-mex
    6268configure.optflags-delete   -O2
    63 
    64 use_parallel_build  no
    65 universal_variant   no
    66 destroot.target     install-all
    6769configure.ldflags-delete    -L${prefix}/lib
    6870
    6971post-destroot {
     72    ln -s ../lib/${name}/bin/GMT ${destroot}${prefix}/bin/${name}
     73    ln -s ../lib/${name}/bin/GMT ${destroot}${prefix}/bin/${nameprefix}
    7074    ln -s ../doc/${name} ${destroot}${prefix}/share/${name}/doc
    7175    ln -s ../../share/doc/${name}/man ${destroot}${prefix}/lib/${name}/man
    7276    ln -s ../../share/${name}/include ${destroot}${prefix}/lib/${name}/include
     
    8791    configure.args-append   --enable-triangle
    8892}
    8993
    90 livecheck.type      regex
    91 livecheck.url       http://gmt.soest.hawaii.edu/gmt/gmt_home.html
    92 livecheck.regex     {Current version is [^0-9 ]*([0-9]+\.[0-9]+\.[0-9]+)}
     94variant xgrid description {enable xGridEdit} {
     95    depends_lib-append      lib:libXaw:xorg-libXaw
     96    configure.args-delete   --disable-xgrid
     97    configure.args-append   --enable-xgrid
     98}
    9399
     100livecheck.type      regex
     101livecheck.url       ${homepage}/gmt/gmt_home.html
     102livecheck.regex     {Current version[^0-9]*([0-9]+\.[0-9]+\.[0-9]+)}