pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/python21 Fix PLIST on NetBSD>=2.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f70c587e194c
branches:  trunk
changeset: 494748:f70c587e194c
user:      minskim <minskim%pkgsrc.org@localhost>
date:      Sun May 29 11:18:35 2005 +0000

description:
Fix PLIST on NetBSD>=2.

Bump PKGREVISION.

diffstat:

 lang/python21/Makefile     |  16 ++++++++++++++--
 lang/python21/PLIST.common |   8 +++++++-
 2 files changed, 21 insertions(+), 3 deletions(-)

diffs (56 lines):

diff -r 196b13230655 -r f70c587e194c lang/python21/Makefile
--- a/lang/python21/Makefile    Sun May 29 11:12:01 2005 +0000
+++ b/lang/python21/Makefile    Sun May 29 11:18:35 2005 +0000
@@ -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 @@
 .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 -r 196b13230655 -r f70c587e194c lang/python21/PLIST.common
--- a/lang/python21/PLIST.common        Sun May 29 11:12:01 2005 +0000
+++ b/lang/python21/PLIST.common        Sun May 29 11:18:35 2005 +0000
@@ -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}/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



Home | Main Index | Thread Index | Old Index