From nobody Sun Nov 12 04:49:14 2023 X-Original-To: dev-commits-ports-all@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 4SSg7t47p9z513dC; Sun, 12 Nov 2023 04:49:14 +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 4SSg7t2MPbz3Zyf; Sun, 12 Nov 2023 04:49:14 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1699764554; 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=nBEE9nN6lp1Gsi9zN0g/HSPTlseYtGDXwJ9DOg2ZMmo=; b=oWtADbjeSK/4Q8FYQ79jg8Ga0kn5+CwdauVvERN07ZQfwXO/cof/ccIPAMPfCooGRsDRsp dL8qy0Zm5bpqDW73FTkcYZ9cPXc6Fx1kMlfyx+kV8ac5Unf7Shw81/nlEvQzGAY9PosdTt 1beLaZ1wWXkIJOm23kEMewyuDukjh9YgduimoJGhq+zAbOllbbEm79DBJb9248EBiqiVI9 HBXkw+jLZ7qq81XCeEG6/Pq7TBhefamuFhyT7d6ZnRJ5WFaNqgGfrKm9wNrOjzbKVjWTmb T3Orj6FFrPZQsyZ2hmHa9JtSwKBumd2ThntVUmHHhw696QHv5fqxHCCdSgBNyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1699764554; 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=nBEE9nN6lp1Gsi9zN0g/HSPTlseYtGDXwJ9DOg2ZMmo=; b=AdF2ldWjMCDNKL3G8/YeCdhkdn+u8n/0Wjwh+BiaH6acBO2LGCzBmRe7i3Wxclx0pZKGlM H26LeQGs2h9J6sYb40rrWIh90aNjHHnYad8hZscF1Xn15oHU5EojgLzxtYbMB5C9HMpihp FQfDKiK/ce7p4+odLsFEOb9xPNuP0tA+uGsycLANlDTdl1P5TactnRCv0lo/1s4nPHDBAK 1prf9ULHncfz8U5vYJnCmu/YbFT04xNAXeBTuSTqZPkFTnSVBUS5tYyhNNWvBEhPuiF8f+ 6792cbTLAxMFze8dHKlLIzBmcCzlSYb6cYkKIgTiHZL6+3n4h8SJLFlnLcCWtA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1699764554; a=rsa-sha256; cv=none; b=Peo+YSw4o5OebyONUNheIJkg7pB81Tb5UFcYOogj/Uy/BfY7WaNmcIP94F2na9srBaWAgG Z+sBHUgNLfBio/WN2h8+5NRYn6H7k1Oaje6t1Kunwv7HRMFHfljQwgqwk/5rLr/OCi2/mN 9BmybbH3XOWLcn2BQg1cZguLm8HAiak3iEzD5CQIZmUgSfP4NCmsp/13ZXCgwm+6N7Z7j4 S7RTURrlTukynStF1qE3Y7oU4zC7JuPO0C3l8JiQanzK1SLAp3TySQCtffMOUgOIJ1jPCo RaEdVFQNHmUNJkjCB7tGnwzaJVfZWg7x8eiVy0FVL1MnrZNbGEnyaHVuI3bOUA== 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 4SSg7t1T8bz18VX; Sun, 12 Nov 2023 04:49:14 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 3AC4nEOH091878; Sun, 12 Nov 2023 04:49:14 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3AC4nEb5091875; Sun, 12 Nov 2023 04:49:14 GMT (envelope-from git) Date: Sun, 12 Nov 2023 04:49:14 GMT Message-Id: <202311120449.3AC4nEb5091875@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: 0a6f672ba656 - main - math/py-SQNomad: New port: Blackbox optimization software List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@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: 0a6f672ba656cc9323212cdc1722011943771e79 Auto-Submitted: auto-generated The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=0a6f672ba656cc9323212cdc1722011943771e79 commit 0a6f672ba656cc9323212cdc1722011943771e79 Author: Yuri Victorovich AuthorDate: 2023-11-12 03:53:57 +0000 Commit: Yuri Victorovich CommitDate: 2023-11-12 04:49:07 +0000 math/py-SQNomad: New port: Blackbox optimization software --- math/Makefile | 1 + math/py-SQNomad/Makefile | 31 +++++++++++++++++++++++++++++++ math/py-SQNomad/distinfo | 3 +++ math/py-SQNomad/files/patch-setup.py | 11 +++++++++++ math/py-SQNomad/pkg-descr | 4 ++++ 5 files changed, 50 insertions(+) diff --git a/math/Makefile b/math/Makefile index 1d22dd2e5fbf..06653c0c70fc 100644 --- a/math/Makefile +++ b/math/Makefile @@ -884,6 +884,7 @@ SUBDIR += py-PySCIPOpt SUBDIR += py-PyWavelets SUBDIR += py-Pyomo + SUBDIR += py-SQNomad SUBDIR += py-affine SUBDIR += py-algopy SUBDIR += py-altgraph diff --git a/math/py-SQNomad/Makefile b/math/py-SQNomad/Makefile new file mode 100644 index 000000000000..f58c8de60700 --- /dev/null +++ b/math/py-SQNomad/Makefile @@ -0,0 +1,31 @@ +PORTNAME= SQNomad +DISTVERSION= 0.2.3 +CATEGORIES= math python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Blackbox optimization software +WWW= https://www.gerad.ca/nomad/ + +LICENSE= LGPL3 +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYNUMPY} \ + ${PY_SETUPTOOLS} \ + ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} +RUN_DEPENDS= ${PYNUMPY} \ + ${PYTHON_PKGNAMEPREFIX}SQCommon>0:misc/py-SQCommon@${PY_FLAVOR} + +USES= python +USE_PYTHON= pep517 autoplist + +post-install: + @${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/libsqnomad${PYTHON_EXT_SUFFIX}.so + +# there are a lot of errors during build stemming from the numpy code, for example: +# cc: error: unknown argument: '-mavx5124fmaps' +# cc: error: unknown argument: '-mavx5124vnniw' +# but these erros are in the test coe nd they don't break the build + +.include diff --git a/math/py-SQNomad/distinfo b/math/py-SQNomad/distinfo new file mode 100644 index 000000000000..d512f3fd8041 --- /dev/null +++ b/math/py-SQNomad/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1699747105 +SHA256 (SQNomad-0.2.3.tar.gz) = 07e2b1998ddb6bc6d3ea9515b956fbd2ba053e9445961b2f895e6af7d84a8fa7 +SIZE (SQNomad-0.2.3.tar.gz) = 455191 diff --git a/math/py-SQNomad/files/patch-setup.py b/math/py-SQNomad/files/patch-setup.py new file mode 100644 index 000000000000..b053c7d06f67 --- /dev/null +++ b/math/py-SQNomad/files/patch-setup.py @@ -0,0 +1,11 @@ +--- setup.py.orig 2023-11-12 00:10:52 UTC ++++ setup.py +@@ -55,7 +55,7 @@ class my_build_extension(_build_ext): + ext.extra_compile_args += ['-I'+os.path.join(numpy.__path__[0], 'core/include/numpy')] + + # force C++14 +- if 'linux' in sys.platform or 'darwin' in sys.platform: ++ if 'linux' in sys.platform or 'freebsd' in sys.platform or 'darwin' in sys.platform: + ext.extra_compile_args += ['-std=c++14'] + elif 'win32' in sys.platform: + # also define DLL_EXPORTS for sgtelib and NOMAD::Clock diff --git a/math/py-SQNomad/pkg-descr b/math/py-SQNomad/pkg-descr new file mode 100644 index 000000000000..02f94fc58178 --- /dev/null +++ b/math/py-SQNomad/pkg-descr @@ -0,0 +1,4 @@ +NOMAD is a C++ implementation of the Mesh Adaptive Direct Search algorithm +(MADS), designed for difficult blackbox optimization problems. These problems +occur when the functions defining the objective and constraints are the result +of costly computer simulations.