fcc7852aa4
----- 5.0.1 ----- * Renamed script templates to end with .tmpl now that they no longer need to be processed by 2to3. Fixes spurious syntax errors during build/install. --- 5.0 --- * Issue #218: Re-release of 3.8.1 to signal that it supersedes 4.x.
45 lines
1.5 KiB
Makefile
45 lines
1.5 KiB
Makefile
# $NetBSD: Makefile,v 1.47 2014/06/15 14:17:08 wiz Exp $
|
|
|
|
EGG_VERSION= 5.0.1
|
|
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
|
|
|
|
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
|
|
|
|
.if ${OPSYS} == "Darwin"
|
|
DEPENDS+= ${PYPKGPREFIX}-expat-[0-9]*:../../textproc/py-expat
|
|
.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/*
|
|
|
|
.include "../../lang/python/application.mk"
|
|
.include "../../lang/python/extension.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|