summaryrefslogtreecommitdiff
path: root/lang/python
diff options
context:
space:
mode:
authordrochner <drochner>2002-01-28 09:04:07 +0000
committerdrochner <drochner>2002-01-28 09:04:07 +0000
commit5b1829879ff0f9cde47e5165a1e287a4edda3ba6 (patch)
tree78efb8995125d7d6dae535f5f0023e8bd80c8717 /lang/python
parent097039e3b763e8694465fb2ed422a33670277dd2 (diff)
downloadpkgsrc-5b1829879ff0f9cde47e5165a1e287a4edda3ba6.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')
-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