git: 6b96fc465e94 - main - devel/py-cons: New port: Implementation of Lisp/Scheme-like cons in Python
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 21 Jun 2023 01:34:37 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=6b96fc465e9426ded06720791d80844430e1a5ab
commit 6b96fc465e9426ded06720791d80844430e1a5ab
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2023-06-21 01:16:29 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-06-21 01:34:32 +0000
devel/py-cons: New port: Implementation of Lisp/Scheme-like cons in Python
---
devel/Makefile | 1 +
devel/py-cons/Makefile | 27 +++++++++++++++++++++++++++
devel/py-cons/distinfo | 3 +++
devel/py-cons/pkg-descr | 6 ++++++
4 files changed, 37 insertions(+)
diff --git a/devel/Makefile b/devel/Makefile
index 61cf65eb9f0f..b3a5d2050fa4 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -4480,6 +4480,7 @@
SUBDIR += py-confusable_homoglyphs
SUBDIR += py-confuse
SUBDIR += py-connection_pool
+ SUBDIR += py-cons
SUBDIR += py-constantly
SUBDIR += py-construct
SUBDIR += py-construct-classes
diff --git a/devel/py-cons/Makefile b/devel/py-cons/Makefile
new file mode 100644
index 000000000000..47e33ef362fc
--- /dev/null
+++ b/devel/py-cons/Makefile
@@ -0,0 +1,27 @@
+PORTNAME= cons
+DISTVERSIONPREFIX= v
+DISTVERSION= 0.4.5
+#MASTER_SITES= PYPI # no tests
+CATEGORIES= devel python
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= Implementation of Lisp/Scheme-like cons in Python
+WWW= https://github.com/pythological/python-cons/
+
+LICENSE= GPLv3
+LICENSE_FILE= ${WRKSRC}/LICENSE.txt
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}versioneer>=0:devel/py-versioneer@${PY_FLAVOR}
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}logical-unification>=0.4.0:math/py-logical-unification@${PY_FLAVOR}
+
+USES= python:3.7+
+USE_PYTHON= distutils autoplist pytest
+
+USE_GITHUB= yes
+GH_ACCOUNT= pythological
+GH_PROJECT= python-cons
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/devel/py-cons/distinfo b/devel/py-cons/distinfo
new file mode 100644
index 000000000000..60460b6270c3
--- /dev/null
+++ b/devel/py-cons/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1687305014
+SHA256 (pythological-python-cons-v0.4.5_GH0.tar.gz) = cd1861d3a1950f5830f2d34b19109e887e365b1e060d3894e6de7993d3d878c6
+SIZE (pythological-python-cons-v0.4.5_GH0.tar.gz) = 40309
diff --git a/devel/py-cons/pkg-descr b/devel/py-cons/pkg-descr
new file mode 100644
index 000000000000..093694d006b9
--- /dev/null
+++ b/devel/py-cons/pkg-descr
@@ -0,0 +1,6 @@
+The cons package attempts to emulate the semantics of Lisp/Scheme's cons as
+closely as possible while incorporating all the built-in Python sequence types.
+
+In computer programming, cons is a fundamental function in most dialects of the
+Lisp programming language. cons constructs memory objects which hold two values
+or pointers to two values.