33 lines
900 B
Makefile
33 lines
900 B
Makefile
# $NetBSD: Makefile,v 1.10 2022/01/14 21:51:09 wiz Exp $
|
|
|
|
DISTNAME= netaddr-0.8.0
|
|
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
|
|
PKGREVISION= 2
|
|
CATEGORIES= net python
|
|
MASTER_SITES= ${MASTER_SITE_PYPI:=n/netaddr/}
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= https://github.com/drkjam/netaddr
|
|
COMMENT= Python library for manipluating network addresses
|
|
LICENSE= modified-bsd
|
|
|
|
.include "../../lang/python/pyversion.mk"
|
|
.if ${_PYTHON_VERSION} == 27
|
|
DEPENDS+= ${PYPKGPREFIX}-importlib-resources-[0-9]*:../../devel/py-importlib-resources
|
|
.endif
|
|
|
|
USE_LANGUAGES= # none
|
|
|
|
USE_PKG_RESOURCES= yes
|
|
|
|
REPLACE_PYTHON+= netaddr/eui/ieee.py
|
|
REPLACE_PYTHON+= netaddr/ip/iana.py
|
|
REPLACE_PYTHON+= netaddr/tools/netaddr
|
|
|
|
post-install:
|
|
cd ${DESTDIR}${PREFIX}/bin && \
|
|
${MV} netaddr netaddr-${PYVERSSUFFIX} || ${TRUE}
|
|
|
|
.include "../../lang/python/application.mk"
|
|
.include "../../lang/python/egg.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|