diff options
author | markd <markd@pkgsrc.org> | 2012-03-22 09:23:07 +0000 |
---|---|---|
committer | markd <markd@pkgsrc.org> | 2012-03-22 09:23:07 +0000 |
commit | c34c49be56789eb2aed3982464a1ed19600318e8 (patch) | |
tree | d873181151a3d6069ee8c5600ea69ef3b22d7747 /devel/py-idle | |
parent | e97e744515bfac4db224bba8011e3643c0a41f68 (diff) | |
download | pkgsrc-c34c49be56789eb2aed3982464a1ed19600318e8.tar.gz |
Make work with python31.
Diffstat (limited to 'devel/py-idle')
-rw-r--r-- | devel/py-idle/Makefile | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/devel/py-idle/Makefile b/devel/py-idle/Makefile index 5ff04c07749..d3ba7d73814 100644 --- a/devel/py-idle/Makefile +++ b/devel/py-idle/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.30 2011/10/16 07:23:48 obache Exp $ +# $NetBSD: Makefile,v 1.31 2012/03/22 09:23:07 markd Exp $ # PKGNAME= ${PYPKGPREFIX}-idle-0 @@ -13,6 +13,8 @@ DEPENDS+= ${PYPKGPREFIX}-Tk-[0-9]*:../../x11/py-Tk PKG_DESTDIR_SUPPORT= user-destdir +PYTHON_VERSIONS_INCLUDE_3X= yes + PY_PATCHPLIST= yes PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX:Q} @@ -30,13 +32,19 @@ do-patch: # .include "../../lang/python/extension.mk" -EXTRACT_ELEMENTS= ${PYSUBDIR}/Tools/scripts/idle -PYTHON_PATCH_SCRIPTS= Tools/scripts/idle +.if ${_PYTHON_VERSION} >= 31 +IDLE_NAME= idle3 +.else +IDLE_NAME= idle +.endif + +EXTRACT_ELEMENTS= ${PYSUBDIR}/Tools/scripts/${IDLE_NAME} +PYTHON_PATCH_SCRIPTS= Tools/scripts/${IDLE_NAME} NO_BUILD= yes INSTALLATION_DIRS= bin do-install: - ${INSTALL_SCRIPT} ${WRKSRC}/Tools/scripts/idle \ + ${INSTALL_SCRIPT} ${WRKSRC}/Tools/scripts/${IDLE_NAME} \ ${DESTDIR}${PREFIX}/bin/idle${PYVERSSUFFIX} .include "../../lang/python/srcdist.mk" |