pkgsrc/www/py-swiftclient/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

34 lines
1 KiB
Makefile

# $NetBSD: Makefile,v 1.9 2022/01/05 15:41:31 wiz Exp $
DISTNAME= python-swiftclient-3.11.0
PKGNAME= ${DISTNAME:S/python/${PYPKGPREFIX}/}
PKGREVISION= 2
CATEGORIES= www python
MASTER_SITES= ${MASTER_SITE_PYPI:=p/python-swiftclient/}
MAINTAINER= triaxx@NetBSD.org
HOMEPAGE= https://github.com/openstack/python-swiftclient
COMMENT= Python bindings to the OpenStack Object Storage API
LICENSE= apache-2.0
BUILD_DEPENDS+= ${PYPKGPREFIX}-pbr-[0-9]*:../../devel/py-pbr
DEPENDS+= ${PYPKGPREFIX}-requests>=1.1.0:../../devel/py-requests
DEPENDS+= ${PYPKGPREFIX}-six>=1.9.0:../../lang/py-six
SUBST_CLASSES+= manpath
SUBST_STAGE.manpath= pre-configure
SUBST_MESSAGE.manpath= fixing man path
SUBST_FILES.manpath= setup.cfg
SUBST_SED.manpath= -e 's,share/man,${PKGMANDIR},'
PYTHON_VERSIONS_INCOMPATIBLE= 27
USE_PKG_RESOURCES= yes
post-install:
cd ${DESTDIR}${PREFIX} && \
${MV} bin/swift bin/swift-${PYVERSSUFFIX} && \
${MV} man/man1/swift.1 man/man1/swift-${PYVERSSUFFIX}.1 || ${TRUE}
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"