pkgsrc/devel/py-setuptools/Makefile
tron 3d7f3a908f Add "${PYSITELIB}/setuptools/version.py*" to package list. Also change
an "${RM}" command to "${RM} -f" in the "post-install" target which is
required to fix the build on my system.
2013-09-03 09:03:09 +00:00

44 lines
1.5 KiB
Makefile

# $NetBSD: Makefile,v 1.31 2013/09/03 09:03:09 tron Exp $
EGG_VERSION= 1.1
DISTNAME= setuptools-${EGG_VERSION}
EGG_NAME= setuptools-${EGG_VERSION}
PKGNAME= ${PYPKGPREFIX}-setuptools-${EGG_VERSION}
CATEGORIES= devel python
MASTER_SITES= http://pypi.python.org/packages/source/s/setuptools/
MAINTAINER= joerg@NetBSD.org
HOMEPAGE= http://peak.telecommunity.com/DevCenter/setuptools
COMMENT= New Python packaging system
LICENSE= python-software-foundation OR zpl
PYDISTUTILSPKG= yes
PYTHON_VERSIONS_INCLUDE_3X= yes
PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX} PYPKGPREFIX=${PYPKGPREFIX}
PLIST_SUBST+= EGG_NAME=${EGGNAME}
PLIST_SUBST+= EGG_INFODIR=${EGG_NAME}-py${PYVERSSUFFIX}.egg-info
PRINT_PLIST_AWK+= { gsub(/${EGG_NAME}-py${PYVERSSUFFIX}.egg-info/, \
"$${EGG_INFODIR}") }
REPLACE_PYTHON= setuptools/command/easy_install.py
REPLACE_PYTHON+= setuptools/tests/test_resources.py
.include "../../mk/bsd.fast.prefs.mk"
PYSETUPINSTALLARGS= --single-version-externally-managed
.if ${_USE_DESTDIR} == "no"
PYSETUPINSTALLARGS+= --root=/
.endif
.if ${OPSYS} == "Darwin"
DEPENDS+= ${PYPKGPREFIX}-expat-[0-9]*:../../textproc/py-expat
.endif
post-install:
${RM} -f ${DESTDIR}${PREFIX}/${PYSITELIB}/${EGG_NAME}-py${PYVERSSUFFIX}.egg-info/entry_points.txt.orig
${CHMOD} ${SHAREMODE} ${DESTDIR}${PREFIX}/${PYSITELIB}/${EGG_NAME}-py${PYVERSSUFFIX}.egg-info/*
.include "../../lang/python/application.mk"
.include "../../lang/python/extension.mk"
.include "../../mk/bsd.pkg.mk"