From nobody Wed Nov 08 22:05:09 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 4SQfK20cXjz50Tqw; Wed, 8 Nov 2023 22:05:10 +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 4SQfK209L7z4drs; Wed, 8 Nov 2023 22:05:10 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1699481110; 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=NUKP/4VNfwP/twrDRYCIvrWkJyXb7Zn78qK1qZmLF88=; b=eHBtp4R+meHTWJ+mNVuSMNmDz/Xi5XJT1qB9oR6lFTjzLgEop9n7mfcjHmcZnOh7tUkHBY 9P1VYhrLtb948/lKNu+XkX1xMTfvcPKwRh02/Drx+XKe7br1EyeFHvrF4MGa0cR5HqdAzI IqDde3/Htp7tZIzEULVJ6aM0AB2AicE3Ei/MetYR/tS2mzLCdwl2/eU4Kb6jtuXULWcC4q 5MoHXrhww5sv2xnnsIJw5bvkKZE+jJAXkMuadL+brU6+eyszKXLE38oTPNkdbG3G46RUdD sPeyYeh/fRk7Wz9w2kxhGLF4KOF9gUZEyN2wlWIbs9ApohBrs9b3+/6I/3kTeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1699481110; 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=NUKP/4VNfwP/twrDRYCIvrWkJyXb7Zn78qK1qZmLF88=; b=c3chca/YShVFlvvOiCTU13+yS4EOgCViYM65sDvbKXtghAvUaDoUTZIloFUeMD0U9m4c49 7N4HbdZgj2PX/mVsHDi0HGeHuVamw5GrRiL/irFLF0Bj0sy5kKGaoWhjzk4bux9WnBiteH y3OgYFGlCxPgtVFcS/jG7/A+nmgZsuFsJF8bGNuNN6eU9xE0E8FBvs8Bf5J/OFAz7jnPpT zHH94qq1EyPEBCes2CSWrpCv18wGmh1/hu9RjsHJp6TiQqSqvcX/L+cKUjxqz3cDcSwygi b3S0HsqhdRAUGqYN+NExGSMDOVaVaPHuVKM+6FjjxVldvg817qWYlc8VpGVKug== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1699481110; a=rsa-sha256; cv=none; b=SDds24ESRUZUDx4TVKwUNjXVYMZMgwz/kwaJDl3ZxaTQ/KbJXW4xOtnS1+47FGjg4qKq1+ ITCXVSIUgdfe1UlMTqe9tDiXPN4yXVuG+YZ3fY/FvdhGh7I9mxBQCZZYNP+HvaM3ffA+vO FBUNv7rd6UcJg+U9jAWNLeIWcc6xje3c5ta2I3l+LidBpJUkZmzP1DHimVtT32WatsKcu6 nzcqEw5yF2C3xgpeCjDb1WrgI6P+6UaIcJtLnoGcbC9jKjEwhrKBh3UXQB3Elxydln//en RnXUFlmkrVZRu3TtccpPAnJN+OwON1z0meqGBlxl5YfVCLkmrYqr/xgzAvjR1A== 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 4SQfK16DpxzqDL; Wed, 8 Nov 2023 22:05:09 +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 3A8M59CJ013384; Wed, 8 Nov 2023 22:05:09 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3A8M5977013381; Wed, 8 Nov 2023 22:05:09 GMT (envelope-from git) Date: Wed, 8 Nov 2023 22:05:09 GMT Message-Id: <202311082205.3A8M5977013381@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: 46b92799b345 - main - science/py-ncrystal: New port: Library for thermal neutron transport in crystals and other materials 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: 46b92799b3455f7ff955e032b914facfff791d6b Auto-Submitted: auto-generated The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=46b92799b3455f7ff955e032b914facfff791d6b commit 46b92799b3455f7ff955e032b914facfff791d6b Author: Yuri Victorovich AuthorDate: 2023-11-08 22:04:04 +0000 Commit: Yuri Victorovich CommitDate: 2023-11-08 22:05:07 +0000 science/py-ncrystal: New port: Library for thermal neutron transport in crystals and other materials --- science/Makefile | 1 + science/py-ncrystal/Makefile | 36 ++++++++++++++++++++++++++ science/py-ncrystal/distinfo | 3 +++ science/py-ncrystal/files/patch-pyproject.toml | 10 +++++++ science/py-ncrystal/pkg-descr | 7 +++++ 5 files changed, 57 insertions(+) diff --git a/science/Makefile b/science/Makefile index b4b719897c39..2c091da790bd 100644 --- a/science/Makefile +++ b/science/Makefile @@ -369,6 +369,7 @@ SUBDIR += py-mp-api SUBDIR += py-mpcontribs-client SUBDIR += py-mrchem + SUBDIR += py-ncrystal SUBDIR += py-netCDF4 SUBDIR += py-netcdf-flattener SUBDIR += py-nglview diff --git a/science/py-ncrystal/Makefile b/science/py-ncrystal/Makefile new file mode 100644 index 000000000000..30c4fcf6b840 --- /dev/null +++ b/science/py-ncrystal/Makefile @@ -0,0 +1,36 @@ +PORTNAME= ncrystal +DISTVERSIONPREFIX= v +DISTVERSION= 3.7.1 +CATEGORIES= science # physics +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Library for thermal neutron transport in crystals and other materials +WWW= https://mctools.github.io/ncrystal/ + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PY_SETUPTOOLS} \ + ${PYNUMPY} \ + ${PYTHON_PKGNAMEPREFIX}scikit-build>0:devel/py-scikit-build@${PY_FLAVOR} \ + cmake:devel/cmake-core + +USES= python +USE_PYTHON= pep517 autoplist + +USE_GITHUB= yes +GH_ACCOUNT= mctools + +POST_PLIST= fix-plist + +post-install: + # delete scripts (they are installed by science/ncrystal) + @${RM} ${STAGEDIR}${PREFIX}/bin/* + # strip binary + @${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/NCrystal/ncrystal_pyinst_data/lib/libNCrystal.so + +fix-plist: # see post-install + @${REINPLACE_CMD} -e "s|^bin/.*$$||" ${TMPPLIST} + +.include diff --git a/science/py-ncrystal/distinfo b/science/py-ncrystal/distinfo new file mode 100644 index 000000000000..6e0e9a659c6a --- /dev/null +++ b/science/py-ncrystal/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1699390662 +SHA256 (mctools-ncrystal-v3.7.1_GH0.tar.gz) = ce523dd3aca1d0fd1989cd4d48cc3e2ce90590c47e219e2f2394677c63a87076 +SIZE (mctools-ncrystal-v3.7.1_GH0.tar.gz) = 1839587 diff --git a/science/py-ncrystal/files/patch-pyproject.toml b/science/py-ncrystal/files/patch-pyproject.toml new file mode 100644 index 000000000000..477838aab7bb --- /dev/null +++ b/science/py-ncrystal/files/patch-pyproject.toml @@ -0,0 +1,10 @@ +--- pyproject.toml.orig 2023-11-07 22:10:54 UTC ++++ pyproject.toml +@@ -23,7 +23,6 @@ + requires = [ + "setuptools>=42", + "scikit-build>=0.13", +- "cmake>=3.18", + "numpy" + ] + build-backend = "setuptools.build_meta" diff --git a/science/py-ncrystal/pkg-descr b/science/py-ncrystal/pkg-descr new file mode 100644 index 000000000000..11f0f875bc5d --- /dev/null +++ b/science/py-ncrystal/pkg-descr @@ -0,0 +1,7 @@ +NCrystal is a library and associated tools which enables calculations for +Monte Carlo simulations of thermal neutrons in crystals and other materials, +supporting a range of physics including both coherent, incoherent, elastic and +inelastic scatterings in a wide range of materials, including crystal powders, +mosaic single crystals, layered single crystals, amorphous solids, liquids, and +gasses. Multiphase materials or isotopically enriched materials are supported as +well, and the framework furthermore supports phase-contrast (SANS) physics.