From nobody Tue Jan 18 08:31:45 2022 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id D62AA1954A92; Tue, 18 Jan 2022 08:31:45 +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 4JdMSd5k5mz3qby; Tue, 18 Jan 2022 08:31:45 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1642494705; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Ib/CqraEttDC9TOBA1bylRuBbWgNEhexWYqMQH2VdVA=; b=VVzOrIOIQefynKFAEthZ3ar9mcNFeULfJ8Xvx6SoTk1+UiOepXfRuMfHSYjWTirVYNXum2 dHI4hBE4JQjZIJeoA4KjeIlgzGVrXrf6HWpoN8i64DK5pBZNJQDoDFLJJtM3sMSZhqrK+n U0tyjhA6OdlDsIOxKe+A+R+3H/PZ55BsVumYeGZcRPwjKrQJ+7h5bbPbpjaWRmSOWDR+vT cSggiZm0bTOEqbkrrXmW4UIeMuxi2F7I7bd8h6EICsZpnx53Ml5bQeyWKKPBRtzvbw6F/e oLikS4H5Pyanu6Ncvk8rTzemPmCsQcp4fRBVEp+DXoWr7DPviJdecX5rT7+H5g== 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 A502A1E0AA; Tue, 18 Jan 2022 08:31:45 +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 20I8Vjbx014565; Tue, 18 Jan 2022 08:31:45 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 20I8VjEI014564; Tue, 18 Jan 2022 08:31:45 GMT (envelope-from git) Date: Tue, 18 Jan 2022 08:31:45 GMT Message-Id: <202201180831.20I8VjEI014564@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: 30fd631ce5ca - main - math/trlib: New port: Trust Region Subproblem Solver Library List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org 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: 30fd631ce5ca62b4f63452571c4767f8c9ca607e Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1642494705; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Ib/CqraEttDC9TOBA1bylRuBbWgNEhexWYqMQH2VdVA=; b=o9yXEwpvNE4Px4oaXiOWHRVWipTrUMndcmGeKUpdPNv58TKVXNMzjBeb1tKqjw9aogETf4 wkim8pDttPxFEs7ocsWvwCAUdf1Lxdebo1tmuuQjoZ9RuPrUdx4tFZF6pg0FTPpsETnI/v S2P9zlL/s34jXjK+QnUu7V28iCaZLaF9s7nFWs1dI6Bf8Fp0SBEjcrzEjSSazoXWXiLzQf vdAu3ilP16gLUQ4nsbs5ZN9HQvd/cf1fMUlon51Zb10WFwtF1/wOP9ZUswsYLIGFdODptp 0lZUl0DCXREt6CcHTp+EY8XQZB7XYLt0nQUKLJaBWZTuzBkoxBAZhRTE9NyyIw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1642494705; a=rsa-sha256; cv=none; b=YJFkUryc+nZo/FjCbuZz0C0fWaF0v2sVUeOOzk+/P6ytagj87WthR9EKT0gvXhoMMKRUaR tAYJyrA6rmk3WHK6djffs2nF95XPRtuNBJApDCI9Rm4pQs89PtEvA5SfPRYdExJJsgWOpz ELCrSoBWE4+/FKkeR1J4i2qj+/RSKdmSqIlFtdVL6hb3sZGEV5EKrKjppZncRdpH4pTzHU fukb3dUED143djWpWNYdp+XVI8ZlGZe1AevKmSNSTDuwFI2RLK5cmGwRbaCgTLBgo/IcSJ hLw72KjgnaWmvplfs4Sc6kyr/eaL42hOI6sPAn9KA9rscR+0UrCKHMfsYdqTxw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=30fd631ce5ca62b4f63452571c4767f8c9ca607e commit 30fd631ce5ca62b4f63452571c4767f8c9ca607e Author: Yuri Victorovich AuthorDate: 2022-01-18 08:31:09 +0000 Commit: Yuri Victorovich CommitDate: 2022-01-18 08:31:43 +0000 math/trlib: New port: Trust Region Subproblem Solver Library --- math/Makefile | 1 + math/trlib/Makefile | 25 +++++++++++++++++++++++++ math/trlib/distinfo | 3 +++ math/trlib/files/patch-CMakeLists.txt | 10 ++++++++++ math/trlib/files/patch-tests_CMakeLists.txt | 11 +++++++++++ math/trlib/pkg-descr | 3 +++ math/trlib/pkg-plist | 19 +++++++++++++++++++ 7 files changed, 72 insertions(+) diff --git a/math/Makefile b/math/Makefile index d41bbff7eb2f..e101c8a2cc18 100644 --- a/math/Makefile +++ b/math/Makefile @@ -1059,6 +1059,7 @@ SUBDIR += topcom SUBDIR += triangle SUBDIR += trlan + SUBDIR += trlib SUBDIR += tvmet SUBDIR += ump SUBDIR += units diff --git a/math/trlib/Makefile b/math/trlib/Makefile new file mode 100644 index 000000000000..ab75d4fabe2f --- /dev/null +++ b/math/trlib/Makefile @@ -0,0 +1,25 @@ +PORTNAME= trlib +DISTVERSION= g20211004 +CATEGORIES= math + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Trust Region Subproblem Solver Library + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +LIB_DEPENDS= libopenblas.so:math/openblas +TEST_DEPENDS= check>0:devel/check \ + gsed:textproc/gsed \ + valgrind:devel/valgrind + +USES= cmake:testing pkgconfig localbase:ldflags +USE_LDCONFIG= yes + +USE_GITHUB= yes +GH_ACCOUNT= felixlen +GH_TAGNAME= f168b59 + +# some tests fail, see https://github.com/felixlen/trlib/issues/16 + +.include diff --git a/math/trlib/distinfo b/math/trlib/distinfo new file mode 100644 index 000000000000..8f65eb8066d3 --- /dev/null +++ b/math/trlib/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1642493541 +SHA256 (felixlen-trlib-g20211004-f168b59_GH0.tar.gz) = 98b2fc702d08e32488ff7662133aef19b5aaad97f082a28062a77c36dbd7e72e +SIZE (felixlen-trlib-g20211004-f168b59_GH0.tar.gz) = 91695 diff --git a/math/trlib/files/patch-CMakeLists.txt b/math/trlib/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..26bb41db4f11 --- /dev/null +++ b/math/trlib/files/patch-CMakeLists.txt @@ -0,0 +1,10 @@ +--- CMakeLists.txt.orig 2022-01-18 08:15:22 UTC ++++ CMakeLists.txt +@@ -17,5 +17,7 @@ add_subdirectory(src) + add_subdirectory(bindings) + add_subdirectory(examples) + enable_testing() ++if (BUILD_TESTING) + add_subdirectory(tests) ++endif() + add_subdirectory(doc) diff --git a/math/trlib/files/patch-tests_CMakeLists.txt b/math/trlib/files/patch-tests_CMakeLists.txt new file mode 100644 index 000000000000..df5c9803c7be --- /dev/null +++ b/math/trlib/files/patch-tests_CMakeLists.txt @@ -0,0 +1,11 @@ +--- tests/CMakeLists.txt.orig 2022-01-18 08:26:36 UTC ++++ tests/CMakeLists.txt +@@ -47,7 +47,7 @@ if(CHECK_FOUND) + + if(APPLE) + else() +- add_custom_command(OUTPUT "test_${t}_valgrind.c" COMMAND sed "'/sr = srunner_create(s);/a srunner_set_fork_status(sr, CK_NOFORK);'" "${CMAKE_CURRENT_SOURCE_DIR}/test_${t}.c" > "test_${t}_valgrind.c" DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/test_${t}.c") ++ add_custom_command(OUTPUT "test_${t}_valgrind.c" COMMAND gsed "'/sr = srunner_create(s);/a srunner_set_fork_status(sr, CK_NOFORK);'" "${CMAKE_CURRENT_SOURCE_DIR}/test_${t}.c" > "test_${t}_valgrind.c" DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/test_${t}.c") + add_executable("test_${t}_valgrind" "test_${t}_valgrind.c" "${CMAKE_CURRENT_SOURCE_DIR}/trlib_test.c" ${MESSAGEFILES}) + set_property(TARGET "test_${t}_valgrind" PROPERTY C_STANDARD 11) + target_link_libraries("test_${t}_valgrind" trlib ${LIBS}) diff --git a/math/trlib/pkg-descr b/math/trlib/pkg-descr new file mode 100644 index 000000000000..95770b665e40 --- /dev/null +++ b/math/trlib/pkg-descr @@ -0,0 +1,3 @@ +trlib provides various methods related to the trust region subproblem. + +WWW: https://github.com/felixlen/trlib diff --git a/math/trlib/pkg-plist b/math/trlib/pkg-plist new file mode 100644 index 000000000000..03beb958814c --- /dev/null +++ b/math/trlib/pkg-plist @@ -0,0 +1,19 @@ +include/trlib.h +include/trlib/trlib_eigen_inverse.h +include/trlib/trlib_krylov.h +include/trlib/trlib_leftmost.h +include/trlib/trlib_private.h +include/trlib/trlib_quadratic_zero.h +include/trlib/trlib_tri_factor.h +include/trlib/trlib_types.h +lib/cmake/trlib/trlib-config-%%CMAKE_BUILD_TYPE%%.cmake +lib/cmake/trlib/trlib-config-version.cmake +lib/cmake/trlib/trlib-config.cmake +lib/libtrlib.so +share/pkgconfig/trlib.pc +%%DATADIR%%/src/trlib_eigen_inverse.c +%%DATADIR%%/src/trlib_krylov.c +%%DATADIR%%/src/trlib_leftmost.c +%%DATADIR%%/src/trlib_private.h +%%DATADIR%%/src/trlib_quadratic_zero.c +%%DATADIR%%/src/trlib_tri_factor.c