<pre style='margin:0'>
Herby Gillot (herbygillot) pushed a commit to branch master
in repository macports-ports.

</pre>
<p><a href="https://github.com/macports/macports-ports/commit/2372347c9082d2d6784fce41b69154e69804ab45">https://github.com/macports/macports-ports/commit/2372347c9082d2d6784fce41b69154e69804ab45</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 2372347c908 LightGBM: new port in math
</span>2372347c908 is described below

<span style='display:block; white-space:pre;color:#808000;'>commit 2372347c9082d2d6784fce41b69154e69804ab45
</span>Author: Sergey Fedorov <vital.had@gmail.com>
AuthorDate: Sun Mar 10 02:37:06 2024 +0700

<span style='display:block; white-space:pre;color:#404040;'>    LightGBM: new port in math
</span>---
 math/LightGBM/Portfile                             | 64 ++++++++++++++++++++++
 math/LightGBM/files/0001-Fix-CMakeLists.txt.patch  | 64 ++++++++++++++++++++++
 .../files/0002-common.h-fix-includes.patch         | 33 +++++++++++
 3 files changed, 161 insertions(+)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/math/LightGBM/Portfile b/math/LightGBM/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..02cbdd518dd
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/math/LightGBM/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,64 @@
</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           compiler_blacklist_versions 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup           github 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.setup        microsoft LightGBM 4.3.0 v
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision            0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories          math
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license             MIT
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers         {@barracuda156 gmail.com:vital.had} openmaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description         Fast, distributed, high performance gradient boosting \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    (GBT, GBDT, GBRT, GBM or MART) framework
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description    {*}${description}, based on decision tree algorithms, \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    used for ranking, classification and many other \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    machine learning tasks.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+homepage            https://lightgbm.readthedocs.io
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums           rmd160  6e713e9b99a624d35ea063219afcf2c638af1a0a \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    sha256  9e5a88bc231addfe4a0e57aa5ceb157f045103cd69ad8c2f393ef941ef52a9ac \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    size    7070807
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.tarball_from archive
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append   0001-Fix-CMakeLists.txt.patch \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    0002-common.h-fix-includes.patch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set libfmt_ver      10
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+cmake.module_path-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    ${prefix}/lib/libfmt${libfmt_ver}/cmake
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_lib-append  path:share/pkgconfig/eigen3.pc:eigen3 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    port:fast_double_parser \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    port:libfmt${libfmt_ver}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+compiler.cxx_standard   2014
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+compiler.blacklist-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    {clang < 900} {*gcc-[34].*}
</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;'>+                    -DBUILD_CLI=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    -DBUILD_CPP_TEST=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    -DBUILD_STATIC_LIB=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    -DEIGEN_DIR=${prefix}/include/eigen3 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    -DINSTALL_HEADERS=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    -DLIBFMT_DIR=${prefix}/include/libfmt${libfmt_ver} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    -DUSE_CUDA=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    -DUSE_GPU=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    -DUSE_HDFS=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    -DUSE_MPI=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    -DUSE_OPENMP=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    -DUSE_SANITIZER=OFF
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+platform darwin {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    configure.args-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    -DAPPLE_OUTPUT_DYLIB=ON
</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;'>+compiler.openmp_version 3.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {[string match *clang* ${configure.compiler}]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    configure.ldflags-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    -L${prefix}/lib/libomp -lomp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/math/LightGBM/files/0001-Fix-CMakeLists.txt.patch b/math/LightGBM/files/0001-Fix-CMakeLists.txt.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..a6c596dabda
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/math/LightGBM/files/0001-Fix-CMakeLists.txt.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,64 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From d1a2140a9455d3364e2b2d6860e4e7333ac9c6ca Mon Sep 17 00:00:00 2001
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From: Sergey Fedorov <vital.had@gmail.com>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Date: Sun, 10 Mar 2024 01:51:24 +0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Subject: [PATCH] Fix CMakeLists.txt
</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;'>+ CMakeLists.txt | 30 ++++++------------------------
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 1 file changed, 6 insertions(+), 24 deletions(-)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git CMakeLists.txt CMakeLists.txt
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 1ff289b9..43f6bcea 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- CMakeLists.txt
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ CMakeLists.txt
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -31,11 +31,7 @@ cmake_minimum_required(VERSION 3.18)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ project(lightgbm LANGUAGES C CXX)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-if(BUILD_CPP_TEST)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-  set(CMAKE_CXX_STANDARD 14)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-else()
</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;'>+-endif()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++set(CMAKE_CXX_STANDARD 14)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set(CMAKE_CXX_STANDARD_REQUIRED ON)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake/modules")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -111,7 +107,10 @@ if(USE_SWIG)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+   endif()
</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;'>+-set(EIGEN_DIR "${PROJECT_SOURCE_DIR}/external_libs/eigen")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++find_package(fmt REQUIRED)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++include_directories(${LIBFMT_DIR})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++find_package(Eigen3 REQUIRED NO_MODULE)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ include_directories(${EIGEN_DIR})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # See https://gitlab.com/libeigen/eigen/-/blob/master/COPYING.README
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -149,24 +148,7 @@ if(USE_CUDA)
</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(USE_OPENMP)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-    if(APPLE)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-        find_package(OpenMP)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-        if(NOT OpenMP_FOUND)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-            # libomp 15.0+ from brew is keg-only, so have to search in other locations.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-            # See https://github.com/Homebrew/homebrew-core/issues/112107#issuecomment-1278042927.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-            execute_process(COMMAND brew --prefix libomp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-                            OUTPUT_VARIABLE HOMEBREW_LIBOMP_PREFIX
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-                            OUTPUT_STRIP_TRAILING_WHITESPACE)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-            set(OpenMP_C_FLAGS "-Xpreprocessor -fopenmp -I${HOMEBREW_LIBOMP_PREFIX}/include")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-            set(OpenMP_CXX_FLAGS "-Xpreprocessor -fopenmp -I${HOMEBREW_LIBOMP_PREFIX}/include")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-            set(OpenMP_C_LIB_NAMES omp)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-            set(OpenMP_CXX_LIB_NAMES omp)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-            set(OpenMP_omp_LIBRARY ${HOMEBREW_LIBOMP_PREFIX}/lib/libomp.dylib)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-            find_package(OpenMP REQUIRED)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-        endif()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-    else()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-        find_package(OpenMP REQUIRED)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-    endif()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++    find_package(OpenMP REQUIRED)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+     set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
</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;color:#808080;'>diff --git a/math/LightGBM/files/0002-common.h-fix-includes.patch b/math/LightGBM/files/0002-common.h-fix-includes.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..126c2662e47
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/math/LightGBM/files/0002-common.h-fix-includes.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,33 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From 70f920a27ddfc20d13c57a6c65ab87417476859c Mon Sep 17 00:00:00 2001
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From: Sergey Fedorov <vital.had@gmail.com>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Date: Sun, 10 Mar 2024 02:14:21 +0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Subject: [PATCH] common.h: fix includes
</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;'>+ include/LightGBM/utils/common.h | 6 +++---
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 1 file changed, 3 insertions(+), 3 deletions(-)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git include/LightGBM/utils/common.h include/LightGBM/utils/common.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index f1b5a10b..6c3ebf5d 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- include/LightGBM/utils/common.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ include/LightGBM/utils/common.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -30,8 +30,8 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <vector>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define FMT_HEADER_ONLY
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#include "../../../external_libs/fast_double_parser/include/fast_double_parser.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#include "../../../external_libs/fmt/include/fmt/format.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include "fast_double_parser.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include "fmt/format.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #ifdef _MSC_VER
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <intrin.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1232,7 +1232,7 @@ struct __TToStringHelper<T, true, true> {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * Converts an array to a string with with values separated by the space character.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * This method replaces Common's ``ArrayToString`` and ``ArrayToStringFast`` functionality
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * and is locale-independent.
</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;'>+ * \note If ``high_precision_output`` is set to true,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ *       floating point values are output with more digits of precision.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ */
</span></pre><pre style='margin:0'>

</pre>