<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/1959600e20c8292ec05e9a0637ee92072c9ef39e">https://github.com/macports/macports-ports/commit/1959600e20c8292ec05e9a0637ee92072c9ef39e</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 1959600 opencascade: new port
</span>1959600 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 1959600e20c8292ec05e9a0637ee92072c9ef39e
</span>Author: Marcus Calhoun-Lopez <mcalhoun@macports.org>
AuthorDate: Fri Jul 27 15:11:48 2018 -0700
<span style='display:block; white-space:pre;color:#404040;'> opencascade: new port
</span>---
science/opencascade/Portfile | 73 ++++++++++++++++++++++
.../opencascade/files/patch-CMakeLists.txt.diff | 48 ++++++++++++++
science/opencascade/files/patch-env.sh.in.diff | 10 +++
science/opencascade/files/patch-glext.h.diff | 24 +++++++
4 files changed, 155 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/science/opencascade/Portfile b/science/opencascade/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..beff193
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/science/opencascade/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 muniversal 1.0
</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 opencascade
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+version 7.3.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories science
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+platforms darwin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license LGPL-2
</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;'>+description Development platform for CAD/CAE, 3D surface/solid modeling and data exchange
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description ${description}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+homepage https://www.opencascade.com/content/core-technology
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set git_version [join [split ${version} .] _]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+master_sites {https://git.dev.opencascade.org/gitweb/?p=occt.git;a=snapshot;h=refs/tags/V${git_version};sf=tgz;dummy=}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+extract.suffix .tgz
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+worksrcdir occt-V${git_version}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 1e55daf36edaacca40eb12d2e187867b64e33c8f \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 7298c5eadc6dd0aeb6265ff2958e8e742d6e3aa65227acce8094f96f1bf6d2ac \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 48576720
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append patch-CMakeLists.txt.diff \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-glext.h.diff \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-env.sh.in.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.cxxflags-append -std=c++11
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_lib-append port:freeimage \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:freetype \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:gl2ps \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:tbb \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:tcl \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:tk
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.args-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DUSE_FREEIMAGE=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DUSE_GL2PS=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DUSE_TBB=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DBUILD_DOC_Overview=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -D3RDPARTY_FREEIMAGE_DIR=${prefix} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -D3RDPARTY_FREETYPE_DIR=${prefix} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -D3RDPARTY_GL2PS_DIR=${prefix} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -D3RDPARTY_TBB_DIR=${prefix} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -D3RDPARTY_TCL_DIR=${prefix} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -D3RDPARTY_TCL_INCLUDE_DIR=${prefix}/include \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -D3RDPARTY_TK_INCLUDE_DIR=${prefix}/include \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -D3RDPARTY_DIR=${prefix}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant docs description {Build and install documentation} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_build-append port:doxygen
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-delete \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DBUILD_DOC_Overview=OFF
</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;'>+if {[variant_isset universal]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set merger_dont_diff ${prefix}/bin/custom.sh
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ post-destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file delete ${destroot}${prefix}/bin/custom.sh
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system -W ${destroot}${prefix}/bin/ "echo \"#!/bin/bash\" > custom.sh"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach arch ${configure.universal_archs} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|^#!/bin/bash||" ${destroot}${prefix}/bin/${arch}-custom.sh
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system -W ${destroot}${prefix}/bin/ "cat ${arch}-custom.sh >> custom.sh"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file delete ${destroot}${prefix}/bin/${arch}-custom.sh
</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;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+livecheck.url https://www.opencascade.com/content/latest-release
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/science/opencascade/files/patch-CMakeLists.txt.diff b/science/opencascade/files/patch-CMakeLists.txt.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..a309cf0
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/science/opencascade/files/patch-CMakeLists.txt.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,48 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- CMakeLists.txt.orig 2018-05-29 03:14:02.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ CMakeLists.txt 2018-06-28 09:22:16.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -4,7 +4,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set (CMAKE_SUPPRESS_REGENERATION TRUE)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-set (CMAKE_CONFIGURATION_TYPES Release Debug RelWithDebInfo CACHE INTERNAL "" FORCE)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++set (CMAKE_CONFIGURATION_TYPES MacPorts Release Debug RelWithDebInfo CACHE INTERNAL "" FORCE)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # macro: include patched file if it exists
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ macro (OCCT_INCLUDE_CMAKE_FILE BEING_INCLUDED_FILE)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -879,16 +879,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set (ADDITIONAL_CUSTOM_CONTENT "\nif [ -e \"\${aScriptPath}/${SUB_CUSTOM_NAME}\" ]; then\n source \"\${aScriptPath}/${SUB_CUSTOM_NAME}\" \"\$1\" \"\$2\" \nfi")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ endif()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- # change custom.bat/sh
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-if (EXISTS "${INSTALL_DIR}/${INSTALL_DIR_SCRIPT}/custom.${SCRIPT_EXT}")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- file (READ "${INSTALL_DIR}/${INSTALL_DIR_SCRIPT}/custom.${SCRIPT_EXT}" CUSTOM_CONTENT)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- set (CUSTOM_CONTENT "${CUSTOM_CONTENT} ${ADDITIONAL_CUSTOM_CONTENT}")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- file (WRITE "${INSTALL_DIR}/${INSTALL_DIR_SCRIPT}/custom.${SCRIPT_EXT}" "${CUSTOM_CONTENT}")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-else()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ OCCT_CONFIGURE_AND_INSTALL ("adm/templates/custom.${SCRIPT_EXT}.main" "custom.${SCRIPT_EXT}" "custom.${SCRIPT_EXT}" "${INSTALL_DIR_SCRIPT}")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-endif()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if (WIN32)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set (THIRDPARTY_DIR_REPLACE "%THIRDPARTY_DIR%")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1107,7 +1098,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ endforeach()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # install OpenCASCADE config file with compile definitions and C/C++ flags ONLY for current configuration
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ install (CODE "string (TOLOWER \"\${CMAKE_INSTALL_CONFIG_NAME}\" CMAKE_INSTALL_CONFIG_NAME_LOWER)")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-install (CODE "configure_file(\"${CMAKE_BINARY_DIR}/OpenCASCADECompileDefinitionsAndFlags-\${CMAKE_INSTALL_CONFIG_NAME_LOWER}.cmake\" \"${INSTALL_DIR}/${INSTALL_DIR_CMAKE}/OpenCASCADECompileDefinitionsAndFlags-\${CMAKE_INSTALL_CONFIG_NAME_LOWER}.cmake\" COPYONLY)")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++install (CODE "configure_file(\"${CMAKE_BINARY_DIR}/OpenCASCADECompileDefinitionsAndFlags-\${CMAKE_INSTALL_CONFIG_NAME_LOWER}.cmake\" \"\$ENV{DESTDIR}${INSTALL_DIR}/${INSTALL_DIR_CMAKE}/OpenCASCADECompileDefinitionsAndFlags-\${CMAKE_INSTALL_CONFIG_NAME_LOWER}.cmake\" COPYONLY)")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach (OCCT_MODULE ${OCCT_MODULES})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if (BUILD_MODULE_${OCCT_MODULE})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- adm/cmake/occt_macros.cmake.orig 2018-05-29 03:14:02.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ adm/cmake/occt_macros.cmake 2018-06-28 11:39:17.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -593,7 +593,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "cmake_policy(PUSH)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ cmake_policy(SET CMP0007 NEW)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ string (TOLOWER \"\${CMAKE_INSTALL_CONFIG_NAME}\" CMAKE_INSTALL_CONFIG_NAME_LOWERCASE)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- file (GLOB ALL_OCCT_TARGET_FILES \"${INSTALL_DIR}/${INSTALL_DIR_CMAKE}/OpenCASCADE*Targets-\${CMAKE_INSTALL_CONFIG_NAME_LOWERCASE}.cmake\")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ file (GLOB ALL_OCCT_TARGET_FILES \"\$ENV{DESTDIR}${INSTALL_DIR}/${INSTALL_DIR_CMAKE}/OpenCASCADE*Targets-\${CMAKE_INSTALL_CONFIG_NAME_LOWERCASE}.cmake\")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach(TARGET_FILENAME \${ALL_OCCT_TARGET_FILES})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file (STRINGS \"\${TARGET_FILENAME}\" TARGET_FILE_CONTENT)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file (REMOVE \"\${TARGET_FILENAME}\")
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/science/opencascade/files/patch-env.sh.in.diff b/science/opencascade/files/patch-env.sh.in.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..95987e3
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/science/opencascade/files/patch-env.sh.in.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,10 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- adm/templates/env.sh.in.orig 2018-05-29 03:14:02.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ adm/templates/env.sh.in 2018-06-28 09:17:21.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -30,7 +30,6 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ aSystem=`uname -s`
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if [ "$aSystem" == "Darwin" ]; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ export WOKSTATION="mac";
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- export ARCH="64";
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ export WOKSTATION="lin";
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fi
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/science/opencascade/files/patch-glext.h.diff b/science/opencascade/files/patch-glext.h.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..4045e26
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/science/opencascade/files/patch-glext.h.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,24 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/OpenGl/glext.h.orig 2018-05-29 03:14:02.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/OpenGl/glext.h 2018-06-27 11:16:57.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -465,8 +465,8 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #ifndef GL_VERSION_1_5
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define GL_VERSION_1_5 1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <stddef.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-typedef ptrdiff_t GLsizeiptr;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-typedef ptrdiff_t GLintptr;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++typedef intptr_t GLsizeiptr;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++typedef intptr_t GLintptr;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define GL_BUFFER_SIZE 0x8764
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define GL_BUFFER_USAGE 0x8765
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define GL_QUERY_COUNTER_BITS 0x8864
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -4478,8 +4478,8 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #ifndef GL_ARB_vertex_buffer_object
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define GL_ARB_vertex_buffer_object 1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-typedef ptrdiff_t GLsizeiptrARB;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-typedef ptrdiff_t GLintptrARB;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++typedef intptr_t GLsizeiptrARB;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++typedef intptr_t GLintptrARB;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define GL_BUFFER_SIZE_ARB 0x8764
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define GL_BUFFER_USAGE_ARB 0x8765
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define GL_ARRAY_BUFFER_ARB 0x8892
</span></pre><pre style='margin:0'>
</pre>