Make work with python31.

This commit is contained in:
markd 2012-03-22 09:23:07 +00:00
parent e97e744515
commit c34c49be56

View file

@ -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"