diff --git a/textproc/py-atoml/Makefile b/textproc/py-atoml/Makefile index 4d5bd973a4ff..4a0bf58d205e 100644 --- a/textproc/py-atoml/Makefile +++ b/textproc/py-atoml/Makefile @@ -1,23 +1,23 @@ # Created by: Po-Chuan Hsieh PORTNAME= atoml PORTVERSION= 1.0.3 CATEGORIES= textproc python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= sunpoet@FreeBSD.org COMMENT= Yet another style preserving TOML library LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE USES= python:3.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-atoml/files/setup.py b/textproc/py-atoml/files/setup.py index 95c58e86aea1..d1601330afcc 100644 --- a/textproc/py-atoml/files/setup.py +++ b/textproc/py-atoml/files/setup.py @@ -1,39 +1,39 @@ # -*- coding: utf-8 -*- from setuptools import setup import codecs with codecs.open('README.md', encoding="utf-8") as fp: long_description = fp.read() setup_kwargs = { 'name': 'atoml', - 'version': '1.0.3', + 'version': '%%PORTVERSION%%', 'description': 'Yet another style preserving TOML library', 'long_description': long_description, 'license': 'MIT', 'author': '', 'author_email': 'Frost Ming ,Sébastien Eustace ', 'maintainer': None, 'maintainer_email': None, 'url': '', 'packages': [ 'atoml', ], 'package_data': {'': ['*']}, 'long_description_content_type': 'text/markdown', 'classifiers': [ 'License :: OSI Approved :: MIT License', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.9', ], 'python_requires': '>=3.6', } setup(**setup_kwargs)