2006-03-04 22:28:51 +01:00
|
|
|
# $NetBSD: Makefile,v 1.24 2006/03/04 21:29:27 jlam 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
|
|
|
|
2002-01-29 12:12:47 +01:00
|
|
|
PLIST_SRC= ${WRKDIR}/.PLIST_SRC
|
|
|
|
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-23 21:41:45 +01:00
|
|
|
PYTHON_VERSIONS_ACCEPTED= 24 23 22 21 20
|
2005-01-13 22:51:42 +01:00
|
|
|
.include "../../lang/python/extension.mk"
|
2005-01-23 21:41:45 +01:00
|
|
|
.if (${PYPKGPREFIX} != "py23") && (${PYPKGPREFIX} != "py24")
|
2003-08-04 10:18:58 +02:00
|
|
|
|
|
|
|
EXTRACT_ELEMENTS= ${PYSUBDIR}/Tools/idle/*
|
2003-09-02 15:21:30 +02:00
|
|
|
PYTHON_PATCH_SCRIPTS= Tools/idle/idle.py
|
2005-06-16 08:57:37 +02:00
|
|
|
INSTALLATION_DIRS= bin ${PYSITELIB}
|
2003-08-04 10:18:58 +02:00
|
|
|
|
2000-12-19 00:52:39 +01:00
|
|
|
do-build:
|
2002-01-29 12:12:47 +01:00
|
|
|
${PYTHONBIN} ${LOCALBASE}/${PYLIB}/compileall.py ${WRKSRC}/Tools/idle
|
2000-12-19 00:52:39 +01:00
|
|
|
|
|
|
|
do-install:
|
2002-01-29 12:12:47 +01:00
|
|
|
${CP} -r ${WRKSRC}/Tools/idle ${PREFIX}/${PYSITELIB}
|
|
|
|
${CHMOD} +x ${PREFIX}/${PYSITELIB}/idle/idle.py
|
|
|
|
${LN} -sf ${PREFIX}/${PYSITELIB}/idle/idle.py \
|
|
|
|
${PREFIX}/bin/idle${PYVERSSUFFIX}
|
|
|
|
${CAT} ${PKGDIR}/PLIST.pre >${PLIST_SRC}
|
|
|
|
(cd ${PREFIX}; ${FIND} ${PYSITELIB}/idle -type f -print \
|
|
|
|
>>${PLIST_SRC})
|
|
|
|
(cd ${PREFIX}; ${FIND} -d ${PYSITELIB}/idle -type d -print | \
|
|
|
|
${SED} -e "s/^/@dirrm /" >>${PLIST_SRC})
|
|
|
|
|
2005-01-23 21:41:45 +01:00
|
|
|
.else # py23 and up
|
2003-08-04 10:18:58 +02:00
|
|
|
|
|
|
|
EXTRACT_ELEMENTS= ${PYSUBDIR}/Tools/scripts/idle
|
2004-04-15 19:58:57 +02:00
|
|
|
PYTHON_PATCH_SCRIPTS= Tools/scripts/idle
|
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:
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/Tools/scripts/idle \
|
|
|
|
${PREFIX}/bin/idle${PYVERSSUFFIX}
|
|
|
|
${CAT} ${PKGDIR}/PLIST.pre >${PLIST_SRC}
|
|
|
|
|
2005-01-23 21:41:45 +01:00
|
|
|
.endif # py23 and up
|
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"
|
2004-05-02 05:55:05 +02:00
|
|
|
.include "../../x11/py-Tk/buildlink3.mk"
|
2000-12-19 00:52:39 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|