# $NetBSD: Makefile,v 1.1.1.1 2006/11/14 13:33:29 joerg Exp $ # DISTNAME= setuptools-0.6c1-py2.4.egg PKGNAME= ${PYPKGPREFIX}-setuptools-0.6c1 PKGVERSION_NOREV= 0.6c1 PKGREVISION= 1 CATEGORIES= devel python MASTER_SITES= http://cheeseshop.python.org/packages/2.4/s/setuptools/ EXTRACT_SUFX= # empty MAINTAINER= joerg@NetBSD.org HOMEPAGE= http://peak.telecommunity.com/DevCenter/setuptools COMMENT= New Python packaging system PKG_DESTDIR_SUPPORT= user-destdir PYTHON_VERSIONS_ACCEPTED= 24 USE_TOOLS+= unzip PY_PATCHPLIST= yes PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX} PYPKGPREFIX=${PYPKGPREFIX} PYCOMPILEALL= ${BUILDLINK_PREFIX.${PYPACKAGE}}/${PYLIB}/compileall.py CHECK_FILES_SKIP+= ${PREFIX}/${PYSITELIB}/easy-install.pth FILES_SUBST+= PYSITELIB=${PREFIX}/${PYSITELIB} FILES_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX} INSTALLATION_DIRS= bin EGG_NAME= ${DISTNAME:S/2.4/${PYVERSSUFFIX}/} TARGET_NAME= ${PREFIX}/${PYSITELIB}/${EGG_NAME} do-extract: ${MKDIR} ${WRKSRC} ${TOOLS_CMD.unzip} -d ${WRKSRC} ${DISTDIR}/${DISTNAME} do-build: ${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},' \ -e 's,@PKGVERSION@,${PKGVERSION_NOREV},' \ ${FILESDIR}/easy_install.py > ${WRKDIR}/easy_install.py ${PYTHONBIN} ${PYCOMPILEALL} -f -d ${TARGET_NAME} ${WRKSRC} ${PYTHONBIN} -O ${PYCOMPILEALL} -f -d ${TARGET_NAME} ${WRKSRC} do-install: ${INSTALL_SCRIPT} ${WRKDIR}/easy_install.py \ ${DESTDIR}${PREFIX}/bin/easy_install${PYVERSSUFFIX} ${INSTALL_SCRIPT} ${WRKDIR}/manage-eggs.py ${DESTDIR}${PREFIX}/bin/${PYPKGPREFIX}-manage-eggs cd ${WRKSRC} && pax -rw -pm . ${DESTDIR}${TARGET_NAME} ${ECHO} ./${EGG_NAME} > ${DESTDIR}${PREFIX}/${PYSITELIB}/setuptools.pth .include "../../lang/python/extension.mk" .include "../../mk/bsd.pkg.mk"