blob: 340954e48736b55af7a3492d9f99d128b69e488d (
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
47
48
|
# $NetBSD: srcdist.mk,v 1.1 2002/01/28 09:04:07 drochner Exp $
.include "../../lang/python/pyversion.mk"
.if ${_PYTHON_VERSION} == "22"
DISTNAME= Python-2.2
EXTRACT_SUFX= .tgz
DISTINFO_FILE= ${.CURDIR}/../../lang/python22/distinfo
PATCHDIR= ${.CURDIR}/../../lang/python22/patches
PYSUBDIR= Python-2.2
WRKSRC= ${WRKDIR}/${PYSUBDIR}
MASTER_SITES= ftp://ftp.python.org/pub/python/2.1.2/
.elif ${_PYTHON_VERSION} == "21"
DISTNAME= Python-2.1.2
EXTRACT_SUFX= .tgz
DISTINFO_FILE= ${.CURDIR}/../../lang/python21/distinfo
PATCHDIR= ${.CURDIR}/../../lang/python21/patches
PYSUBDIR= Python-2.1.2
WRKSRC= ${WRKDIR}/${PYSUBDIR}
MASTER_SITES= ftp://ftp.python.org/pub/python/2.1.2/
.elif ${_PYTHON_VERSION} == "20"
DISTNAME= Python-2.0.1
# for historical reasons
DIST_SUBDIR= python
EXTRACT_SUFX= .tgz
DISTINFO_FILE= ${.CURDIR}/../../lang/python20/distinfo
PATCHDIR= ${.CURDIR}/../../lang/python20/patches
PYSUBDIR= Python-2.0.1
WRKSRC= ${WRKDIR}/${PYSUBDIR}
MASTER_SITES= ftp://ftp.python.org/pub/python/2.0.1/
.endif
.if defined(PYDISTUTILSPKG)
# This is used for standard modules shipped with Python but build as
# separate packages.
python-std-patchsetup:
${SED} ${PY_SETUP_SUBST:S/=/@!/:S/$/!g/:S/^/ -e s!@/} \
<${FILESDIR}/setup.py >${WRKSRC}/setup.py
post-extract: python-std-patchsetup
.endif
|