# $NetBSD: Makefile,v 1.41 2023/10/22 11:34:57 wiz Exp $ PKGNAME= ${PYPKGPREFIX}-idle-${PY_DISTVERSION} CATEGORIES= devel python MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= https://www.python.org/idle/ COMMENT= IDLE - The Integrated DeveLopment Environment for Python DEPENDS+= ${PYPKGPREFIX}-Tk-[0-9]*:../../x11/py-Tk PY_PATCHPLIST= yes # srcdist.mk needs to be adapted for distutils removal in 3.12 PYTHON_VERSIONS_ACCEPTED= 311 310 39 38 27 # # With Python-2.3 and up, the Idle code is part of the base library. # We just install a wrapper script. Also, threads are required now. # NOTE: if you add a new version of Python here, add to the following test # .include "../../lang/python/extension.mk" .if ${PYTHON_VERSION} != 207 IDLE_NAME= idle3 .else IDLE_NAME= idle .endif REPLACE_PYTHON= Tools/scripts/${IDLE_NAME} NO_BUILD= yes INSTALLATION_DIRS= bin do-install: ${INSTALL_SCRIPT} ${WRKSRC}/Tools/scripts/${IDLE_NAME} \ ${DESTDIR}${PREFIX}/bin/idle${PYVERSSUFFIX} .include "../../lang/python/srcdist.mk" .include "../../lang/python/application.mk" .include "../../mk/bsd.pkg.mk"