From cefaa42234e84505fc119cc65c33d0cd16553c69 Mon Sep 17 00:00:00 2001 From: minskim Date: Sun, 29 May 2005 11:18:35 +0000 Subject: Fix PLIST on NetBSD>=2. Bump PKGREVISION. --- lang/python21/Makefile | 16 ++++++++++++++-- lang/python21/PLIST.common | 8 +++++++- 2 files changed, 21 insertions(+), 3 deletions(-) (limited to 'lang') diff --git a/lang/python21/Makefile b/lang/python21/Makefile index 3211504443b..a6ede3da49c 100644 --- a/lang/python21/Makefile +++ b/lang/python21/Makefile @@ -1,9 +1,9 @@ -# $NetBSD: Makefile,v 1.22 2005/05/29 09:40:09 minskim Exp $ +# $NetBSD: Makefile,v 1.23 2005/05/29 11:18:35 minskim Exp $ # DISTNAME= Python-2.1.3 PKGNAME= python21-2.1.3 -PKGREVISION= 6 +PKGREVISION= 7 CATEGORIES= lang python MASTER_SITES= ftp://ftp.python.org/pub/python/2.1.3/ EXTRACT_SUFX= .tgz @@ -47,6 +47,18 @@ PY_PLATNAME= ${LOWER_OPSYS}${OS_VERSION:C/\..*//} .endif PLIST_SUBST+= PY_PLATNAME=${PY_PLATNAME} +PLAT_SOCKET= "@comment " +PLAT_TERMIOS= "@comment " +.if !empty(MACHINE_PLATFORM:MNetBSD-[2-9].*) +. if exists(/usr/include/sys/socket.h) +PLAT_SOCKET= "" +. endif +. if exists(/usr/include/termios.h) +PLAT_TERMIOS= "" +. endif +.endif +PLIST_SUBST+= PLAT_SOCKET=${PLAT_SOCKET} PLAT_TERMIOS=${PLAT_TERMIOS} + # bsddb.so is not built on Solaris (or IRIX?) BSDDB= .if ${OPSYS} == "SunOS" || ${OPSYS} == "IRIX" diff --git a/lang/python21/PLIST.common b/lang/python21/PLIST.common index bfefdb4b9b4..4dc02cd6363 100644 --- a/lang/python21/PLIST.common +++ b/lang/python21/PLIST.common @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST.common,v 1.1 2004/01/24 07:09:15 grant Exp $ +@comment $NetBSD: PLIST.common,v 1.2 2005/05/29 11:18:35 minskim Exp $ bin/pydoc${PY_VER_SUFFIX} bin/python${PY_VER_SUFFIX} include/python${PY_VER_SUFFIX}/Python.h @@ -832,6 +832,12 @@ lib/python${PY_VER_SUFFIX}/plat-${PY_PLATNAME}/FCNTL.pyo lib/python${PY_VER_SUFFIX}/plat-${PY_PLATNAME}/IN.py lib/python${PY_VER_SUFFIX}/plat-${PY_PLATNAME}/IN.pyc lib/python${PY_VER_SUFFIX}/plat-${PY_PLATNAME}/IN.pyo +${PLAT_SOCKET}lib/python${PY_VER_SUFFIX}/plat-${PY_PLATNAME}/SOCKET.py +${PLAT_SOCKET}lib/python${PY_VER_SUFFIX}/plat-${PY_PLATNAME}/SOCKET.pyc +${PLAT_SOCKET}lib/python${PY_VER_SUFFIX}/plat-${PY_PLATNAME}/SOCKET.pyo +${PLAT_TERMIOS}lib/python${PY_VER_SUFFIX}/plat-${PY_PLATNAME}/TERMIOS.py +${PLAT_TERMIOS}lib/python${PY_VER_SUFFIX}/plat-${PY_PLATNAME}/TERMIOS.pyc +${PLAT_TERMIOS}lib/python${PY_VER_SUFFIX}/plat-${PY_PLATNAME}/TERMIOS.pyo lib/python${PY_VER_SUFFIX}/plat-${PY_PLATNAME}/regen lib/python${PY_VER_SUFFIX}/popen2.py lib/python${PY_VER_SUFFIX}/popen2.pyc -- cgit v1.2.3