Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Nov 2021 13:47:01 GMT
From:      Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 2db288b6a88f - main - textproc/py-marko: Update version in setup.py automatically
Message-ID:  <202111011347.1A1Dl1NF050951@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=2db288b6a88f328cae45d8c5a642244fb703ac36

commit 2db288b6a88f328cae45d8c5a642244fb703ac36
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2021-11-01 13:27:27 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2021-11-01 13:41:51 +0000

    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 <bsd.port.mk>
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',



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202111011347.1A1Dl1NF050951>