aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2023-06-21 01:34:02 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2023-06-21 01:34:33 +0000
commit9237f9b5b91067d056482dfe00bf98501be4bc47 (patch)
tree41a2a611a688a23c677f8bcd2f3f5125a8682839
parent6b96fc465e9426ded06720791d80844430e1a5ab (diff)
devel/py-etuples: New port: Python S-expression emulation using tuple-like objects
-rw-r--r--devel/Makefile1
-rw-r--r--devel/py-etuples/Makefile27
-rw-r--r--devel/py-etuples/distinfo3
-rw-r--r--devel/py-etuples/pkg-descr6
4 files changed, 37 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index b3a5d2050fa4..41bf530baf93 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -4596,6 +4596,7 @@
SUBDIR += py-epdb
SUBDIR += py-epsilon
SUBDIR += py-etils
+ SUBDIR += py-etuples
SUBDIR += py-evdev
SUBDIR += py-eventlib
SUBDIR += py-ewah-bool-utils
diff --git a/devel/py-etuples/Makefile b/devel/py-etuples/Makefile
new file mode 100644
index 000000000000..40a7ad87f8d0
--- /dev/null
+++ b/devel/py-etuples/Makefile
@@ -0,0 +1,27 @@
+PORTNAME= etuples
+DISTVERSIONPREFIX= v
+DISTVERSION= 0.3.9
+#MASTER_SITES= PYPI # no tests
+CATEGORIES= devel python
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= Python S-expression emulation using tuple-like objects
+WWW= https://github.com/pythological/etuples
+
+LICENSE= APACHE20
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cons>0:devel/py-cons@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}multipledispatch>0:devel/py-multipledispatch@${PY_FLAVOR}
+
+USES= python:3.8+
+USE_PYTHON= distutils autoplist pytest # tests fail: TypeError: Tried to dispatch on non-type, see https://github.com/pythological/etuples/issues/24
+
+USE_GITHUB= yes
+GH_ACCOUNT= pythological
+GH_PROJECT= etuples
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/devel/py-etuples/distinfo b/devel/py-etuples/distinfo
new file mode 100644
index 000000000000..aee8fe154e57
--- /dev/null
+++ b/devel/py-etuples/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1687310534
+SHA256 (pythological-etuples-v0.3.9_GH0.tar.gz) = 9ccca3515b7bf7d3ad64b9e6cd84e116cb14b4ec05ec9eeda488c1d757a75dc4
+SIZE (pythological-etuples-v0.3.9_GH0.tar.gz) = 45310
diff --git a/devel/py-etuples/pkg-descr b/devel/py-etuples/pkg-descr
new file mode 100644
index 000000000000..bd3baf39bfe9
--- /dev/null
+++ b/devel/py-etuples/pkg-descr
@@ -0,0 +1,6 @@
+Python S-expression emulation using tuple-like objects.
+
+In computer programming, an S-expression (or symbolic expression, abbreviated
+as sexpr or sexp) is an expression in a like-named notation for nested list
+(tree-structured) data. S-expressions were invented for and popularized by the
+programming language Lisp, which uses them for source code as well as data.