<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/453b3c750990a2fe16ee27658dc78c600ad61006">https://github.com/macports/macports-ports/commit/453b3c750990a2fe16ee27658dc78c600ad61006</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 453b3c750990a2fe16ee27658dc78c600ad61006
</span>Author: Sergey Fedorov <vital.had@gmail.com>
AuthorDate: Thu May 18 08:47:52 2023 +0800

<span style='display:block; white-space:pre;color:#404040;'>    R-highs: new port
</span>---
 R/R-highs/Portfile                            | 37 +++++++++++++++++++++++++++
 R/R-highs/files/patch-cxx11.diff              |  6 +++++
 R/R-highs/files/patch-use-Macports-highs.diff | 20 +++++++++++++++
 3 files changed, 63 insertions(+)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/R/R-highs/Portfile b/R/R-highs/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..429c0921aef
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/R/R-highs/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,37 @@
</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           R 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+R.setup             cran roigrp highs 0.1-10
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision            0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories-append   math
</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;'>+license             {GPL-2 GPL-3}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description         HiGHS optimization solver
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description    R interface to HiGHS, an optimization solver for solving mixed integer optimization \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    problems with quadratic or linear objective and linear constraints.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+homepage            https://gitlab.com/roigrp/solver/highs
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums           rmd160  2fc440d27e217824ecbaf4e355dcc04b82c76194 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    sha256  4ce0034f9eea27e5ba3562c57b09d6c656d898e37cd6a01c19a4d2e6ddfa55ee \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    size    1128369
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_build-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    path:bin/cmake:cmake \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    port:bash \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    port:pkgconfig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_lib-append  port:HiGHS \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    port:R-checkmate \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    port:R-Rcpp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles          patch-use-Macports-highs.diff \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    patch-cxx11.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+post-patch {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    reinplace "s,@PREFIX@,${prefix}," ${worksrcpath}/configure
</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;'>+# There are no specific tests atm.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_test-append port:R-tinytest
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+test.run            yes
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/R/R-highs/files/patch-cxx11.diff b/R/R-highs/files/patch-cxx11.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..021b4907c64
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/R/R-highs/files/patch-cxx11.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,6 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/Makevars.in.orig   2023-05-14 01:31:56.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/Makevars.in        2023-05-18 06:11:03.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1,2 +1,2 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ PKG_LIBS= -L@RHIGHS_LIB_DIR@/lib -L@RHIGHS_LIB_DIR@/lib64 -lhighs
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-PKG_CPPFLAGS=-I@RHIGHS_LIB_DIR@/include -I@RHIGHS_LIB_DIR@/include/highs
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++PKG_CPPFLAGS= -D_GLIBCXX_USE_CXX11_ABI=0 -I@RHIGHS_LIB_DIR@/include -I@RHIGHS_LIB_DIR@/include/highs
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/R/R-highs/files/patch-use-Macports-highs.diff b/R/R-highs/files/patch-use-Macports-highs.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..1c385deb8c3
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/R/R-highs/files/patch-use-Macports-highs.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,20 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- configure.orig 2023-05-16 22:24:58.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ configure      2023-05-18 04:44:09.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1,16 +1,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #!/bin/sh
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ echo "Use 'configure'"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-# export R_HIGHS_LIB_DIR=/home/f/lib/highslib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-if test -z "${R_HIGHS_LIB_DIR}"; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-    R_HIGHS_PKG_HOME=`pwd`
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-    bash inst/build_highs.sh
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-    cd ${R_HIGHS_PKG_HOME}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-    rm -rf inst/HiGHS
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-    R_HIGHS_LIB_DIR=${R_HIGHS_PKG_HOME}/src/highslib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++export R_HIGHS_LIB_DIR=@PREFIX@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sed -e "s|@RHIGHS_LIB_DIR@|$R_HIGHS_LIB_DIR|g" src/Makevars.in > src/Makevars
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 
</span></pre><pre style='margin:0'>

</pre>