aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Knoblich <kai@FreeBSD.org>2024-01-29 06:53:03 +0000
committerKai Knoblich <kai@FreeBSD.org>2024-01-29 06:53:03 +0000
commit873eee30b8a665a7e6b16d74dc37c2dfbfdc7050 (patch)
tree0b32775908c768797e21fd5baee86cf3c35f46c0
parentf2dd58b26d0ed8359e9a0593d226b170b4f5e3c2 (diff)
downloadports-873eee30b8a665a7e6b16d74dc37c2dfbfdc7050.tar.gz
ports-873eee30b8a665a7e6b16d74dc37c2dfbfdc7050.zip
textproc/py-ntc-templates: Update to 4.2.0
* Tweak the existing patch so that it also contains the current version while I'm here. Changelog: https://github.com/networktocode/ntc-templates/releases/tag/v4.2.0
-rw-r--r--textproc/py-ntc-templates/Makefile5
-rw-r--r--textproc/py-ntc-templates/distinfo6
-rw-r--r--textproc/py-ntc-templates/files/patch-pyproject.toml4
3 files changed, 9 insertions, 6 deletions
diff --git a/textproc/py-ntc-templates/Makefile b/textproc/py-ntc-templates/Makefile
index 95136dae0ab3..1128e9797120 100644
--- a/textproc/py-ntc-templates/Makefile
+++ b/textproc/py-ntc-templates/Makefile
@@ -1,6 +1,6 @@
PORTNAME= ntc-templates
DISTVERSIONPREFIX= v
-DISTVERSION= 4.1.0
+DISTVERSION= 4.2.0
CATEGORIES= textproc net-mgmt python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -27,4 +27,7 @@ TEST_ENV= PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
NO_ARCH= yes
+post-patch:
+ ${REINPLACE_CMD} -e 's|%%DISTVERSION%%|${DISTVERSION}|' ${WRKSRC}/pyproject.toml
+
.include <bsd.port.mk>
diff --git a/textproc/py-ntc-templates/distinfo b/textproc/py-ntc-templates/distinfo
index 2ac97521b36b..0736b55935f8 100644
--- a/textproc/py-ntc-templates/distinfo
+++ b/textproc/py-ntc-templates/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1703065295
-SHA256 (networktocode-ntc-templates-v4.1.0_GH0.tar.gz) = 310858610d14a82b7a8fcd09b95262b3d3f64d4de07cd3c26e3b980e95cc9712
-SIZE (networktocode-ntc-templates-v4.1.0_GH0.tar.gz) = 1144934
+TIMESTAMP = 1706427859
+SHA256 (networktocode-ntc-templates-v4.2.0_GH0.tar.gz) = f282c2155e99dd93ffebf1f4e9210e711b9b9d9bcb4fa4fb131657c5f66cb786
+SIZE (networktocode-ntc-templates-v4.2.0_GH0.tar.gz) = 1164861
diff --git a/textproc/py-ntc-templates/files/patch-pyproject.toml b/textproc/py-ntc-templates/files/patch-pyproject.toml
index 2861c16b3914..04ec5f1e6d51 100644
--- a/textproc/py-ntc-templates/files/patch-pyproject.toml
+++ b/textproc/py-ntc-templates/files/patch-pyproject.toml
@@ -4,13 +4,13 @@ produced wheels contain the wrong version.
Avoid installing "LICENSE" and "README.md" on top of Python's "site-packages/"
directory which would lead to conflicting packages.
---- pyproject.toml.orig 2023-12-19 17:04:20 UTC
+--- pyproject.toml.orig 2024-01-27 23:01:03 UTC
+++ pyproject.toml
@@ -1,6 +1,6 @@ name = "ntc_templates"
[tool.poetry]
name = "ntc_templates"
-version = "4.0.1"
-+version = "4.1.0"
++version = "%%DISTVERSION%%"
description = "TextFSM Templates for Network Devices, and Python wrapper for TextFSM's CliTable."
authors = ["Network to Code <info@networktocode.com>"]
license = "Apache-2.0"