pkgsrc/devel/py-babel/Makefile
wiz 67e1f1a6bf python: egg.mk: add USE_PKG_RESOURCES flag
This flag should be set for packages that import pkg_resources
and thus need setuptools after the build step.

Set this flag for packages that need it and bump PKGREVISION.
2022-01-05 15:40:56 +00:00

30 lines
876 B
Makefile

# $NetBSD: Makefile,v 1.31 2022/01/05 15:41:01 wiz Exp $
DISTNAME= Babel-2.9.1
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:tl}
PKGREVISION= 2
CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITE_PYPI:=B/Babel/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://babel.pocoo.org/
COMMENT= Collection of tools for internationalizing Python applications
LICENSE= modified-bsd
DEPENDS+= ${PYPKGPREFIX}-pytz>=2015.7:../../time/py-pytz
TEST_DEPENDS+= ${PYPKGPREFIX}-freezegun-[0-9]*:../../devel/py-freezegun
TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
TEST_DEPENDS+= ${PYPKGPREFIX}-test-runner-[0-9]*:../../devel/py-test-runner
USE_LANGUAGES= # none
USE_PKG_RESOURCES= yes
PYSETUPTESTTARGET= pytest
post-install:
cd ${DESTDIR}${PREFIX}/bin && \
${MV} pybabel pybabel-${PYVERSSUFFIX} || ${TRUE}
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"