pkgsrc/textproc/py-commonmark/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

28 lines
728 B
Makefile

# $NetBSD: Makefile,v 1.4 2022/01/05 15:41:23 wiz Exp $
DISTNAME= commonmark-0.9.1
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:tl}
PKGREVISION= 2
CATEGORIES= textproc python
MASTER_SITES= ${MASTER_SITE_PYPI:=c/commonmark/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://github.com/rtfd/CommonMark-py
COMMENT= Python parser for the CommonMark Markdown spec
LICENSE= modified-bsd
.include "../../lang/python/pyversion.mk"
.if ${_PYTHON_VERSION} == 27
DEPENDS+= ${PYPKGPREFIX}-future>=0.14.0:../../devel/py-future
.endif
USE_LANGUAGES= # none
USE_PKG_RESOURCES= yes
post-install:
cd ${DESTDIR}${PREFIX}/bin && \
${MV} cmark cmark-${PYVERSSUFFIX} || ${TRUE}
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"