Subject: pkg/18908: Python support in chat/xchat
To: None <gnats-bugs@gnats.netbsd.org>
From: None <Juan@xtraeme.dyndns.org>
List: netbsd-bugs
Date: 11/03/2002 23:26:27
>Number:         18908
>Category:       pkg
>Synopsis:       Python support in chat/xchat
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sun Nov 03 15:29:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Juan RP
>Release:        NetBSD 1.6K
>Organization:
HispaBSD
>Environment:
System: NetBSD xtraeme.dyndns.org 1.6K NetBSD 1.6K (xtrakernel) #2: Sun Nov 3 16:21:57 CET 2002 root@xtraeme.dyndns.org:/usr/src/sys/arch/i386/compile/xtrakernel i386
Architecture: i386
Machine: i386
>Description:

This patch enables in chat/xchat python scripting support and the value by default is YES in mk/bsd.pkg.defaults.mk:   

Index: bsd.pkg.defaults.mk
===================================================================
RCS file: /pub/NetBSD-CVS/pkgsrc/mk/bsd.pkg.defaults.mk,v
retrieving revision 1.101
diff -u -r1.101 bsd.pkg.defaults.mk
--- bsd.pkg.defaults.mk 2002/10/21 01:18:55     1.101
+++ bsd.pkg.defaults.mk 2002/11/03 22:19:17
@@ -1537,6 +1537,11 @@
 # Possible: standard, 3d, xpm
 # Default: standard
 
+XCHAT_USE_PYTHON?= YES
+# Enable Python in xchat (for Python scripting support)
+# # Possible: YES, NO
+# # Default: YES
+
 XCHAT_USE_SSL?=        YES
 # Enable SSL in xchat (for IRC server connections)
 # Possible: YES, NO

And this is the modification patch for Makefile.common in chat/xchat:

--- Makefile.common     2002/09/21 23:52:55     1.5
+++ Makefile.common     2002/11/03 22:25:18
@@ -1,10 +1,12 @@
 # $NetBSD: Makefile.common,v 1.5 2002/09/21 23:52:55 jlam Exp $
 
 DISTNAME=      xchat-1.8.10
+PKGREVISION=   1
 CATEGORIES=    chat x11
 MASTER_SITES=  ${HOMEPAGE}files/source/1.8/
 EXTRACT_SUFX=  .tar.bz2
 
+
 MAINTAINER=    tron@netbsd.org
 HOMEPAGE=      http://xchat.org/
 COMMENT=       X11 (X Window System) IRC client, using the GTK+ toolkit
@@ -47,10 +49,15 @@
 CONFIGURE_ARGS+=       --enable-socks
 .endif
 
+# Python support
+.if defined(XCHAT_USE_PYTHON) && ${XCHAT_USE_PYTHON} == YES
+.include "../../lang/python/application.mk"
+CONFIGURE_ARGS+=       --enable-python
+.endif
+
 post-install:
        ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/xchat
        ${INSTALL_DATA} ${WRKSRC}/doc/*.html ${PREFIX}/share/doc/xchat
 
 .include "../../devel/glib/buildlink2.mk"
 .include "../../lang/perl5/buildlink2.mk"
-.include "../../lang/python/application.mk"

>How-To-Repeat:

Package xchat doesnt activate python support by default, with this patch we enables support python, with XCHAT_USE_PYTHON variable and this value is YES by default. 

Thanks.

>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: