From 5b1829879ff0f9cde47e5165a1e287a4edda3ba6 Mon Sep 17 00:00:00 2001 From: drochner Date: Mon, 28 Jan 2002 09:04:07 +0000 Subject: 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 --- lang/python/srcdist.mk | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 lang/python/srcdist.mk (limited to 'lang/python') 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 -- cgit v1.2.3