From 7080dbfdd18e74126c136dfd2b991a640cbc6454 Mon Sep 17 00:00:00 2001 From: obache Date: Fri, 17 Sep 2010 07:11:41 +0000 Subject: Share distfile related information for each python variants with srcdist.mk to make update simplicity. --- lang/python/srcdist.mk | 33 +++------------------------------ 1 file changed, 3 insertions(+), 30 deletions(-) (limited to 'lang/python') diff --git a/lang/python/srcdist.mk b/lang/python/srcdist.mk index a2ad5f1c123..ee536ab98d9 100644 --- a/lang/python/srcdist.mk +++ b/lang/python/srcdist.mk @@ -1,38 +1,11 @@ -# $NetBSD: srcdist.mk,v 1.33 2010/09/04 15:31:29 tron Exp $ +# $NetBSD: srcdist.mk,v 1.34 2010/09/17 07:11:41 obache Exp $ .include "../../lang/python/pyversion.mk" -.if ${_PYTHON_VERSION} == "26" +.sinclude "${.CURDIR}/${PYPKGSRCDIR}/dist.mk" -DISTNAME= Python-2.6.6 -EXTRACT_SUFX= .tar.bz2 -DISTINFO_FILE= ${.CURDIR}/../../lang/python26/distinfo -PATCHDIR= ${.CURDIR}/../../lang/python26/patches -PYSUBDIR= Python-2.6.6 +PYSUBDIR= ${DISTNAME} WRKSRC= ${WRKDIR}/${PYSUBDIR} -MASTER_SITES= ftp://ftp.python.org/pub/python/2.6/ - -.elif ${_PYTHON_VERSION} == "25" - -DISTNAME= Python-2.5.5 -EXTRACT_SUFX= .tar.bz2 -DISTINFO_FILE= ${.CURDIR}/../../lang/python25/distinfo -PATCHDIR= ${.CURDIR}/../../lang/python25/patches -PYSUBDIR= Python-2.5.5 -WRKSRC= ${WRKDIR}/${PYSUBDIR} -MASTER_SITES= ftp://ftp.python.org/pub/python/2.5/ - -.elif ${_PYTHON_VERSION} == "24" - -DISTNAME= Python-2.4.5 -EXTRACT_SUFX= .tar.bz2 -DISTINFO_FILE= ${.CURDIR}/../../lang/python24/distinfo -PATCHDIR= ${.CURDIR}/../../lang/python24/patches -PYSUBDIR= Python-2.4.5 -WRKSRC= ${WRKDIR}/${PYSUBDIR} -MASTER_SITES= ftp://ftp.python.org/pub/python/2.4/ - -.endif .if defined(PYDISTUTILSPKG) # This is used for standard modules shipped with Python but build as -- cgit v1.2.3