<pre style='margin:0'>
Marcus Calhoun-Lopez (MarcusCalhoun-Lopez) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/f64abebf2c72247099eff8ee03381fca6fc78c24">https://github.com/macports/macports-ports/commit/f64abebf2c72247099eff8ee03381fca6fc78c24</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit f64abebf2c72247099eff8ee03381fca6fc78c24
</span>Author: Marcus Calhoun-Lopez <mcalhoun@macports.org>
AuthorDate: Wed Jul 24 11:18:22 2019 -0700
<span style='display:block; white-space:pre;color:#404040;'> gdcm2: new port
</span>---
science/gdcm2/Portfile | 73 +++++++++++++++++++++++++++++
science/gdcm2/files/patch-cxx_standard.diff | 11 +++++
2 files changed, 84 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/science/gdcm2/Portfile b/science/gdcm2/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..0924c7c
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/science/gdcm2/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,73 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# -*- 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
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortSystem 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup cmake 1.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup cxx11 1.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+name gdcm2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+version 2.8.9
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories science graphics
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license BSD
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers {mcalhoun @MarcusCalhoun-Lopez} openmaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+platforms darwin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description a C++ library for DICOM medical files
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description Grassroots DiCoM is a C++ library for DICOM medical files.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+homepage https://sourceforge.net/projects/gdcm/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+distname gdcm-${version}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+master_sites sourceforge:gdcm
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+dist_subdir gdcm
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 c301428024efd8137ceff84696a55c6ef7f6b80b \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 a2da88b7b3cbf9e76a9df3e89d06d057cca9ce54fc62fb059e04f47bf056b727 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 3762694
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# C++11 required to use socketxx
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append patch-cxx_standard.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_build-append port:pkgconfig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_lib-append port:zlib \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:openssl \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:expat \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:jsoncpp port:json-c \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:socketxx \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:openjpeg
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.args-append -DGDCM_BUILD_SHARED_LIBS=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DGDCM_USE_SYSTEM_ZLIB=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DGDCM_USE_SYSTEM_OPENSSL=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DGDCM_USE_SYSTEM_UUID=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DGDCM_USE_SYSTEM_EXPAT=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DGDCM_USE_SYSTEM_JSON=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DGDCM_USE_SYSTEM_PAPYRUS3=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DGDCM_USE_SYSTEM_SOCKETXX=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DGDCM_USE_SYSTEM_LJPEG=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DGDCM_USE_SYSTEM_OPENJPEG=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DGDCM_USE_SYSTEM_CHARLS=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DGDCM_USE_VTK=OFF
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+post-destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # avoid conflict with gdcm
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach fl {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ libgdcmCommon.dylib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ libgdcmjpeg12.dylib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ libgdcmDICT.dylib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ libgdcmDSED.dylib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ libgdcmIOD.dylib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ libgdcmMEXD.dylib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ libgdcmMSFF.dylib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ libgdcmjpeg16.dylib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ libgdcmjpeg8.dylib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ delete ${destroot}${prefix}/lib/${fl}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ delete ${destroot}${prefix}/share/man
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # place olena looks for header files
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ln -s gdcm-[join [lrange [split ${version} .] 0 1] .] ${destroot}${prefix}/include/gdcm-2.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+livecheck.regex {/gdcm-(2(?:\.\d+)*)}
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/science/gdcm2/files/patch-cxx_standard.diff b/science/gdcm2/files/patch-cxx_standard.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..5439111
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/science/gdcm2/files/patch-cxx_standard.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,11 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- CMakeLists.txt.orig 2019-03-04 04:28:25.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ CMakeLists.txt 2019-07-24 05:59:23.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -18,7 +18,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ cmake_policy(SET CMP0074 NEW)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ endif()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ project(GDCM)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-set(CMAKE_CXX_STANDARD 98)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++set(CMAKE_CXX_STANDARD 11)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set(CMAKE_CXX_EXTENSIONS OFF)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ mark_as_advanced(CMAKE_BACKWARDS_COMPATIBILITY CMAKE_BUILD_TYPE CMAKE_INSTALL_PREFIX)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set(GDCM_CMAKE_DIR "${GDCM_SOURCE_DIR}/CMake" CACHE INTERNAL "")
</span></pre><pre style='margin:0'>
</pre>