git: 6aa757919035 - main - devel/py-pyyaml-env-tag: Add new port
Kai Knoblich
kai at FreeBSD.org
Fri Sep 24 11:59:43 UTC 2021
The branch main has been updated by kai:
URL: https://cgit.FreeBSD.org/ports/commit/?id=6aa75791903534f48af15f960712d3631696f1f2
commit 6aa75791903534f48af15f960712d3631696f1f2
Author: Kai Knoblich <kai at FreeBSD.org>
AuthorDate: 2021-09-24 11:41:10 +0000
Commit: Kai Knoblich <kai at FreeBSD.org>
CommitDate: 2021-09-24 11:57:55 +0000
devel/py-pyyaml-env-tag: Add new port
This package was inspired by the Ruby package "yaml-env-tag". Its main
purpose is to reference environment variables in YAML scripts.
In contrast to other Python packages, that provide similar
functionality, e.g. "pyyaml-tags" it also offers to define defaults and
to have the values not only as strings.
WWW: https://github.com/waylan/pyyaml-env-tag
---
devel/Makefile | 1 +
devel/py-pyyaml-env-tag/Makefile | 26 ++++++++++++++++++++++++++
devel/py-pyyaml-env-tag/distinfo | 3 +++
devel/py-pyyaml-env-tag/pkg-descr | 8 ++++++++
4 files changed, 38 insertions(+)
diff --git a/devel/Makefile b/devel/Makefile
index 309faed41cd2..a94ad53d72d7 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -5076,6 +5076,7 @@
SUBDIR += py-pyvisa
SUBDIR += py-pyvisa-py
SUBDIR += py-pyxb
+ SUBDIR += py-pyyaml-env-tag
SUBDIR += py-pyyaml-include
SUBDIR += py-pyzipper
SUBDIR += py-q
diff --git a/devel/py-pyyaml-env-tag/Makefile b/devel/py-pyyaml-env-tag/Makefile
new file mode 100644
index 000000000000..8df273399785
--- /dev/null
+++ b/devel/py-pyyaml-env-tag/Makefile
@@ -0,0 +1,26 @@
+PORTNAME= pyyaml-env-tag
+DISTVERSION= 0.1
+CATEGORIES= devel python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+DISTNAME= pyyaml_env_tag-${DISTVERSION}
+
+MAINTAINER= kai at FreeBSD.org
+COMMENT= Custom YAML tag for referencing environment variables in YAML files
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}yaml>0:devel/py-yaml@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= autoplist distutils
+
+TEST_ENV= PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
+
+NO_ARCH= yes
+
+do-test:
+ @cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} test_yaml_env_tag.py -v
+
+.include <bsd.port.mk>
diff --git a/devel/py-pyyaml-env-tag/distinfo b/devel/py-pyyaml-env-tag/distinfo
new file mode 100644
index 000000000000..694994326a90
--- /dev/null
+++ b/devel/py-pyyaml-env-tag/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1631897120
+SHA256 (pyyaml_env_tag-0.1.tar.gz) = 70092675bda14fdec33b31ba77e7543de9ddc88f2e5b99160396572d11525bdb
+SIZE (pyyaml_env_tag-0.1.tar.gz) = 5631
diff --git a/devel/py-pyyaml-env-tag/pkg-descr b/devel/py-pyyaml-env-tag/pkg-descr
new file mode 100644
index 000000000000..d7d47d965747
--- /dev/null
+++ b/devel/py-pyyaml-env-tag/pkg-descr
@@ -0,0 +1,8 @@
+This package was inspired by the Ruby package "yaml-env-tag". Its main
+purpose is to reference environment variables in YAML scripts.
+
+In contrast to other Python packages, that provide similar functionality, e.g.
+"pyyaml-tags" it also offers to define defaults and to have the values not only
+as strings.
+
+WWW: https://github.com/waylan/pyyaml-env-tag
More information about the dev-commits-ports-all
mailing list