summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Cottlehuber <dch@FreeBSD.org>2025-05-28 09:04:11 +0000
committerDave Cottlehuber <dch@FreeBSD.org>2025-05-28 09:05:00 +0000
commit79704f2cd7aa65fd1d724b1b09733c2ccd8a9bd3 (patch)
tree23e49160c662816f20e78e731687251a1e702fff
parentmisc/py-aider-chat: bump dependencies (diff)
devel/py-oslex: new port, OS-independent wrapper of shlex
Required by misc/py-aider-chat Sponsored by: SkunkWerks, GmbH
-rw-r--r--devel/Makefile1
-rw-r--r--devel/py-oslex/Makefile21
-rw-r--r--devel/py-oslex/distinfo3
-rw-r--r--devel/py-oslex/pkg-descr5
4 files changed, 30 insertions, 0 deletions
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.