summaryrefslogtreecommitdiff
path: root/lang/python/srcdist.mk
diff options
context:
space:
mode:
authordrochner <drochner@pkgsrc.org>2002-01-28 09:04:07 +0000
committerdrochner <drochner@pkgsrc.org>2002-01-28 09:04:07 +0000
commitb165e0fea48c292101c041d64c8af16568f153b0 (patch)
tree78efb8995125d7d6dae535f5f0023e8bd80c8717 /lang/python/srcdist.mk
parent10fb819900d0dca1f9c26ca5c5a77115e8060fe2 (diff)
downloadpkgsrc-b165e0fea48c292101c041d64c8af16568f153b0.tar.gz
collect definition for stuff built from the Python source distribution
(ie Python itself and various modules which depend on additional libs - eg ncurses and gdbm) in one place
Diffstat (limited to 'lang/python/srcdist.mk')
-rw-r--r--lang/python/srcdist.mk48
1 files changed, 48 insertions, 0 deletions
diff --git a/lang/python/srcdist.mk b/lang/python/srcdist.mk
new file mode 100644
index 00000000000..340954e4873
--- /dev/null
+++ b/lang/python/srcdist.mk
@@ -0,0 +1,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