diff --git a/devel/py-flit/Makefile b/devel/py-flit/Makefile index 42f310684de6..1cbc213ed462 100644 --- a/devel/py-flit/Makefile +++ b/devel/py-flit/Makefile @@ -1,30 +1,30 @@ # Created by: Po-Chuan Hsieh PORTNAME= flit PORTVERSION= 3.4.0 PORTREVISION= 1 CATEGORIES= devel python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= sunpoet@FreeBSD.org COMMENT= Simple packaging tool for simple packages LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}docutils>=0:textproc/py-docutils@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}flit-core>=${PORTVERSION}:devel/py-flit-core@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}requests>=0:www/py-requests@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}tomli>=0:textproc/py-tomli@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}tomli-w>=0:textproc/py-tomli-w@${PY_FLAVOR} 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/devel/py-flit/files/setup.py b/devel/py-flit/files/setup.py index 8c5b91fc0cb5..b30bcfb53e43 100644 --- a/devel/py-flit/files/setup.py +++ b/devel/py-flit/files/setup.py @@ -1,34 +1,34 @@ #!/usr/bin/env python # setup.py generated by flit for tools that don't yet use PEP 517 from distutils.core import setup packages = \ ['flit', 'flit.vcs', 'flit.vendorized', 'flit.vendorized.readme'] package_data = \ {'': ['*'], 'flit': ['license_templates/*']} install_requires = \ -['flit_core >=3.4.0', 'requests', 'docutils', 'tomli', 'tomli-w'] +['flit_core >= %%PORTVERSION%%', 'requests', 'docutils', 'tomli', 'tomli-w'] extras_require = \ {'doc': ['sphinx', 'sphinxcontrib_github_alt', 'pygments-github-lexers'], 'test': ['testpath', 'responses', 'pytest>=2.7.3', 'pytest-cov']} entry_points = \ {'console_scripts': ['flit = flit:main']} setup(name='flit', - version='3.4.0', + version='%%PORTVERSION%%', description='A simple packaging tool for simple packages.', author=None, author_email='Thomas Kluyver ', url=None, packages=packages, package_data=package_data, install_requires=install_requires, extras_require=extras_require, entry_points=entry_points, python_requires='>=3.6', )