diff --git a/misc/py-oterm/Makefile b/misc/py-oterm/Makefile index 9115f4eb3869..1851cb06a631 100644 --- a/misc/py-oterm/Makefile +++ b/misc/py-oterm/Makefile @@ -1,32 +1,32 @@ PORTNAME= oterm -DISTVERSION= 0.4.2 +DISTVERSION= 0.4.4 CATEGORIES= misc python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= nivit@FreeBSD.org COMMENT= Text-based terminal client for Ollama WWW= https://github.com/ggozad/oterm LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE -BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}poetry-core>=1.9.0:devel/py-poetry-core@${PY_FLAVOR} +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hatchling>=1.25.0:devel/py-hatchling@${PY_FLAVOR} RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}aiosql>=10.1:databases/py-aiosql@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}aiosqlite>=0.19.0:databases/py-aiosqlite@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}linkify-it-py>=2.0.3:textproc/py-linkify-it-py@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}mdit-py-plugins>=0.4.1:textproc/py-mdit-py-plugins@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}ollama>=0.3.1:misc/py-ollama@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}packaging>=24.1:devel/py-packaging@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pillow>=10.3.0:graphics/py-pillow@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pyperclip>=1.7.0:devel/py-pyperclip@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}python-dotenv>=1.0.1:www/py-python-dotenv@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}rich-pixels>=3.0.1:graphics/py-rich-pixels@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}textual>=0.59.0:textproc/py-textual@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}typer>=0.12.3:devel/py-typer@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}uc-micro-py>=1.0.3:textproc/py-uc-micro-py@${PY_FLAVOR} USES= python:3.10+ USE_PYTHON= autoplist pep517 .include diff --git a/misc/py-oterm/distinfo b/misc/py-oterm/distinfo index e08de88edcb8..17039edc0d93 100644 --- a/misc/py-oterm/distinfo +++ b/misc/py-oterm/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1724226494 -SHA256 (oterm-0.4.2.tar.gz) = d24f19afba1e0c09aee0fb94cf39ea60b1ff31f8048ce33252d80a77b88778b3 -SIZE (oterm-0.4.2.tar.gz) = 21217 +TIMESTAMP = 1725279891 +SHA256 (oterm-0.4.4.tar.gz) = 276b6318d62b5de0b58ebc1ae9a94e14edf29c7d0bca44dd66b909d1099f8024 +SIZE (oterm-0.4.4.tar.gz) = 4250586 diff --git a/misc/py-oterm/files/patch-oterm_utils.py b/misc/py-oterm/files/patch-src_oterm_utils.py similarity index 90% rename from misc/py-oterm/files/patch-oterm_utils.py rename to misc/py-oterm/files/patch-src_oterm_utils.py index 6df624e298c6..e5adeac02557 100644 --- a/misc/py-oterm/files/patch-oterm_utils.py +++ b/misc/py-oterm/files/patch-src_oterm_utils.py @@ -1,26 +1,26 @@ ---- oterm/utils.py.orig 2024-05-15 16:35:57 UTC -+++ oterm/utils.py +--- src/oterm/utils.py.orig 2020-02-02 00:00:00 UTC ++++ src/oterm/utils.py @@ -1,4 +1,4 @@ -import sys +import platform from pathlib import Path @@ -16,12 +16,13 @@ def get_default_data_dir() -> Path: home = Path.home() system_paths = { - "win32": home / "AppData/Roaming/oterm", - "linux": home / ".local/share/oterm", - "darwin": home / "Library/Application Support/oterm", -+ "Darwin": home / "Library/Application Support/oterm", -+ "FreeBSD": home / ".local/share/oterm", -+ "Linux": home / ".local/share/oterm", + "Windows": home / "AppData/Roaming/oterm", ++ "Linux": home / ".local/share/oterm", ++ "FreeBSD": home / ".local/share/oterm", ++ "Darwin": home / "Library/Application Support/oterm", } - data_path = system_paths[sys.platform] + data_path = system_paths[platform.system()] return data_path