# $NetBSD: Makefile,v 1.87 2016/01/18 23:04:14 wiz Exp $ DISTNAME= setuptools-19.4 PKGNAME= ${PYPKGPREFIX}-${DISTNAME} CATEGORIES= devel python MASTER_SITES= ${MASTER_SITE_PYPI:=s/setuptools/} MAINTAINER= joerg@NetBSD.org HOMEPAGE= https://pypi.python.org/pypi/setuptools COMMENT= New Python packaging system LICENSE= python-software-foundation OR zpl-2.0 DEPENDS+= ${PYPKGPREFIX}-expat-[0-9]*:../../textproc/py-expat # not sure if this would introduce a dependency cycle #BUILD_DEPENDS+= ${PYPKGPREFIX}-test-runner-[0-9]*:../../devel/py-test-runner PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX} PLIST_SUBST+= EGG_INFODIR=${EGG_NAME}-py${PYVERSSUFFIX}.egg-info REPLACE_PYTHON+= setuptools/command/easy_install.py REPLACE_PYTHON+= setuptools/tests/test_resources.py # upstream often forgets deleting files, and packages on Windows, # so permissions are usually wrong post-install: ${RM} -f ${DESTDIR}${PREFIX}/${PYSITELIB}/${EGG_NAME}-py${PYVERSSUFFIX}.egg-info/*.orig ${CHMOD} ${SHAREMODE} ${DESTDIR}${PREFIX}/${PYSITELIB}/${EGG_NAME}-py${PYVERSSUFFIX}.egg-info/* ${CHMOD} ${SHAREMODE} ${DESTDIR}${PREFIX}/${PYSITELIB}/setuptools/*.tmpl .include "../../lang/python/application.mk" .include "../../lang/python/distutils.mk" .include "../../mk/bsd.pkg.mk"