From 2db288b6a88f328cae45d8c5a642244fb703ac36 Mon Sep 17 00:00:00 2001 From: Po-Chuan Hsieh Date: Mon, 1 Nov 2021 21:27:27 +0800 Subject: [PATCH] textproc/py-marko: Update version in setup.py automatically --- textproc/py-marko/Makefile | 2 +- textproc/py-marko/files/setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/textproc/py-marko/Makefile b/textproc/py-marko/Makefile index 510781753dff..a7f1574b411f 100644 --- a/textproc/py-marko/Makefile +++ b/textproc/py-marko/Makefile @@ -18,6 +18,6 @@ USE_PYTHON= autoplist concurrent distutils NO_ARCH= yes post-patch: - @${CP} ${FILESDIR}/setup.py ${WRKSRC}/ + @${SED} -e 's|%%PORTVERSION%%|${PORTVERSION}|' ${FILESDIR}/setup.py > ${WRKSRC}/setup.py .include diff --git a/textproc/py-marko/files/setup.py b/textproc/py-marko/files/setup.py index 030fc4e7211e..a85ca642894a 100644 --- a/textproc/py-marko/files/setup.py +++ b/textproc/py-marko/files/setup.py @@ -29,7 +29,7 @@ ENTRY_POINTS = { setup_kwargs = { 'name': 'marko', - 'version': '1.1.0', + 'version': '%%PORTVERSION%%', 'description': 'A markdown parser with high extensibility.', 'long_description': long_description, 'license': 'MIT',