2022-01-05 16:40:56 +01:00
|
|
|
# $NetBSD: Makefile,v 1.16 2022/01/05 15:41:07 wiz Exp $
|
2017-04-04 16:19:58 +02:00
|
|
|
|
2021-05-24 11:15:46 +02:00
|
|
|
DISTNAME= radon-4.5.2
|
2017-04-04 16:19:58 +02:00
|
|
|
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
|
2022-01-05 16:40:56 +01:00
|
|
|
PKGREVISION= 2
|
2017-04-04 16:19:58 +02:00
|
|
|
CATEGORIES= devel python
|
|
|
|
MASTER_SITES= ${MASTER_SITE_PYPI:=r/radon/}
|
|
|
|
|
|
|
|
MAINTAINER= kamelderouiche@yahoo.com
|
|
|
|
HOMEPAGE= https://radon.readthedocs.org/
|
|
|
|
COMMENT= Code Metrics in Python
|
|
|
|
LICENSE= mit
|
|
|
|
|
2017-07-24 18:44:31 +02:00
|
|
|
DEPENDS+= ${PYPKGPREFIX}-mando>=0.6:../../devel/py-mando
|
2020-02-02 07:06:11 +01:00
|
|
|
DEPENDS+= ${PYPKGPREFIX}-colorama>=0.4.1:../../comms/py-colorama
|
2017-07-24 18:44:31 +02:00
|
|
|
DEPENDS+= ${PYPKGPREFIX}-flake8-polyfill-[0-9]*:../../devel/py-flake8-polyfill
|
2019-11-06 21:43:36 +01:00
|
|
|
DEPENDS+= ${PYPKGPREFIX}-future-[0-9]*:../../devel/py-future
|
2018-12-16 15:15:11 +01:00
|
|
|
TEST_DEPENDS+= ${PYPKGPREFIX}-test-mock-[0-9]*:../../devel/py-test-mock
|
|
|
|
TEST_DEPENDS+= ${PYPKGPREFIX}-tox-[0-9]*:../../devel/py-tox
|
2017-04-04 16:19:58 +02:00
|
|
|
|
2020-05-16 18:30:15 +02:00
|
|
|
PYTHON_VERSIONED_DEPENDENCIES= test:test
|
|
|
|
|
2022-01-05 16:40:56 +01:00
|
|
|
USE_PKG_RESOURCES= yes
|
|
|
|
|
2017-04-04 16:19:58 +02:00
|
|
|
USE_LANGUAGES= # none
|
|
|
|
|
2017-04-04 16:33:24 +02:00
|
|
|
post-install:
|
2019-11-06 21:43:36 +01:00
|
|
|
cd ${DESTDIR}${PREFIX}/bin && \
|
|
|
|
${MV} radon radon-${PYVERSSUFFIX} || ${TRUE}
|
2017-04-04 16:33:24 +02:00
|
|
|
|
2017-04-04 16:19:58 +02:00
|
|
|
do-test:
|
2017-07-24 18:44:31 +02:00
|
|
|
cd ${WRKSRC}/radon/tests && ${SETENV} ${TEST_ENV} ${PYTHONBIN} run.py
|
2017-04-04 16:19:58 +02:00
|
|
|
|
|
|
|
.include "../../lang/python/egg.mk"
|
2020-05-16 18:30:15 +02:00
|
|
|
.include "../../lang/python/versioned_dependencies.mk"
|
2017-04-04 16:19:58 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|