Changeset 98700


Ignore:
Timestamp:
Oct 13, 2012, 10:45:10 AM (12 years ago)
Author:
ryandesign@…
Message:

ncview: update to 2.1.1; blacklist clang; fix livecheck, license GPL-3 (#33828)

Location:
trunk/dports/science/ncview
Files:
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/science/ncview/Portfile

    r85049 r98700  
     1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
    12# $Id$
    23
     
    45
    56name                    ncview
    6 version                 1.93g
    7 revision                1
     7version                 2.1.1
    88maintainers             nomaintainer
    99platforms               darwin
    1010categories              science
     11license                 GPL-3
    1112
    1213description             X windows point'n'click NetCDF viewer.
     
    2223
    2324master_sites            ftp://cirrus.ucsd.edu/pub/ncview/
    24 checksums               md5     09615ad95fe1f1cc684c24e67bb78a78 \
    25                         sha1    193b1e51d6ad7257bc4050493b708d5c12c16419 \
    26                         rmd160  036f2b6851085243dedadb6d47292b0467ce1426
    2725
    28 patchfiles              patch-Makefile.in.diff patch-configure.diff
    29 depends_lib             port:netcdf port:udunits port:netpbm \
     26checksums               rmd160  6308916cb309e2f2f809b4d4b47ad89263714885 \
     27                        sha256  8aaf98fad15790313739520b88e17748617be504f0a2b0322a62144e390db1dd
     28
     29patchfiles              patch-configure.diff
     30
     31depends_lib             port:expat \
     32                        port:hdf5-18 \
     33                        port:libpng \
     34                        port:netcdf \
     35                        port:udunits2 \
    3036                        port:xorg-libXaw port:xorg-libXt port:xorg-libice
     37
     38# Undefined symbols _framestore _main _options _pixel_transform _quit_app _read_in_state _useage _variables
     39compiler.blacklist      clang
     40
     41pre-configure {
     42    set nc4 [exec ${prefix}/bin/nc-config --has-nc4]
     43    if {${nc4} != "yes"} {
     44        ui_error "Install netcdf +netcdf4 first. Run:"
     45        ui_error "    port install netcdf +netcdf4"
     46        return -code error "netcdf +netcdf4 not installed"
     47    }
     48}
    3149
    3250configure.args          --with-netcdf_incdir=${prefix}/include \
    3351                        --with-netcdf_libdir=${prefix}/lib \
    3452                        --with-bindir=${prefix}/bin \
    35                         --with-udunits_incdir=${prefix}/include \
    36                         --with-udunits_libdir=${prefix}/lib \
    37                         --with-ppm_incdir=${prefix}/include/netpbm \
    38                         --with-ppm_libdir=${prefix}/lib \
    39                         --x-includes=${prefix} \
    40                         --x-libraries=${prefix}
    41 
    42 # Makefile does not respect CPPFLAGS
    43 configure.cflags-append -I${prefix}/include/netpbm
     53                        --with-udunits2_incdir=${prefix}/include/udunits2 \
     54                        --with-udunits2_libdir=${prefix}/lib \
     55                        --with-png_incdir=${prefix}/include \
     56                        --with-png_libdir=${prefix}/lib \
     57                        --with-x
    4458
    4559use_parallel_build      yes
    4660
    47 destroot.destdir-append MANDIR=${prefix}/share/man/man1
    48 
    4961post-destroot {
    50     xinstall -m 755 -d ${destroot}${prefix}/lib/ncview
    51     foreach file { 3gauss.ncmap 3saw.ncmap default.ncmap detail.ncmap hotres.ncmap nc_overlay.earth.lat-lon.p8deg nc_overlay.lat-lon-grid.20x60 nc_overlay.lat-lon-grid.10x30 } {
    52         xinstall -m 755 ${worksrcpath}/${file} ${destroot}${prefix}/lib/ncview
    53     }
    54     xinstall -m 755 -d ${destroot}${prefix}/share/doc/ncview
    55     xinstall -m 755 ${worksrcpath}/README ${destroot}${prefix}/share/doc/ncview
    56 }
    57 
    58 post-activate {
    59     ui_msg "\n
    60 The MacPorts X11 app-defaults directory is located at:
    61 
    62         ${prefix}/lib/X11/app-defaults
    63 
    64 Therefore, you must set the XFILESEARCHPATH environment variable to your ~/.profile for
    65 your X11 environment to find the MacPorts app-defaults directory:
    66 
    67         export XFILESEARCHPATH=/usr/X11R6/lib/X11/app-defaults/%N:${prefix}/lib/X11/app-defaults/%N
    68 \n"
     62    xinstall -m 755 -d ${destroot}${prefix}/lib/${name}
     63    xinstall -m 755 -W ${worksrcpath} 3gauss.ncmap 3saw.ncmap bw.ncmap default.ncmap detail.ncmap hotres.ncmap ${destroot}${prefix}/lib/${name}
     64   
     65    xinstall -m 755 ${worksrcpath}/data/ncview.1 ${destroot}${prefix}/share/man/man1
     66   
     67    set docdir ${prefix}/share/doc/${subport}
     68    xinstall -m 755 -d ${destroot}${docdir}
     69    xinstall -m 755 -W ${worksrcpath} README ${destroot}${docdir}
    6970}
    7071
    7172livecheck.type              regex
    7273livecheck.url               ${homepage}
    73 livecheck.regex             {New version \(([0-9]+\.[0-9]+[a-z])}
     74livecheck.regex             {New version \(([^)]+)\)}
  • trunk/dports/science/ncview/files/patch-configure.diff

    r60178 r98700  
    1 --- configure.orig      2009-11-04 16:56:19.000000000 +0900
    2 +++ configure   2009-11-04 16:59:59.000000000 +0900
    3 @@ -7053,10 +7053,7 @@
     1--- configure.orig      2012-03-29 21:27:50.000000000 +0200
     2+++ configure   2012-03-29 21:46:40.000000000 +0200
     3@@ -8252,7 +8252,7 @@
     4        echo "** Could not find the png.h file, so -frames support will not be included  **"
     5        echo "** Install the PNG library (and development headers) to fix this           **"
    46 fi
    5  if test $do_udunits = true; then
    6         echo "****************************************************************************"
    7 -       echo "Udunits support enabled.   Note: Udunits did not used to work with MAC OS X"
    8 -       echo "If you are using Mac OS X and have trouble, make sure you are using the"
    9 -       echo "latest udunits package.  If it still doesn't work, remove the udunits library and remake ncview"
    10 -       echo "udunits dirs: include: $UDUNITS_INCDIR  library: $UDUNITS_LIBDIR  libname: $UDUNITS_LIBNAME"
    11 +       echo "Udunits support enabled."
    12         echo "****************************************************************************"
    13         DO_UDUNITS_LINE="INC_UDUNITS   = -DINC_UDUNITS"
    14         DO_UDUNITS_INCDIR="UDUNITSINCDIR = -I$UDUNITS_INCDIR"
    15 @@ -7678,7 +7675,7 @@
     7-PNG_LIBNAME=libpng.so
     8+PNG_LIBNAME=libpng.dylib
    169 
     10 # Check whether --with-png_libdir was given.
     11 if test "${with_png_libdir+set}" = set; then
     12@@ -8483,7 +8483,7 @@
     13 fi
    1714 
    1815 fi
    19 -PPM_LIBNAME=libppm.so
    20 +PPM_LIBNAME=libppm.dylib
    21  
    22  # Check whether --with-ppm_libdir or --without-ppm_libdir was given.
    23  if test "${with_ppm_libdir+set}" = set; then
    24 @@ -7883,7 +7880,7 @@
    25  
    26  fi
    27  if test x$PPM_LIBDIR = x; then
    28 -PPM_LIBNAME=libnetpbm.so
    29 +PPM_LIBNAME=libnetpbm.dylib
    30  if test x$PPM_LIBDIR = x; then
    31         echo "$as_me:$LINENO: checking for ppm_writeppm in -lnetpbm" >&5
    32  echo $ECHO_N "checking for ppm_writeppm in -lnetpbm... $ECHO_C" >&6
    33 @@ -8051,7 +8048,7 @@
    34  
    35  fi
    36  fi
    37 -PPM_LIBNAME=`echo $PPM_LIBNAME | sed s/lib// | sed s/\.so//`
    38 +PPM_LIBNAME=`echo $PPM_LIBNAME | sed s/lib// | sed s/\.dylib//`
    39  
    40  
    41  
     16-PNG_LIBNAME=`echo $PNG_LIBNAME | sed s/lib// | sed s/\.so//`
     17+PNG_LIBNAME=`echo $PNG_LIBNAME | sed s/lib// | sed s/\.dylib//`
     18 PNG_PRESENT=no
     19 if test $PNG_INC_PRESENT = yes; then
     20        if test x$PNG_LIBDIR != x; then
Note: See TracChangeset for help on using the changeset viewer.