mirror of
https://git.freebsd.org/ports.git
synced 2025-05-04 15:37:40 -04:00
Changes: https://github.com/pypa/flit/blob/main/doc/history.rst https://flit.pypa.io/en/stable/history.html
33 lines
1.1 KiB
Makefile
33 lines
1.1 KiB
Makefile
PORTNAME= flit-core
|
|
PORTVERSION= 3.12.0
|
|
CATEGORIES= devel python
|
|
MASTER_SITES= PYPI
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
DISTNAME= flit_core-${PORTVERSION}
|
|
|
|
MAINTAINER= sunpoet@FreeBSD.org
|
|
COMMENT= Distribution-building parts of Flit
|
|
WWW= https://flit.pypa.io/en/stable/ \
|
|
https://github.com/pypa/flit/tree/main/flit_core
|
|
|
|
LICENSE= BSD3CLAUSE
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}testpath>=0:devel/py-testpath@${PY_FLAVOR}
|
|
|
|
USES= python
|
|
USE_PYTHON= allflavors autoplist concurrent pep517 pytest
|
|
|
|
NO_ARCH= yes
|
|
|
|
PEP517_BUILD_CMD= ${PYTHON_CMD} -m flit_core.wheel
|
|
PEP517_BUILD_DEPEND= # empty
|
|
PEP517_INSTALL_CMD= ${PYTHON_CMD} ${WRKSRC}/bootstrap_install.py --installdir ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} ${WRKSRC}/dist/${DISTNAME}*.whl
|
|
PEP517_INSTALL_DEPEND= # empty
|
|
|
|
post-install:
|
|
${PYTHON_CMD} -m compileall -d ${PYTHON_SITELIBDIR} -f ${STAGEDIR}${PYTHON_SITELIBDIR}
|
|
${PYTHON_CMD} -O -m compileall -d ${PYTHON_SITELIBDIR} -f ${STAGEDIR}${PYTHON_SITELIBDIR}
|
|
cd ${STAGEDIR}${PREFIX} && ${FIND} lib -name '*.pyc' >> ${_PYTHONPKGLIST}
|
|
|
|
.include <bsd.port.mk>
|