[95900] trunk/dports/science/grads2/Portfile

takeshi at macports.org takeshi at macports.org
Thu Jul 26 05:03:43 PDT 2012


Revision: 95900
          https://trac.macports.org/changeset/95900
Author:   takeshi at macports.org
Date:     2012-07-26 05:03:43 -0700 (Thu, 26 Jul 2012)
Log Message:
-----------
grads2: made obsolete. replaced by grads

Modified Paths:
--------------
    trunk/dports/science/grads2/Portfile

Modified: trunk/dports/science/grads2/Portfile
===================================================================
--- trunk/dports/science/grads2/Portfile	2012-07-26 10:56:29 UTC (rev 95899)
+++ trunk/dports/science/grads2/Portfile	2012-07-26 12:03:43 UTC (rev 95900)
@@ -4,18 +4,13 @@
 PortSystem          1.0
 
 name                grads2
+replaced_by         grads
 version             2.0.a9.oga.1
-revision            3
+revision            4
 platforms           darwin
 maintainers         nomaintainer
 categories          science
 description         interactive visualization tool for earth science data
-master_sites        sourceforge:opengrads
-distname            grads-${version}-bundle
-worksrcdir          grads-${version}
-checksums           md5     d8f11e55f4d1f43eedb59e81cac177c4 \
-                    sha1    b54c63c3124765561426453a5e13148d046acb09 \
-                    rmd160  9b3cec052c57cb13e406242b9b516c4884209087
 homepage            http://www.opengrads.org/
 long_description   \
     The Grid Analysis and Display System (GrADS) is an interactive     \
@@ -24,46 +19,9 @@
     be either binary, GRIB, NetCDF, or HDF-SDS (Scientific Data Sets). \
     GrADS has been implemented worldwide on a variety of commonly used \
     operating systems and is freely distributed over the Internet.
+distfiles
 
-depends_lib         port:readline   port:rx         \
-                    port:netcdf     port:udunits                    \
-                    port:hdf4       port:gd2        port:libnc-dap  \
-                    port:gadap      port:wgrib2                     \
-                    port:curl       port:libgeotiff port:shapelib
-depends_build       port:pkgconfig
-
-patchfiles          patch-configure.diff
-post-patch {
-    reinplace "s|png12|png14|g" ${worksrcpath}/configure
+pre-configure {
+    ui_error "${name} has been replaced by ${replaced_by}. Please install ${replaced_by} instead."
+    return -code error "obsolete port"
 }
-
-if {${configure.compiler}=="clang"} {
-    configure.compiler llvm-gcc-4.2
-}
-configure.env-append    SUPPLIBS="${prefix}"
-configure.args          --with-readline                             \
-                        --enable-dyn-supplibs                       \
-                        --with-nc --with-dap                        \
-                        --with-netcdf=${prefix}                     \
-                        --with-geotiff                              \
-                        --with-x --with-printim --without-gui       \
-                        --with-shp                                  \
-                        --program-suffix="-2"
-
-test.run            yes
-test.target         check
-
-post-destroot {
-    xinstall -d -m 755 ${destroot}${prefix}/share/${name}
-    eval xinstall -m 644 [glob -directory ${worksrcpath}/data *.dat *res] \
-        ${destroot}${prefix}/share/${name}
-    xinstall -d -m 755 ${destroot}${prefix}/share/${name}/tables
-    eval xinstall -m 644 [glob -directory ${worksrcpath}/data/tables *] \
-        ${destroot}${prefix}/share/${name}/tables
-}
-
-platform darwin 8 {
-    depends_lib-delete      libnc-dap
-    configure.args-delete   --with-dap
-    configure.args-append   --without-dap
-}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120726/f728dc48/attachment.html>


More information about the macports-changes mailing list