From nobody Sat Sep 07 06:25:05 2024 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 4X13424wnJz5Thyk; Sat, 07 Sep 2024 06:25:06 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4X1342202yz43Yc; Sat, 7 Sep 2024 06:25:06 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1725690306; 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=PB9BUj720GKzkgo/G3+Ihqfn3YkpQQnR5T4efr0blpE=; b=HHD9obv2LzbNxNS4AZzHvxOztxoF8R0AWFDZLDN5PPPmuCU9nxOXCfREA6KUExWZvJ4dqS YQdg5rdq4maYLRpqTwQH+gLWn+Upl45UCBWYXVj9+WtkufDPFTtZWbiEOyDMfugoCd/Kpe LFXs6SYFH/0b37WztptC7Dk/8IqZnxrpHNLLOonSbPJbNYoAC4Dw0IvOuvFpYquU/5RZV+ iVky2hVTbJO4v/kN1MW8pj5MCI9WhN+rddfJroCuIX4KG0AwxFvF4BtTZuYA5VnaCnNPR9 j2WLcWNxwRjG3u3FwnxfMhOVXRKgjS8qEwjWpWuW+gMFU0fyJylN7171XnDkug== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1725690306; a=rsa-sha256; cv=none; b=Lbw8ExzanNawsd+OGyZVWLoF+CdWYp8LysK/eAn0n87WjTRo6rFuHcQ5lbZA40aUZpg1bU 5KnEW1UAt5hHmGOxmWTyBG8nKTYrfd0DP9f1AW8J5fgDIYvMB4Xq+fJ/vCcGtlOzNZ2t7Z LM85+14SHrDC5LZYPBLh4YRT+MJddpsui84Z9WJDVYbYHWJu6idNiUZFd2GrN6vQeYJ1cb LCxaOgWw8Skd6fIoejTAiYvdzrUjEs6CDej7rrGt/XkB/WPfw+Wrl8axEobsSIEvH99QiS PjiBRnjuBGIGXb+lurPMWjxCmJMT2Jz5P/A0IsIp+c7zIn3DoEtEVUiqOYKBfQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1725690306; 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=PB9BUj720GKzkgo/G3+Ihqfn3YkpQQnR5T4efr0blpE=; b=GkG5/UfrVd7Tgz1x7we3w2kv3zMbP4QBO9X5uXjLUzkG1+s6GLFlYanjWEB2WV09MQOuW1 ROPTm/QuyPlO7CW+uimxfEK+F0SAmovtTjEDa+uAfs/kQkoLSCXg8V2LDK2KN7rIt3Yhz5 xTwbknsSSekpfIDM5RJDakTyy+Lh+7OAIdctIxCkAZxwxyBUJmPvFD0snS1TCJT7OfPTxX whuHCMQsK+9ebouH7r9unzWFtu02JF6zh67F2WOu2lvufYeH0WJuXSUec7r/CvdECZxz6T vdAJ5Gar9fbukRA1GrsbLPQHf//7Ww8IdbcTnQKzuPEMAw3xeZAQFG0c/VO6ig== 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 4X13420QdvzPKK; Sat, 7 Sep 2024 06:25:06 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4876P5sH019906; Sat, 7 Sep 2024 06:25:05 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4876P5rj019903; Sat, 7 Sep 2024 06:25:05 GMT (envelope-from git) Date: Sat, 7 Sep 2024 06:25:05 GMT Message-Id: <202409070625.4876P5rj019903@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: 93b107b12f53 - main - graphics/py-vispy: New port: High-performance interactive 2D/3D data visualization 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: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-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: 93b107b12f535c42dcc7fe457516796767c74301 Auto-Submitted: auto-generated The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=93b107b12f535c42dcc7fe457516796767c74301 commit 93b107b12f535c42dcc7fe457516796767c74301 Author: Yuri Victorovich AuthorDate: 2024-09-07 04:28:21 +0000 Commit: Yuri Victorovich CommitDate: 2024-09-07 06:24:50 +0000 graphics/py-vispy: New port: High-performance interactive 2D/3D data visualization library --- graphics/Makefile | 1 + graphics/py-vispy/Makefile | 33 ++++++++++++++++++++++ graphics/py-vispy/distinfo | 3 ++ graphics/py-vispy/files/patch-pyproject.toml | 11 ++++++++ .../files/patch-vispy_util_dpi_____init____.py | 11 ++++++++ .../files/patch-vispy_util_fonts___freetype.py | 11 ++++++++ .../files/patch-vispy_util_fonts___triage.py | 12 ++++++++ graphics/py-vispy/pkg-descr | 3 ++ 8 files changed, 85 insertions(+) diff --git a/graphics/Makefile b/graphics/Makefile index 82e21992a16e..417cc6998319 100644 --- a/graphics/Makefile +++ b/graphics/Makefile @@ -1008,6 +1008,7 @@ SUBDIR += py-urbansim SUBDIR += py-utm SUBDIR += py-vecrec + SUBDIR += py-vispy SUBDIR += py-visvis SUBDIR += py-wand SUBDIR += py-webcolors diff --git a/graphics/py-vispy/Makefile b/graphics/py-vispy/Makefile new file mode 100644 index 000000000000..4b96f5d51cdc --- /dev/null +++ b/graphics/py-vispy/Makefile @@ -0,0 +1,33 @@ +PORTNAME= vispy +DISTVERSION= 0.14.3 +CATEGORIES= graphics science python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= High-performance interactive 2D/3D data visualization library +WWW= https://vispy.org/ + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE.txt + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cython3>=3.0:lang/cython3@${PY_FLAVOR} \ + ${PYNUMPY} \ + ${PY_SETUPTOOLS} \ + ${PYTHON_PKGNAMEPREFIX}setuptools-scm>=7.1:devel/py-setuptools-scm@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}freetype-py>0:print/py-freetype-py@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}hsluv>0:graphics/py-hsluv@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}kiwisolver>0:math/py-kiwisolver@${PY_FLAVOR} \ + ${PYNUMPY} \ + ${PYTHON_PKGNAMEPREFIX}packaging>0:devel/py-packaging@${PY_FLAVOR} + +USES= python +USE_PYTHON= pep517 autoplist pytest # pytest crashes on some tests, and then keeps restarting + +TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} + +post-install: + @${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/vispy/visuals/text/_sdf_cpu${PYTHON_EXT_SUFFIX}.so + +.include diff --git a/graphics/py-vispy/distinfo b/graphics/py-vispy/distinfo new file mode 100644 index 000000000000..59c9ad4bec40 --- /dev/null +++ b/graphics/py-vispy/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1725682365 +SHA256 (vispy-0.14.3.tar.gz) = efbbb847a908baf7e7169ab9bf296138a39364f367e6cb0a8ec03ad71699d31d +SIZE (vispy-0.14.3.tar.gz) = 2508703 diff --git a/graphics/py-vispy/files/patch-pyproject.toml b/graphics/py-vispy/files/patch-pyproject.toml new file mode 100644 index 000000000000..05cbb6a12162 --- /dev/null +++ b/graphics/py-vispy/files/patch-pyproject.toml @@ -0,0 +1,11 @@ +--- pyproject.toml.orig 2024-09-07 04:18:42 UTC ++++ pyproject.toml +@@ -3,7 +3,7 @@ requires = [ + "wheel", + "setuptools>=42", + # see https://numpy.org/devdocs/dev/depending_on_numpy.html#numpy-2-0-specific-advice +- "numpy>=2.0.0rc2", ++ "numpy", + "setuptools_scm[toml]>=7.1", + "Cython>=3.0.0" + ] diff --git a/graphics/py-vispy/files/patch-vispy_util_dpi_____init____.py b/graphics/py-vispy/files/patch-vispy_util_dpi_____init____.py new file mode 100644 index 000000000000..0c024a9ff26d --- /dev/null +++ b/graphics/py-vispy/files/patch-vispy_util_dpi_____init____.py @@ -0,0 +1,11 @@ +--- vispy/util/dpi/__init__.py.orig 2023-09-09 07:30:09 UTC ++++ vispy/util/dpi/__init__.py +@@ -11,6 +11,8 @@ __all__ = ['get_dpi'] + + if sys.platform.startswith('linux'): + from ._linux import get_dpi ++elif sys.platform.startswith('freebsd'): ++ from ._linux import get_dpi + elif sys.platform == 'darwin': + from ._quartz import get_dpi + elif sys.platform.startswith('win'): diff --git a/graphics/py-vispy/files/patch-vispy_util_fonts___freetype.py b/graphics/py-vispy/files/patch-vispy_util_fonts___freetype.py new file mode 100644 index 000000000000..868e6cac5121 --- /dev/null +++ b/graphics/py-vispy/files/patch-vispy_util_fonts___freetype.py @@ -0,0 +1,11 @@ +--- vispy/util/fonts/_freetype.py.orig 2023-09-09 07:33:03 UTC ++++ vispy/util/fonts/_freetype.py +@@ -14,6 +14,8 @@ import numpy as np + from ._vispy_fonts import _vispy_fonts, _get_vispy_font_filename + if sys.platform.startswith('linux'): + from ...ext.fontconfig import find_font ++elif sys.platform.startswith('freebsd'): ++ from ...ext.fontconfig import find_font + elif sys.platform.startswith('win'): + from ._win32 import find_font # noqa, analysis:ignore + else: diff --git a/graphics/py-vispy/files/patch-vispy_util_fonts___triage.py b/graphics/py-vispy/files/patch-vispy_util_fonts___triage.py new file mode 100644 index 000000000000..26730f182a02 --- /dev/null +++ b/graphics/py-vispy/files/patch-vispy_util_fonts___triage.py @@ -0,0 +1,12 @@ +--- vispy/util/fonts/_triage.py.orig 2023-09-09 07:31:17 UTC ++++ vispy/util/fonts/_triage.py +@@ -10,6 +10,9 @@ from ._vispy_fonts import _vispy_fonts + if sys.platform.startswith('linux'): + from ._freetype import _load_glyph + from ...ext.fontconfig import _list_fonts ++elif sys.platform.startswith('freebsd'): ++ from ._freetype import _load_glyph ++ from ...ext.fontconfig import _list_fonts + elif sys.platform == 'darwin': + from ._quartz import _load_glyph, _list_fonts + elif sys.platform.startswith('win'): diff --git a/graphics/py-vispy/pkg-descr b/graphics/py-vispy/pkg-descr new file mode 100644 index 000000000000..0ecb213f15ae --- /dev/null +++ b/graphics/py-vispy/pkg-descr @@ -0,0 +1,3 @@ +VisPy is a high-performance interactive 2D/3D data visualization library +leveraging the computational power of modern Graphics Processing Units +(GPUs) through the OpenGL library to display very large datasets.