Subject: pkg/21394:
To: None <gnats-bugs@gnats.netbsd.org>
From: None <mlh@goathill.org>
List: netbsd-bugs
Date: 04/29/2003 12:35:26
>Number:         21394
>Category:       pkg
>Synopsis:       
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Apr 29 17:36:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     MLH
>Release:        NetBSD 1.6R
>Organization:
none
	
>Environment:
	
	
System: NetBSD tiamat.goathill.org 1.6R NetBSD 1.6R (GENERIC) #0: Wed Apr 23
22:49:48 CDT 2003 mlh@tiamat.goathill.org:/opt/src/sys/arch/i386/compile/obj.i386/GENERIC i386
Architecture: i386
Machine: i386
>Description:
New package for Sybase database support for Python using the FreeTDS
libraries.  Note that it really should use FreeTDS 0.61 which has
not yet been updated in the pkg system (or tested with this NetBSD
package).  I am not sure how to create the buildlink file, so would
appreciate some assistance there.  There are a few remaining problems
with the FreeTDS support but it is stable for many applications
and we are working on improving it.
	

>How-To-Repeat:
	
>Fix:
	
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	py-sybase/DESCR
#	py-sybase/Makefile
#	py-sybase/PLIST
#	py-sybase/buildlink2.mk
#	py-sybase/distinfo
#
echo x - py-sybase/DESCR
sed 's/^X//' >py-sybase/DESCR << 'END-of-py-sybase/DESCR'
XThis Sybase module provides a Python interface to the Sybase relational
Xdatabase system. The Sybase package supports all of the Python Database API,
Xversion 2.0 with extensions.
X
XThis pkgsrc module (pysybase) is currently configured to use the FreeTDS
Xclient libraries instead of the Sybase client libraries.
END-of-py-sybase/DESCR
echo x - py-sybase/Makefile
sed 's/^X//' >py-sybase/Makefile << 'END-of-py-sybase/Makefile'
X# $NetBSD$
X#
X
XDISTNAME=	sybase-0.36
XPKGNAME=	${PYPKGPREFIX}-${DISTNAME}
XCATEGORIES=	database
XMASTER_SITES=	http://object-craft.com.au/projects/sybase/download/
X
XMAINTAINER=	INSERT_YOUR_MAIL_ADDRESS_HERE
XHOMEPAGE=       http://www.object-craft.com.au/projects/sybase/
XCOMMENT=        Sybase interface for Python using FreeTDS
X
XDEPENDS+=       freetds>=0.60:../../databases/freetds
X
XPYTHON_VERSIONS_ACCEPTED= 21pth 22pth
X
XPYSETUPBUILDARGS= build_ext -D HAVE_FREETDS=60 -U WANT_BULKCOPY
XUSE_BUILDLINK2= yes
XPYDISTUTILSPKG=	yes
XPY_PATCHPLIST= yes
X
XSYBASE=${BUILDLINK_PREFIX.freetds}/freetds
XMAKE_ENV+= SYBASE=${SYBASE}
X
Xpost-patch:
X	${SED}  -e "s|runtime_library_dirs = None|runtime_library_dirs = ['${SYBASE}'+'/lib']|" \
X		<${WRKSRC}/setup.py >${WRKSRC}/setup.py.tmp
X	${MV} ${WRKSRC}/setup.py.tmp ${WRKSRC}/setup.py
X.include "../../databases/freetds/buildlink2.mk"
X.include "../../lang/python/extension.mk"
X.include "../../mk/bsd.pkg.mk"
X
END-of-py-sybase/Makefile
echo x - py-sybase/PLIST
sed 's/^X//' >py-sybase/PLIST << 'END-of-py-sybase/PLIST'
X@comment $NetBSD$
X${PYSITELIB}/sybasect.so
X${PYSITELIB}/Sybase.py
X${PYSITELIB}/Sybase.pyc
END-of-py-sybase/PLIST
echo x - py-sybase/buildlink2.mk
sed 's/^X//' >py-sybase/buildlink2.mk << 'END-of-py-sybase/buildlink2.mk'
X# $NetBSD: buildlink2.mk
X
X.include "../../lang/python/pyversion.mk"
X
XBUILDLINK_PACKAGES+=		pysybase
XBUILDLINK_DEPENDS.pysybase?=	${PYPKGPREFIX}-sybase-*
XBUILDLINK_PKGSRCDIR.pysybase?=	../../databases/py-sybase
X
XBUILDLINK_CFLAGS.pysybase+=     -I${BUILDLINK_PREFIX.pysybase}/include
X
END-of-py-sybase/buildlink2.mk
echo x - py-sybase/distinfo
sed 's/^X//' >py-sybase/distinfo << 'END-of-py-sybase/distinfo'
X$NetBSD$
X
XSHA1 (sybase-0.36.tar.gz) = 9b46e9e0dfb222cd36101208d3dcb9190f15b6aa
XSize (sybase-0.36.tar.gz) = 93919 bytes
END-of-py-sybase/distinfo
exit

>Release-Note:
>Audit-Trail:
>Unformatted:
 New package for Sybase database support for Python using the FreeTDS libraries