git: f3e2ea8aabdc - main - devel/py-stone: Add py-stone 3.3.1
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 27 Aug 2022 10:30:43 UTC
The branch main has been updated by sunpoet:
URL: https://cgit.FreeBSD.org/ports/commit/?id=f3e2ea8aabdcf065e3fbb74a0d0d4b8dfd9064cc
commit f3e2ea8aabdcf065e3fbb74a0d0d4b8dfd9064cc
Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-08-27 10:10:27 +0000
Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-08-27 10:10:27 +0000
devel/py-stone: Add py-stone 3.3.1
The Official API Spec Language for Dropbox.
WWW: https://github.com/dropbox/stone
---
devel/Makefile | 1 +
devel/py-stone/Makefile | 24 ++++++++++++++++++++++++
devel/py-stone/distinfo | 3 +++
devel/py-stone/files/patch-setup.py | 12 ++++++++++++
devel/py-stone/files/requirements.txt | 2 ++
devel/py-stone/pkg-descr | 3 +++
6 files changed, 45 insertions(+)
diff --git a/devel/Makefile b/devel/Makefile
index 07b33620493a..974224f919ca 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -5315,6 +5315,7 @@
SUBDIR += py-stdlib-list
SUBDIR += py-stdnum
SUBDIR += py-stevedore
+ SUBDIR += py-stone
SUBDIR += py-stopit
SUBDIR += py-strategies
SUBDIR += py-streamparse
diff --git a/devel/py-stone/Makefile b/devel/py-stone/Makefile
new file mode 100644
index 000000000000..caeae48914bf
--- /dev/null
+++ b/devel/py-stone/Makefile
@@ -0,0 +1,24 @@
+PORTNAME= stone
+PORTVERSION= 3.3.1
+CATEGORIES= devel python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= sunpoet@FreeBSD.org
+COMMENT= Interface description language (IDL) for APIs
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}ply>=3.4:devel/py-ply@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}six>=1.12.0:devel/py-six@${PY_FLAVOR}
+
+USES= python:3.7+
+USE_PYTHON= autoplist concurrent distutils
+
+NO_ARCH= yes
+
+post-patch:
+ @${CP} ${FILESDIR}/requirements.txt ${WRKSRC}/
+
+.include <bsd.port.mk>
diff --git a/devel/py-stone/distinfo b/devel/py-stone/distinfo
new file mode 100644
index 000000000000..6cf3c14364d8
--- /dev/null
+++ b/devel/py-stone/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1660576686
+SHA256 (stone-3.3.1.tar.gz) = 4ef0397512f609757975f7ec09b35639d72ba7e3e17ce4ddf399578346b4cb50
+SIZE (stone-3.3.1.tar.gz) = 190888
diff --git a/devel/py-stone/files/patch-setup.py b/devel/py-stone/files/patch-setup.py
new file mode 100644
index 000000000000..a21bd671c6a3
--- /dev/null
+++ b/devel/py-stone/files/patch-setup.py
@@ -0,0 +1,12 @@
+--- setup.py.orig 2022-01-25 21:31:58 UTC
++++ setup.py
+@@ -22,9 +22,6 @@ with open('requirements.txt') as f: # pylint: disable
+ install_reqs += f.read().splitlines()
+
+ setup_requires = [
+- # Pin pytest-runner to 5.2.0, since 5.3.0 uses `find_namespaces` directive, not supported in
+- # Python 2.7
+- 'pytest-runner == 5.2.0',
+ ]
+
+ # WARNING: This imposes limitations on test/requirements.txt such that the
diff --git a/devel/py-stone/files/requirements.txt b/devel/py-stone/files/requirements.txt
new file mode 100644
index 000000000000..df3799c3ccb9
--- /dev/null
+++ b/devel/py-stone/files/requirements.txt
@@ -0,0 +1,2 @@
+ply>= 3.4
+six>= 1.12.0
diff --git a/devel/py-stone/pkg-descr b/devel/py-stone/pkg-descr
new file mode 100644
index 000000000000..1e264d0b513c
--- /dev/null
+++ b/devel/py-stone/pkg-descr
@@ -0,0 +1,3 @@
+The Official API Spec Language for Dropbox.
+
+WWW: https://github.com/dropbox/stone