[121599] trunk/dports/science/gerbil

cal at macports.org cal at macports.org
Tue Jul 1 12:20:58 PDT 2014


Revision: 121599
          https://trac.macports.org/changeset/121599
Author:   cal at macports.org
Date:     2014-07-01 12:20:58 -0700 (Tue, 01 Jul 2014)
Log Message:
-----------
gerbil: update to 1.0b, closes #43927

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

Added Paths:
-----------
    trunk/dports/science/gerbil/files/
    trunk/dports/science/gerbil/files/patch-gui__model__representation.cpp-include-necessary-header.diff
    trunk/dports/science/gerbil/files/patch-lsb__lsbhreader.cpp-missing-include.diff

Modified: trunk/dports/science/gerbil/Portfile
===================================================================
--- trunk/dports/science/gerbil/Portfile	2014-07-01 19:00:17 UTC (rev 121598)
+++ trunk/dports/science/gerbil/Portfile	2014-07-01 19:20:58 UTC (rev 121599)
@@ -5,47 +5,45 @@
 PortGroup           cmake 1.0
 
 name                gerbil
-version             0.4a
+version             1.0b
+checksums           rmd160  5004777d0efb900968f5ca2e4f0545ccc67ac0f3 \
+                    sha256  710fc8d7864d5385949a51d9dbd2259f4835449ec7de5b6200ad3d104cd9684f
+
 categories          science
-license             GPL-3
+license             GPL-3 LGPL-3
 maintainers         cal openmaintainer
 platforms           darwin
-description         Gerbil is a visualization tool targeted at multispectral\
-                    and hyperspectral image data, and a toolbox of common\
-                    algorithms
+description         Hyperspectral Image Visualization & Analysis Framework
+long_description    \
+    Gerbil consists of a new, interactive visualization methods for \
+    multispectral and hyperspectral image data, and a toolbox of common and \
+    novel algorithms, e.g. for segmentation.
 
-long_description    ${description}
+homepage            http://gerbilvis.org/
+master_sites        http://files.gerbilvis.org/dl/
 
-homepage            http://gerbil.sourceforge.net/
-master_sites        sourceforge:project/gerbil/gerbil
+distname            ${distname}-src
 use_bzip2           yes
 
-checksums           rmd160  bacfe1fe4a6d11bce6eba279464c9b272b43d5b4 \
-                    sha256  bc41bf0ea805ff51be76b3e6c61a93029901fbd17ec458578657dd6e23553d18
+worksrcdir          ${name}-${version}
 
-livecheck.regex     "/${name}/${name}-(\[0-9\]+(\\.\[0-9\]+)*\[a-z\]?)\.tar"
+patchfiles          \
+    patch-gui__model__representation.cpp-include-necessary-header.diff \
+    patch-lsb__lsbhreader.cpp-missing-include.diff
 
+livecheck.type      regex
+livecheck.url       ${master_sites}
+livecheck.regex     "[quotemeta ${name}]-(\\d+(\\.\\d+)*\[a-z]?)-src[quotemeta ${extract.suffix}]"
+
 depends_lib         port:qt4-mac \
                     port:opencv \
                     port:boost \
-                    port:python27
+                    port:gdal \
+                    port:tbb
 
-# opencv is not universal
-universal_variant   no
-
-worksrcdir          ${name}-0.4
-
 configure.post_args -DOpenCV_DIR="${prefix}/lib/cmake" \
                     -DCMAKE_BUILD_TYPE=Release \
-                    -DGerbil_Viewer=on \
-                    -DGerbil_Edge_Detect=on \
-                    -DVole_Seg_Graphs=on \
-                    -DVole_Shell=on \
-                    -DCMAKE_EXE_LINKER_FLAGS=\"-framework OpenGL\" \
                     -DBoost_DIR="${prefix}" \
-                    -DPYTHON_EXECUTABLE="${prefix}/bin/python2.7" \
-                    -DPYTHON_INCLUDE_DIR="${prefix}/Library/Frameworks/Python.framework/Versions/2.7/Headers" \
-                    -DPYTHON_LIBRARY="${prefix}/lib/libpython2.7.dylib"
 
 # the gerbil makefiles do not provide an install target
 destroot {
@@ -54,37 +52,11 @@
     xinstall -m 755 "${worksrcpath}/bin/qgerbil" "${destroot}${prefix}/bin/"
 
     # create directories for shared files
-    xinstall -d -m 755 "${destroot}${prefix}/share/${name}"
-    xinstall -d -m 755 "${destroot}${prefix}/share/${name}/doc"
+    xinstall -d -m 755 "${destroot}${prefix}/share/doc/${name}"
 
     # install shared files
-    set sharefiles [list "AUTHORS" "COPYING" "README.txt" "doc/file_format.txt" "doc/introduction.txt" "doc/license.txt"]
+    set sharefiles [list "AUTHORS" "COPYING" "README.txt"]
     foreach file $sharefiles {
-        xinstall -m 644 "${worksrcpath}/${file}" "${destroot}${prefix}/share/${name}/${file}"
+        xinstall -m 644 "${worksrcpath}/${file}" "${destroot}${prefix}/share/doc/${name}/${file}"
     }
 }
-
-variant doc description {Generate and install gerbil documentation} {
-    depends_build-append \
-                    port:doxygen \
-                    path:bin/dot:graphviz \
-                    bin:latex:texlive-latex \
-                    bin:makeindex:texlive-basic \
-                    bin:dvips:texlive-basic
-
-    build.target-append \
-                    doc
-
-    post-destroot {
-        set basepath "${worksrcpath}/doc/html"
-        fs-traverse docfile "${basepath}" {
-            set docfilename [string range "${docfile}" [string length "${basepath}"] end]
-            if {[file isdirectory "${docfile}"]} {
-                xinstall -d -m 755 "${destroot}${prefix}/share/${name}/doc/html/${docfilename}"
-            } else {
-                xinstall -m 644 "${docfile}" "${destroot}${prefix}/share/${name}/doc/html/${docfilename}"
-            }
-        }
-    }
-}
-

Added: trunk/dports/science/gerbil/files/patch-gui__model__representation.cpp-include-necessary-header.diff
===================================================================
--- trunk/dports/science/gerbil/files/patch-gui__model__representation.cpp-include-necessary-header.diff	                        (rev 0)
+++ trunk/dports/science/gerbil/files/patch-gui__model__representation.cpp-include-necessary-header.diff	2014-07-01 19:20:58 UTC (rev 121599)
@@ -0,0 +1,8 @@
+--- gui/model/representation.cpp.orig	2014-07-01 20:45:39.000000000 +0200
++++ gui/model/representation.cpp	2014-07-01 20:46:02.000000000 +0200
+@@ -1,4 +1,5 @@
+ #include "representation.h"
++#include <ostream>
+ 
+ std::ostream &operator<<(std::ostream& os, const representation::t& r)
+ {

Added: trunk/dports/science/gerbil/files/patch-lsb__lsbhreader.cpp-missing-include.diff
===================================================================
--- trunk/dports/science/gerbil/files/patch-lsb__lsbhreader.cpp-missing-include.diff	                        (rev 0)
+++ trunk/dports/science/gerbil/files/patch-lsb__lsbhreader.cpp-missing-include.diff	2014-07-01 19:20:58 UTC (rev 121599)
@@ -0,0 +1,9 @@
+--- lsh/lshreader.cpp.orig	2014-07-01 20:35:08.000000000 +0200
++++ lsh/lshreader.cpp	2014-07-01 20:36:15.000000000 +0200
+@@ -1,5 +1,6 @@
+ #include "lshreader.h"
+ #include <cmath>
++#include <cstdlib>
+ #include <algorithm>
+ 
+ LSHReader::LSHReader(const LSH& master)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140701/1fd9ae52/attachment.html>


More information about the macports-changes mailing list