pkgsrc/devel/py-setuptools/Makefile
wiz bdc54d314a Update to 7.0:
7.0
---

* Issue #80, Issue #209: Eggs that are downloaded for ``setup_requires``,
  ``test_requires``, etc. are now placed in a ``./.eggs`` directory instead of
  directly in the current directory. This choice of location means the files
  can be readily managed (removed, ignored). Additionally,
  later phases or invocations of setuptools will not detect the package as
  already installed and ignore it for permanent install (See #209).

  This change is indicated as backward-incompatible as installations that
  depend on the installation in the current directory will need to account for
  the new location. Systems that ignore ``*.egg`` will probably need to be
  adapted to ignore ``.eggs``. The files will need to be manually moved or
  will be retrieved again. Most use cases will require no attention.
2014-10-27 08:40:59 +00:00

44 lines
1.5 KiB
Makefile

# $NetBSD: Makefile,v 1.54 2014/10/27 08:40:59 wiz Exp $
EGG_VERSION= 7.0
DISTNAME= setuptools-${EGG_VERSION}
EGG_NAME= setuptools-${EGG_VERSION}
PKGNAME= ${PYPKGPREFIX}-setuptools-${EGG_VERSION}
CATEGORIES= devel python
MASTER_SITES= https://pypi.python.org/packages/source/s/setuptools/
MAINTAINER= joerg@NetBSD.org
HOMEPAGE= https://pypi.python.org/pypi/setuptools
COMMENT= New Python packaging system
LICENSE= python-software-foundation OR zpl
DEPENDS+= ${PYPKGPREFIX}-expat-[0-9]*:../../textproc/py-expat
PYDISTUTILSPKG= 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
# 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/extension.mk"
.include "../../mk/bsd.pkg.mk"