From nobody Wed Aug 3 17:52:03 2022 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 4LyfZD1fYgz4YGy0; Wed, 3 Aug 2022 17:52:04 +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 4LyfZD1CjLz45Nr; Wed, 3 Aug 2022 17:52:04 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659549124; 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=a3yrk0DJd3YU0Bofkav2DUJBR1Kkn4zEpjeOF2ipS+U=; b=PjojRNqoWlH7HoB9qR7/z/954oGUejeCea7BPTBHhaGbOdqVrmOntizXje8WokVQ2s1y+t 4+WQ3ujaWqx3/02RlGNbZwEeyaP3zvvM09wiXSXMwwsC8JY/AbjMlda6ACh7OXImR1vILS zmRa3Iw+C7QMtdy2DzrLb56kCaSAW2s5zyf5bq5h1q+3C2dpczOhV6YH/32EQmnJBr/TaF 3GeRX1d7jUbXxfYT7lwcbvQ1R5RqVLHEMhzBNfWhHWUUBYF8gDwjFPTH/ZhIprWh5U+EjV xClIcfBCwqskACWOeCBYvFVdWjPZwrzWFsQW3t9Zqq/Uv+pFM6CUoOog64+3GQ== 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 4LyfZD0Fz0z10jb; Wed, 3 Aug 2022 17:52:04 +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 273Hq3mw026191; Wed, 3 Aug 2022 17:52:03 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 273Hq3Nh026190; Wed, 3 Aug 2022 17:52:03 GMT (envelope-from git) Date: Wed, 3 Aug 2022 17:52:03 GMT Message-Id: <202208031752.273Hq3Nh026190@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: 9e90ff1d77cf - main - science/py-pymbd: New port: Many-body dispersion library 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: 9e90ff1d77cf396920e001657084c6d6e9ef979e Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659549124; 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=a3yrk0DJd3YU0Bofkav2DUJBR1Kkn4zEpjeOF2ipS+U=; b=VunSDbUd36xes8Xl6ragmNjnzXNRAUIjNVc7W+LQUAxffdHoBcJEKX7Edg5nhoU02TymWF sZw6BeOVPOr2wS8FVWfi9z3RrhiRxvzjDdSua2nw0JkZaiVO3CWQvGjUtZUAekUsqy2+Lr aD9iwd83yz/ma4Cdzqt2yUyOVDGUlv9RUmf5swQguVjfovxgKWhUIszTdn6sEBTqUUwQRE 5A4ID+tgMuz8Zg18zMWrF8Of/kuNPIGTSkr8YrtWgRn7z2aLYLNC5KTEXKNuFpglapwkjS 95yTvp9XPDFt85ZA+iaG+LEiyZcmxOQJJjsS/Lg2dhWix2xC6x0nCUUE5WOp/w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1659549124; a=rsa-sha256; cv=none; b=D0X16YytF1rD6iNdqNtTZSDbBhpFrchevAga08ZUtWM0qwCz5TW5Enu5XhSoLr4Q0bgfJr xq/4fm1BcOe8zsWog7xBIFYsSrFWMnYZZQe7vi45f0RD5XAhGzVKM95KrOJhzwi71DqgeS QQwFyQgkwLYyiZD1JsAwnrzUArsAidT/OG/iYq7vDQDW8X7SankyI1hfy6GA63theRH9rO 2uD2kVOzEchk8CX1NPa94ImO9xSDLk5QcgtHFGFVqxOuQNxgQKWI7bcgb24eKmXxKVDOIZ /RUgz5/BvXjqS8tXjHGUIts9E6NEXuaGKY+MwT1HVY9+XG3APP+VHuvNGcxyag== 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=9e90ff1d77cf396920e001657084c6d6e9ef979e commit 9e90ff1d77cf396920e001657084c6d6e9ef979e Author: Yuri Victorovich AuthorDate: 2022-08-03 17:51:20 +0000 Commit: Yuri Victorovich CommitDate: 2022-08-03 17:52:01 +0000 science/py-pymbd: New port: Many-body dispersion library --- science/Makefile | 1 + science/py-pymbd/Makefile | 28 ++++++++++++++++++++++++++++ science/py-pymbd/distinfo | 3 +++ science/py-pymbd/files/example.py | 6 ++++++ science/py-pymbd/pkg-descr | 12 ++++++++++++ 5 files changed, 50 insertions(+) diff --git a/science/Makefile b/science/Makefile index fefe4450d49d..8cf5f3a1088d 100644 --- a/science/Makefile +++ b/science/Makefile @@ -330,6 +330,7 @@ SUBDIR += py-pygmo2 SUBDIR += py-pyked SUBDIR += py-pymatgen + SUBDIR += py-pymbd SUBDIR += py-pymol SUBDIR += py-pyosf SUBDIR += py-pyprecice diff --git a/science/py-pymbd/Makefile b/science/py-pymbd/Makefile new file mode 100644 index 000000000000..2a3986a4fd7d --- /dev/null +++ b/science/py-pymbd/Makefile @@ -0,0 +1,28 @@ +PORTNAME= pymbd +DISTVERSION= 0.12.5 +CATEGORIES= science # chemistry +MASTER_SITES= https://github.com/libmbd/libmbd/releases/download/${DISTVERSION}/ +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Many-body dispersion library + +LICENSE= MPL20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cffi>:devel/py-cffi@${PY_FLAVOR} +LIB_DEPENDS= libmbd.so:science/libmbd +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cffi>:devel/py-cffi@${PY_FLAVOR} + +USES= localbase python +USE_PYTHON= distutils autoplist + +TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} + +post-install: # strip binary + @${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/${PORTNAME}/_libmbd.abi3.so + +do-test: # also see https://github.com/libmbd/libmbd/issues/44 + @${SETENV} ${TEST_ENV} ${PYTHON_CMD} ${FILESDIR}/example.py + +.include diff --git a/science/py-pymbd/distinfo b/science/py-pymbd/distinfo new file mode 100644 index 000000000000..30185025db76 --- /dev/null +++ b/science/py-pymbd/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1659547712 +SHA256 (pymbd-0.12.5.tar.gz) = ca13375f8f4051380e7833bd3dd7c03780b3e2064fa96ec0da80b3fd7adfae78 +SIZE (pymbd-0.12.5.tar.gz) = 31229 diff --git a/science/py-pymbd/files/example.py b/science/py-pymbd/files/example.py new file mode 100644 index 000000000000..31037cd7f2ce --- /dev/null +++ b/science/py-pymbd/files/example.py @@ -0,0 +1,6 @@ +from pymbd import mbd_energy_species +from pymbd.fortran import MBDGeom + +energy = mbd_energy_species([(0, 0, 0), (0, 0, 7.5)], ['Ar', 'Ar'], [1, 1], 0.83) + +print("energy="+str(energy)) diff --git a/science/py-pymbd/pkg-descr b/science/py-pymbd/pkg-descr new file mode 100644 index 000000000000..b0ac6664d8fd --- /dev/null +++ b/science/py-pymbd/pkg-descr @@ -0,0 +1,12 @@ +Pymbd is Python bindings for Libmbd. + +Libmbd implements the many-body dispersion (MBD) method in several +programming languages and frameworks: + +The Fortran implementation is the reference, most advanced +implementation, with support for analytical gradients and distributed +parallelism, and additional functionality beyond the MBD method +itself. It provides a low-level and a high-level Fortran API, as well +as a C API. Furthermore, Python bindings to the C API are provided. + +WWW: https://github.com/libmbd/libmbd