2010-09-04 17:57:16 +02:00
|
|
|
# $NetBSD: Makefile,v 1.18 2010/09/04 15:57:16 tron Exp $
|
2006-11-14 14:33:29 +01:00
|
|
|
|
2009-10-31 03:10:34 +01:00
|
|
|
EGG_VERSION= 0.6c11
|
2009-09-07 16:22:39 +02:00
|
|
|
DISTNAME= setuptools-${EGG_VERSION}
|
|
|
|
EGG_NAME= setuptools-${EGG_VERSION}
|
2007-08-09 15:22:14 +02:00
|
|
|
PKGNAME= ${PYPKGPREFIX}-setuptools-${EGG_VERSION}
|
2010-09-04 17:57:16 +02:00
|
|
|
PKGREVISION= 1
|
2006-11-14 14:33:29 +01:00
|
|
|
CATEGORIES= devel python
|
2009-09-07 16:22:39 +02:00
|
|
|
MASTER_SITES= http://pypi.python.org/packages/source/s/setuptools/
|
2006-11-14 14:33:29 +01:00
|
|
|
|
|
|
|
MAINTAINER= joerg@NetBSD.org
|
|
|
|
HOMEPAGE= http://peak.telecommunity.com/DevCenter/setuptools
|
|
|
|
COMMENT= New Python packaging system
|
|
|
|
|
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
|
2009-09-07 16:22:39 +02:00
|
|
|
PYDISTUTILSPKG= yes
|
2006-11-14 14:33:29 +01:00
|
|
|
|
|
|
|
PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX} PYPKGPREFIX=${PYPKGPREFIX}
|
2009-09-07 16:22:39 +02:00
|
|
|
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}") }
|
2006-11-14 14:33:29 +01:00
|
|
|
|
|
|
|
CHECK_FILES_SKIP+= ${PREFIX}/${PYSITELIB}/easy-install.pth
|
|
|
|
|
2009-09-07 16:22:39 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
2006-11-14 14:33:29 +01:00
|
|
|
|
2009-09-09 18:49:18 +02:00
|
|
|
.include "../../lang/python/extension.mk"
|
|
|
|
|
2009-09-07 16:22:39 +02:00
|
|
|
PYSETUPINSTALLARGS= --single-version-externally-managed
|
|
|
|
.if ${_USE_DESTDIR} == "no"
|
|
|
|
PYSETUPINSTALLARGS+= --root=/
|
|
|
|
.endif
|
2006-11-14 14:33:29 +01:00
|
|
|
|
2009-09-07 16:22:39 +02:00
|
|
|
FILES_SUBST+= PYSITELIB=${PREFIX}/${PYSITELIB}
|
|
|
|
FILES_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX}
|
2006-11-14 14:33:29 +01:00
|
|
|
|
2009-09-09 18:49:18 +02:00
|
|
|
PLIST_VARS+= py24 py25
|
|
|
|
|
|
|
|
.if ${PYPKGPREFIX} == "py24"
|
|
|
|
PLIST.py24= yes
|
|
|
|
.else
|
|
|
|
PLIST.py25= yes
|
|
|
|
.endif
|
|
|
|
|
2010-09-04 17:57:16 +02:00
|
|
|
.if ${OPSYS} == "Darwin" && \
|
|
|
|
(${PYPKGPREFIX} != "py24" && ${PYPKGPREFIX} != "py25")
|
|
|
|
DEPENDS+= ${PYPKGPREFIX}-expat-[0-9]*:../../textproc/py-expat
|
|
|
|
.endif
|
|
|
|
|
2007-01-02 14:58:31 +01:00
|
|
|
post-extract:
|
|
|
|
chmod -R go-w ${WRKSRC}
|
|
|
|
|
2009-09-07 16:22:39 +02:00
|
|
|
post-build:
|
2006-11-14 14:33:29 +01:00
|
|
|
${SED} -e 's,@PYTHON@,${PYTHONBIN},' \
|
|
|
|
-e 's,@PYPREFIX@,${PYPKGPREFIX},' \
|
|
|
|
-e 's,@PYSITELIB@,${PREFIX}/${PYSITELIB},' \
|
|
|
|
${FILESDIR}/manage-eggs.py > ${WRKDIR}/manage-eggs.py
|
|
|
|
${SED} -e 's,@PYTHON@,${PYTHONBIN},' \
|
2007-08-09 15:22:14 +02:00
|
|
|
-e 's,@PKGVERSION@,${EGG_VERSION},' \
|
2006-11-14 14:33:29 +01:00
|
|
|
${FILESDIR}/easy_install.py > ${WRKDIR}/easy_install.py
|
|
|
|
|
2009-09-07 16:22:39 +02:00
|
|
|
post-install:
|
2006-11-14 14:33:29 +01:00
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/manage-eggs.py ${DESTDIR}${PREFIX}/bin/${PYPKGPREFIX}-manage-eggs
|
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|