summaryrefslogtreecommitdiff
path: root/lang/python21
diff options
context:
space:
mode:
authorminskim <minskim@pkgsrc.org>2005-05-29 11:18:35 +0000
committerminskim <minskim@pkgsrc.org>2005-05-29 11:18:35 +0000
commitcefaa42234e84505fc119cc65c33d0cd16553c69 (patch)
tree4cf5916f8256b6876e3abb46a46e422c75bfd132 /lang/python21
parent06762bff4a8de3047207be36fbcb6c8ed8a1955d (diff)
downloadpkgsrc-cefaa42234e84505fc119cc65c33d0cd16553c69.tar.gz
Fix PLIST on NetBSD>=2.
Bump PKGREVISION.
Diffstat (limited to 'lang/python21')
-rw-r--r--lang/python21/Makefile16
-rw-r--r--lang/python21/PLIST.common8
2 files changed, 21 insertions, 3 deletions
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