blob: 562bf1a02db8a2400ed76114be4fd59e01d80c19 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# $NetBSD: Makefile,v 1.7 2003/06/02 01:20:17 jschauma Exp $
#
PKGNAME= ${PYPKGPREFIX}-idle-0
CATEGORIES= devel
MAINTAINER= tech-pkg@netbsd.org
HOMEPAGE= http://www.python.org/idle/
COMMENT= IDLE - The Integrated DeveLopment Environment for Python
USE_X11= yes
USE_BUILDLINK2= yes
EXTRACT_ELEMENTS= ${PYSUBDIR}/Tools/idle/*
PYTHON_PATCH_SCRIPTS= ${WRKSRC}/Tools/idle/idle.py
PLIST_SRC= ${WRKDIR}/.PLIST_SRC
PY_PATCHPLIST= yes
PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX}
# ignore errors due to missing files (EXTRACT_ELEMENTS!)
do-patch:
(cd ${WRKSRC}; \
for f in ${PATCHDIR}/patch-*;do \
${PATCH} --batch <$$f || true; \
done)
do-build:
${PYTHONBIN} ${LOCALBASE}/${PYLIB}/compileall.py ${WRKSRC}/Tools/idle
do-install:
${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})
.include "../../lang/python/extension.mk"
.include "../../lang/python/srcdist.mk"
.include "../../lang/python/application.mk"
.include "../../x11/py-Tk/buildlink2.mk"
.include "../../mk/bsd.pkg.mk"
|