git: 79704f2cd7aa - main - devel/py-oslex: new port, OS-independent wrapper of shlex
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 28 May 2025 09:05:13 UTC
The branch main has been updated by dch:
URL: https://cgit.FreeBSD.org/ports/commit/?id=79704f2cd7aa65fd1d724b1b09733c2ccd8a9bd3
commit 79704f2cd7aa65fd1d724b1b09733c2ccd8a9bd3
Author: Dave Cottlehuber <dch@FreeBSD.org>
AuthorDate: 2025-05-28 09:04:11 +0000
Commit: Dave Cottlehuber <dch@FreeBSD.org>
CommitDate: 2025-05-28 09:05:00 +0000
devel/py-oslex: new port, OS-independent wrapper of shlex
Required by misc/py-aider-chat
Sponsored by: SkunkWerks, GmbH
---
devel/Makefile | 1 +
devel/py-oslex/Makefile | 21 +++++++++++++++++++++
devel/py-oslex/distinfo | 3 +++
devel/py-oslex/pkg-descr | 5 +++++
4 files changed, 30 insertions(+)
diff --git a/devel/Makefile b/devel/Makefile
index 390ce5701e51..75ec22dd9cf9 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -5364,6 +5364,7 @@
SUBDIR += py-os-vif
SUBDIR += py-os-win
SUBDIR += py-osc-lib
+ SUBDIR += py-oslex
SUBDIR += py-oslo.cache
SUBDIR += py-oslo.concurrency
SUBDIR += py-oslo.config
diff --git a/devel/py-oslex/Makefile b/devel/py-oslex/Makefile
new file mode 100644
index 000000000000..e1ba21cb71d9
--- /dev/null
+++ b/devel/py-oslex/Makefile
@@ -0,0 +1,21 @@
+PORTNAME= oslex
+DISTVERSION= 0.1.3
+CATEGORIES= devel
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= dch@FreeBSD.org
+COMMENT= OS-independent wrapper for shlex
+WWW= https://github.com/petamas/oslex
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hatchling>0:devel/py-hatchling@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= autoplist pep517 pytest
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/devel/py-oslex/distinfo b/devel/py-oslex/distinfo
new file mode 100644
index 000000000000..100206adbc81
--- /dev/null
+++ b/devel/py-oslex/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1747997238
+SHA256 (oslex-0.1.3.tar.gz) = 1ed4cd82c75df2a8bcb0da34400984183753933155d0c7d999fa533137685f2d
+SIZE (oslex-0.1.3.tar.gz) = 4415
diff --git a/devel/py-oslex/pkg-descr b/devel/py-oslex/pkg-descr
new file mode 100644
index 000000000000..e4f1806e94f3
--- /dev/null
+++ b/devel/py-oslex/pkg-descr
@@ -0,0 +1,5 @@
+oslex is an OS-independent wrapper for shlex and mslex.
+
+Its main purpose is to provide functions similar in functionality to
+shlex.quote(), shlex.split() and shlex.join() on both Windows and
+POSIX-compatible platforms.