pkgsrc/devel/py-slugify/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

32 lines
818 B
Makefile

# $NetBSD: Makefile,v 1.5 2022/01/05 15:41:07 wiz Exp $
DISTNAME= python-slugify-5.0.2
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/^python-//}
PKGREVISION= 2
CATEGORIES= devel www python
MASTER_SITES= ${MASTER_SITE_PYPI:=p/python-slugify/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://github.com/un33k/python-slugify
COMMENT= Slugify (non-ASCII to ASCII) application that handles Unicode
LICENSE= mit
PREV_PKGPATH= devel/py-python-slugify
DEPENDS+= ${PYPKGPREFIX}-text-unidecode>=1.3:../../textproc/py-text-unidecode
USE_LANGUAGES= # none
PYTHON_VERSIONS_INCOMPATIBLE= 27
USE_PKG_RESOURCES= yes
post-install:
cd ${DESTDIR}${PREFIX}/bin && \
${MV} slugify slugify-${PYVERSSUFFIX} || ${TRUE}
do-test:
cd ${WRKSRC} && ${PYTHONBIN} test.py
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"