2012-03-22 10:23:07 +01:00
|
|
|
# $NetBSD: Makefile,v 1.31 2012/03/22 09:23:07 markd Exp $
|
2000-12-19 00:52:39 +01:00
|
|
|
#
|
|
|
|
|
2002-01-29 12:12:47 +01:00
|
|
|
PKGNAME= ${PYPKGPREFIX}-idle-0
|
2006-02-06 00:08:03 +01:00
|
|
|
PKGREVISION= 2
|
2004-07-22 11:15:59 +02:00
|
|
|
CATEGORIES= devel python
|
2000-12-19 00:52:39 +01:00
|
|
|
|
2006-03-04 22:28:51 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2000-12-19 00:52:39 +01:00
|
|
|
HOMEPAGE= http://www.python.org/idle/
|
2001-02-16 15:38:16 +01:00
|
|
|
COMMENT= IDLE - The Integrated DeveLopment Environment for Python
|
2000-12-19 00:52:39 +01:00
|
|
|
|
2011-10-16 09:19:33 +02:00
|
|
|
DEPENDS+= ${PYPKGPREFIX}-Tk-[0-9]*:../../x11/py-Tk
|
|
|
|
|
2008-03-03 18:45:33 +01:00
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
|
2012-03-22 10:23:07 +01:00
|
|
|
PYTHON_VERSIONS_INCLUDE_3X= yes
|
|
|
|
|
2002-01-29 12:12:47 +01:00
|
|
|
PY_PATCHPLIST= yes
|
2005-12-05 21:49:47 +01:00
|
|
|
PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX:Q}
|
2002-01-29 12:12:47 +01:00
|
|
|
|
|
|
|
# ignore errors due to missing files (EXTRACT_ELEMENTS!)
|
|
|
|
do-patch:
|
|
|
|
(cd ${WRKSRC}; \
|
|
|
|
for f in ${PATCHDIR}/patch-*;do \
|
2005-01-10 17:07:55 +01:00
|
|
|
${PATCH} --batch <$$f || ${TRUE}; \
|
2002-01-29 12:12:47 +01:00
|
|
|
done)
|
2000-12-19 00:52:39 +01:00
|
|
|
|
2003-08-04 10:18:58 +02:00
|
|
|
#
|
2005-01-13 22:51:42 +01:00
|
|
|
# With Python-2.3 and up, the Idle code is part of the base library.
|
2003-08-04 10:18:58 +02:00
|
|
|
# We just install a wrapper script. Also, threads are required now.
|
2005-01-13 22:51:42 +01:00
|
|
|
# NOTE: if you add a new version of Python here, add to the following test
|
2003-08-04 10:18:58 +02:00
|
|
|
#
|
2005-01-13 22:51:42 +01:00
|
|
|
.include "../../lang/python/extension.mk"
|
2003-08-04 10:18:58 +02:00
|
|
|
|
2012-03-22 10:23:07 +01:00
|
|
|
.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}
|
2003-08-04 10:18:58 +02:00
|
|
|
NO_BUILD= yes
|
2005-06-16 08:57:37 +02:00
|
|
|
INSTALLATION_DIRS= bin
|
2003-08-04 10:18:58 +02:00
|
|
|
|
|
|
|
do-install:
|
2012-03-22 10:23:07 +01:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/Tools/scripts/${IDLE_NAME} \
|
2008-03-03 18:45:33 +01:00
|
|
|
${DESTDIR}${PREFIX}/bin/idle${PYVERSSUFFIX}
|
2003-08-04 10:18:58 +02:00
|
|
|
|
2002-12-10 16:08:19 +01:00
|
|
|
.include "../../lang/python/srcdist.mk"
|
2002-09-22 01:46:45 +02:00
|
|
|
.include "../../lang/python/application.mk"
|
2000-12-19 00:52:39 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|