summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--textproc/py-hashids/Makefile2
-rw-r--r--textproc/py-hashids/files/setup.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/textproc/py-hashids/Makefile b/textproc/py-hashids/Makefile
index 38aa8c65a293..84070edac10d 100644
--- a/textproc/py-hashids/Makefile
+++ b/textproc/py-hashids/Makefile
@@ -20,7 +20,7 @@ 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
do-test:
cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -rs -v
diff --git a/textproc/py-hashids/files/setup.py b/textproc/py-hashids/files/setup.py
index f8b9328f2033..ede9026d3886 100644
--- a/textproc/py-hashids/files/setup.py
+++ b/textproc/py-hashids/files/setup.py
@@ -7,7 +7,7 @@ extras_require = \
{'test': ['pytest >=2.1.0']}
setup(name='hashids',
- version='1.3.1',
+ version='%%PORTVERSION%%',
description='Implements the hashids algorithm in python. For more information, visit http://hashids.org/',
author='David Aurelio',
author_email='dev@david-aurelio.com',