Annotation of pkgsrc/lang/python/srcdist.mk, revision 1.41
1.41 ! tnn 1: # $NetBSD: srcdist.mk,v 1.40 2020/01/08 13:44:41 joerg Exp $
1.1 drochner 2:
3: .include "../../lang/python/pyversion.mk"
4:
1.34 obache 5: .sinclude "${.CURDIR}/${PYPKGSRCDIR}/dist.mk"
1.27 wiz 6:
1.34 obache 7: PYSUBDIR= ${DISTNAME}
1.27 wiz 8: WRKSRC= ${WRKDIR}/${PYSUBDIR}
1.1 drochner 9:
10: .if defined(PYDISTUTILSPKG)
11: # This is used for standard modules shipped with Python but build as
12: # separate packages.
13:
1.38 sjmulder 14: # Standard modules depend on their own version
15: BUILDLINK_API_DEPENDS.${PYPACKAGE}+= ${PYPACKAGE}>=${PY_DISTVERSION}
16: BUILDLINK_ABI_DEPENDS.${PYPACKAGE}+= ${PYPACKAGE}>=${PY_DISTVERSION}
17:
1.1 drochner 18: python-std-patchsetup:
19: ${SED} ${PY_SETUP_SUBST:S/=/@!/:S/$/!g/:S/^/ -e s!@/} \
20: <${FILESDIR}/setup.py >${WRKSRC}/setup.py
21:
1.40 joerg 22: post-patch: python-std-patchsetup
1.41 ! tnn 23:
! 24: python-std-setuptools-cleanup:
! 25: ${RM} -rf ${DESTDIR}/${PREFIX}/${PYLIB}/lib-dynload/UNKNOWN*
! 26:
! 27: post-install: python-std-setuptools-cleanup
! 28:
1.1 drochner 29: .endif
CVSweb <webmaster@jp.NetBSD.org>