From owner-dev-commits-ports-all@freebsd.org Sun May 2 23:19:22 2021 Return-Path: Delivered-To: dev-commits-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 6F8FD5FDAE3; Sun, 2 May 2021 23:19:22 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FYMWG2QvDz3hBM; Sun, 2 May 2021 23:19:22 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 44EDB13AC7; Sun, 2 May 2021 23:19:22 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 142NJM6P060424; Sun, 2 May 2021 23:19:22 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 142NJMn8060423; Sun, 2 May 2021 23:19:22 GMT (envelope-from git) Date: Sun, 2 May 2021 23:19:22 GMT Message-Id: <202105022319.142NJMn8060423@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: 358eedb9789a - main - New port: math/highs: Solver for large scale sparse linear programming (LP) problems MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 358eedb9789ae55338d9f3bcbb50ae4c5af8678b Auto-Submitted: auto-generated X-BeenThere: dev-commits-ports-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for all branches of the ports repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 May 2021 23:19:22 -0000 The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=358eedb9789ae55338d9f3bcbb50ae4c5af8678b commit 358eedb9789ae55338d9f3bcbb50ae4c5af8678b Author: Yuri Victorovich AuthorDate: 2021-05-02 23:15:38 +0000 Commit: Yuri Victorovich CommitDate: 2021-05-02 23:19:11 +0000 New port: math/highs: Solver for large scale sparse linear programming (LP) problems --- math/Makefile | 1 + math/highs/Makefile | 23 ++++++++ math/highs/distinfo | 3 + math/highs/files/patch-src_CMakeLists.txt | 22 ++++++++ math/highs/pkg-descr | 6 ++ math/highs/pkg-plist | 92 +++++++++++++++++++++++++++++++ 6 files changed, 147 insertions(+) diff --git a/math/Makefile b/math/Makefile index 95d7988378e9..c4ecea29f66e 100644 --- a/math/Makefile +++ b/math/Makefile @@ -327,6 +327,7 @@ SUBDIR += gsl SUBDIR += half SUBDIR += hexcalc + SUBDIR += highs SUBDIR += hipmcl SUBDIR += hmat-oss SUBDIR += hpcombi diff --git a/math/highs/Makefile b/math/highs/Makefile new file mode 100644 index 000000000000..65ce8bcdd32c --- /dev/null +++ b/math/highs/Makefile @@ -0,0 +1,23 @@ +PORTNAME= highs +DISTVERSION= g20210408 +CATEGORIES= math + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Solver for large scale sparse linear programming (LP) problems + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +LIB_DEPENDS= libOsi.so:math/clp + +USES= blaslapack cmake compiler:c++11-lang pkgconfig + +USE_GITHUB= yes +GH_ACCOUNT= ERGO-Code +GH_PROJECT= HiGHS +GH_TAGNAME= cfe064e + +post-install: # see https://github.com/ERGO-Code/HiGHS/issues/502 + ${RM} -r ${STAGEDIR}${PREFIX}/external + +.include diff --git a/math/highs/distinfo b/math/highs/distinfo new file mode 100644 index 000000000000..b7d0319be1e5 --- /dev/null +++ b/math/highs/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1619992346 +SHA256 (ERGO-Code-HiGHS-g20210408-cfe064e_GH0.tar.gz) = 793a142f6aa3d321cf6571b16900044c2d4a56d920a89ce159d9e6abcef6518e +SIZE (ERGO-Code-HiGHS-g20210408-cfe064e_GH0.tar.gz) = 1449465 diff --git a/math/highs/files/patch-src_CMakeLists.txt b/math/highs/files/patch-src_CMakeLists.txt new file mode 100644 index 000000000000..3bf688764f2d --- /dev/null +++ b/math/highs/files/patch-src_CMakeLists.txt @@ -0,0 +1,22 @@ +- workaround for https://github.com/ERGO-Code/HiGHS/issues/503 + +--- src/CMakeLists.txt.orig 2021-05-02 22:26:02 UTC ++++ src/CMakeLists.txt +@@ -329,7 +329,7 @@ if (OSI_FOUND) + configure_file(${HIGHS_SOURCE_DIR}/osi-highs.pc.in + "${PROJECT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/osi-highs.pc" @ONLY) + install(FILES "${PROJECT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/osi-highs.pc" +- DESTINATION lib/pkg-config) ++ DESTINATION libdata/pkgconfig) + endif() + + +@@ -409,7 +409,7 @@ install(EXPORT highs-targets FILE highs-targets.cmake + install(FILES "${HIGHS_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/highs-config.cmake" + DESTINATION lib/cmake/highs) + install(FILES "${HIGHS_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/highs.pc" +- DESTINATION lib/pkg-config) ++ DESTINATION libdata/pkgconfig) + + else() + diff --git a/math/highs/pkg-descr b/math/highs/pkg-descr new file mode 100644 index 000000000000..de13232bbe1d --- /dev/null +++ b/math/highs/pkg-descr @@ -0,0 +1,6 @@ +HiGHS is a high performance serial and parallel solver for large scale sparse +linear programming (LP) problems of the form: + +Minimize c^Tx subject to L <= Ax <= U; l <= x <= u + +WWW: https://github.com/ERGO-Code/HiGHS diff --git a/math/highs/pkg-plist b/math/highs/pkg-plist new file mode 100644 index 000000000000..9f4c44b78bfe --- /dev/null +++ b/math/highs/pkg-plist @@ -0,0 +1,92 @@ +bin/highs +include/HConfig.h +include/Highs.h +include/interfaces/OsiHiGHSSolverInterface.hpp +include/interfaces/highs_c_api.h +include/io/Filereader.h +include/io/FilereaderEms.h +include/io/FilereaderLp.h +include/io/FilereaderMps.h +include/io/HMPSIO.h +include/io/HMpsFF.h +include/io/HighsIO.h +include/io/LoadOptions.h +include/ipm/IpxStatus.h +include/ipm/IpxWrapper.h +include/lp_data/HConst.h +include/lp_data/HStruct.h +include/lp_data/HighsAnalysis.h +include/lp_data/HighsDebug.h +include/lp_data/HighsInfo.h +include/lp_data/HighsLp.h +include/lp_data/HighsLpUtils.h +include/lp_data/HighsModelObject.h +include/lp_data/HighsModelObjectUtils.h +include/lp_data/HighsModelUtils.h +include/lp_data/HighsOptions.h +include/lp_data/HighsRanging.h +include/lp_data/HighsSolution.h +include/lp_data/HighsSolutionDebug.h +include/lp_data/HighsSolve.h +include/lp_data/HighsStatus.h +include/mip/HighsCliqueTable.h +include/mip/HighsCutPool.h +include/mip/HighsDomain.h +include/mip/HighsDomainChange.h +include/mip/HighsDynamicRowMatrix.h +include/mip/HighsImplications.h +include/mip/HighsLpRelaxation.h +include/mip/HighsMipSolver.h +include/mip/HighsMipSolverData.h +include/mip/HighsNodeQueue.h +include/mip/HighsPseudocost.h +include/mip/HighsSearch.h +include/mip/HighsSeparation.h +include/mip/HighsSparseVectorSum.h +include/mip/SolveMip.h +include/presolve/HPreData.h +include/presolve/Presolve.h +include/presolve/PresolveAnalysis.h +include/presolve/PresolveComponent.h +include/presolve/PresolveUtils.h +include/simplex/FactorTimer.h +include/simplex/HApp.h +include/simplex/HCrash.h +include/simplex/HDual.h +include/simplex/HDualRHS.h +include/simplex/HDualRow.h +include/simplex/HFactor.h +include/simplex/HFactorDebug.h +include/simplex/HMatrix.h +include/simplex/HPrimal.h +include/simplex/HQPrimal.h +include/simplex/HSimplex.h +include/simplex/HSimplexDebug.h +include/simplex/HSimplexReport.h +include/simplex/HVector.h +include/simplex/HighsSimplexAnalysis.h +include/simplex/HighsSimplexInterface.h +include/simplex/SimplexConst.h +include/simplex/SimplexStruct.h +include/test/DevKkt.h +include/test/KktCh2.h +include/util/HighsComponent.h +include/util/HighsMatrixPic.h +include/util/HighsRandom.h +include/util/HighsSort.h +include/util/HighsTimer.h +include/util/HighsUtils.h +include/util/stringutil.h +lib/cmake/highs/highs-config.cmake +lib/cmake/highs/highs-targets-%%CMAKE_BUILD_TYPE%%.cmake +lib/cmake/highs/highs-targets.cmake +lib/libOsiHighs.so +lib/libOsiHighs.so.1.0 +lib/libOsiHighs.so.1.0.0 +lib/libbasiclu.so +lib/libhighs.so +lib/libhighs.so.1.0 +lib/libhighs.so.1.0.0 +lib/libipx.so +libdata/pkgconfig/highs.pc +libdata/pkgconfig/osi-highs.pc