From gnb@itga.com.au  Mon Apr 28 19:08:54 2003
Return-Path: <gnb@itga.com.au>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id BE25637B401
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 28 Apr 2003 19:08:54 -0700 (PDT)
Received: from ns1.itga.com.au (ns1.itga.com.au [202.53.40.214])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 704A043FA3
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 28 Apr 2003 19:08:53 -0700 (PDT)
	(envelope-from gnb@itga.com.au)
Received: from lightning.itga.com.au (lightning.itga.com.au [192.168.71.20])
	by ns1.itga.com.au (8.12.9/8.12.9) with ESMTP id h3T28qm2027683
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 29 Apr 2003 12:08:52 +1000 (EST)
	(envelope-from gnb@itga.com.au)
Received: from hellcat.itga.com.au (hellcat.itga.com.au [10.132.2.163])
	by lightning.itga.com.au (8.9.3/8.9.3) with ESMTP id MAA29653;
	Tue, 29 Apr 2003 12:08:52 +1000 (EST)
Received: from hellcat.itga.com.au (localhost [127.0.0.1])
	by hellcat.itga.com.au (8.12.8/8.12.8) with ESMTP id h3T28qat034757
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 29 Apr 2003 12:08:52 +1000 (EST)
	(envelope-from gnb@hellcat.itga.com.au)
Received: (from gnb@localhost)
	by hellcat.itga.com.au (8.12.8/8.12.8/Submit) id h3T28qQW034756;
	Tue, 29 Apr 2003 12:08:52 +1000 (EST)
Message-Id: <200304290208.h3T28qQW034756@hellcat.itga.com.au>
Date: Tue, 29 Apr 2003 12:08:52 +1000 (EST)
From: Gregory Bond <gnb@itga.com.au>
Reply-To: Gregory Bond <gnb@itga.com.au>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: New port: py-sybase 0.36 (Sybase DB module for Python)
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         51543
>Category:       ports
>Synopsis:       New port: py-sybase 0.36 (Sybase DB module for Python)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Apr 28 19:10:13 PDT 2003
>Closed-Date:    Fri Oct 03 01:56:32 PDT 2003
>Last-Modified:  Fri Oct 03 01:56:32 PDT 2003
>Originator:     Gregory Bond
>Release:        FreeBSD 4.8-RC i386
>Organization:
ITG Australia Limited
>Environment:
System: FreeBSD hellcat.itga.com.au 4.8-RC FreeBSD 4.8-RC #2: Mon Mar 17 11:26:12 EST 2003 toor@grollo.itga.com.au:/usr/obj/usr/src/sys/HELLCAT i386


>Description:

A Python interface to the Sybase relational database system. The
Sybase package supports all of the Python Database API, version 2.0
with extensions.

NB: This pr supercedes PR ports/45909 which was for an earlier version of
the Sybase library.

The only curly problem in this port is determining what version of
the FreeTDS library is installed, as the build command needs to
know this.  The solution I've used (running pkg_info from a pre-extract
target) seems to work OK but is a bit fragile if the user is doing odd things
(e.g. run make extract then make).  Any suggestions would be welcome!

>How-To-Repeat:
>Fix:

--- py-sybase-port.shar begins here ---
# 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/Makefile
#	py-sybase/distinfo
#	py-sybase/files
#	py-sybase/pkg-comment
#	py-sybase/pkg-descr
#	py-sybase/pkg-plist
#
echo x - py-sybase/Makefile
sed 's/^X//' >py-sybase/Makefile << 'END-of-py-sybase/Makefile'
X# New ports collection makefile for:	py-sybase
X# Date created:		21 November 2002
X# Whom:	      		Gregory Bond <gnb@itga.com.au>
X#
X# $FreeBSD$
X
XPORTNAME=	sybase
XPORTVERSION=	0.36
XCATEGORIES=	databases python
XMASTER_SITES=	http://object-craft.com.au/projects/sybase/download/
XPKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
X
XMAINTAINER=	gnb@itga.com.au
X
XDISTFILES=    ${DISTNAME}${EXTRACT_SUFX} ${PORTNAME}-html${EXTRACT_SUFX}
X
XLIB_DEPENDS= tds.0:${PORTSDIR}/databases/freetds
X
XUSE_PYTHON=	yes
XUSE_PYDISTUTILS=	yes
X
X
X.if defined(TDS_VERSION)
XTDS_SUF="=$(TDS_VERSION)"
X.else
Xpre-fetch:
X	@V=`pkg_info | sed -ne 's/^freetds-0.\(..\).*/\1/p'` ; \
X	if [ $$V -le 60 ]; then \
X		${ECHO_MSG} "Suggest you update your FreeTDS port to at least version 0.61" ; \
X		${ECHO_MSG} "Otherwise, you will need to add TDS_VERSION=$$V to the Make command" ; \
X		exit 1 ;\
X	fi
X.endif	# defined(TDS_VERSION)
X
XMAKE_ENV+= SYBASE=${LOCALBASE}
X
X.if !defined(WITHOUT_THREADS)
XBUILDARGS= -D WANT_THREADS -U WANT_BULKCOPY -D HAVE_FREETDS${TDS_SUF} 
X.else
XBUILDARGS= -U WANT_BULKCOPY -D HAVE_FREETDS${TDS_SUF} 
X.endif
X
X# Need this because -D<> args needed for build_ext but illegal for build
Xdo-build:
X	@(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} ${PYSETUP} build_ext ${BUILDARGS} )
X	@(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} ${PYSETUP} build)
X
Xpost-install:
X.if !defined(NOPORTDOCS)
X	@${MKDIR} ${EXAMPLESDIR} ${DOCSDIR}
X	@${TAR} -cf - -C ${WRKSRC}/examples . | ${TAR} -xf - -C ${EXAMPLESDIR}
X	@${TAR} -cf - -C ${WRKDIR}/${PORTNAME} . | ${TAR} -xf - -C ${DOCSDIR}
X.endif
X
X.include <bsd.port.mk>
END-of-py-sybase/Makefile
echo x - py-sybase/distinfo
sed 's/^X//' >py-sybase/distinfo << 'END-of-py-sybase/distinfo'
XMD5 (sybase-0.36.tar.gz) = 61b624b137d78462b9dc4c3d8ba43450
XMD5 (sybase-html.tar.gz) = c48433fde6cc29fd8b08ae0afe8a113d
END-of-py-sybase/distinfo
echo c - py-sybase/files
mkdir -p py-sybase/files > /dev/null 2>&1
echo x - py-sybase/pkg-comment
sed 's/^X//' >py-sybase/pkg-comment << 'END-of-py-sybase/pkg-comment'
XA Python Database API interface to the Sybase relational database system. 
END-of-py-sybase/pkg-comment
echo x - py-sybase/pkg-descr
sed 's/^X//' >py-sybase/pkg-descr << 'END-of-py-sybase/pkg-descr'
XA Python interface to the Sybase relational database system. The
XSybase package supports all of the Python Database API, version 2.0
Xwith extensions.
X
XAuthor: Dave Cole <djc@object-craft.com.au>
XWWW:    http://object-craft.com.au/projects/sybase/
X
X-- Gregory Bond <gnb@itga.com.au>
END-of-py-sybase/pkg-descr
echo x - py-sybase/pkg-plist
sed 's/^X//' >py-sybase/pkg-plist << 'END-of-py-sybase/pkg-plist'
X%%PYTHON_SITELIBDIR%%/Sybase.py
X%%PYTHON_SITELIBDIR%%/Sybase.pyc
X%%PYTHON_SITELIBDIR%%/Sybase.pyo
X%%PYTHON_SITELIBDIR%%/sybasect.so
X%%PORTDOCS%%share/doc/sybase/about.html
X%%PORTDOCS%%share/doc/sybase/contents.html
X%%PORTDOCS%%share/doc/sybase/front.html
X%%PORTDOCS%%share/doc/sybase/genindex.html
X%%PORTDOCS%%share/doc/sybase/images.aux
X%%PORTDOCS%%share/doc/sybase/images.idx
X%%PORTDOCS%%share/doc/sybase/images.log
X%%PORTDOCS%%share/doc/sybase/images.tex
X%%PORTDOCS%%share/doc/sybase/index.html
X%%PORTDOCS%%share/doc/sybase/modimages.idx
X%%PORTDOCS%%share/doc/sybase/module-Sybase.html
X%%PORTDOCS%%share/doc/sybase/module-sybasect.html
X%%PORTDOCS%%share/doc/sybase/node10.html
X%%PORTDOCS%%share/doc/sybase/node12.html
X%%PORTDOCS%%share/doc/sybase/node13.html
X%%PORTDOCS%%share/doc/sybase/node14.html
X%%PORTDOCS%%share/doc/sybase/node15.html
X%%PORTDOCS%%share/doc/sybase/node16.html
X%%PORTDOCS%%share/doc/sybase/node17.html
X%%PORTDOCS%%share/doc/sybase/node18.html
X%%PORTDOCS%%share/doc/sybase/node19.html
X%%PORTDOCS%%share/doc/sybase/node20.html
X%%PORTDOCS%%share/doc/sybase/node21.html
X%%PORTDOCS%%share/doc/sybase/node22.html
X%%PORTDOCS%%share/doc/sybase/node23.html
X%%PORTDOCS%%share/doc/sybase/node3.html
X%%PORTDOCS%%share/doc/sybase/node4.html
X%%PORTDOCS%%share/doc/sybase/node5.html
X%%PORTDOCS%%share/doc/sybase/node6.html
X%%PORTDOCS%%share/doc/sybase/node7.html
X%%PORTDOCS%%share/doc/sybase/node9.html
X%%PORTDOCS%%share/doc/sybase/sybase.css
X%%PORTDOCS%%share/doc/sybase/sybase.html
X%%PORTDOCS%%share/doc/sybase/icons/blank.gif
X%%PORTDOCS%%share/doc/sybase/icons/blank.png
X%%PORTDOCS%%share/doc/sybase/icons/contents.gif
X%%PORTDOCS%%share/doc/sybase/icons/contents.png
X%%PORTDOCS%%share/doc/sybase/icons/index.gif
X%%PORTDOCS%%share/doc/sybase/icons/index.png
X%%PORTDOCS%%share/doc/sybase/icons/modules.gif
X%%PORTDOCS%%share/doc/sybase/icons/modules.png
X%%PORTDOCS%%share/doc/sybase/icons/next.gif
X%%PORTDOCS%%share/doc/sybase/icons/next.png
X%%PORTDOCS%%share/doc/sybase/icons/previous.gif
X%%PORTDOCS%%share/doc/sybase/icons/previous.png
X%%PORTDOCS%%share/doc/sybase/icons/up.gif
X%%PORTDOCS%%share/doc/sybase/icons/up.png
X%%PORTDOCS%%share/examples/sybase/README
X%%PORTDOCS%%share/examples/sybase/array_bind.py
X%%PORTDOCS%%share/examples/sybase/array_bind.sql
X%%PORTDOCS%%share/examples/sybase/bulkcopy.py
X%%PORTDOCS%%share/examples/sybase/bulkcopy.sql
X%%PORTDOCS%%share/examples/sybase/cursor_sel.py
X%%PORTDOCS%%share/examples/sybase/cursor_upd.py
X%%PORTDOCS%%share/examples/sybase/cursor_upd.sql
X%%PORTDOCS%%share/examples/sybase/diag_example.py
X%%PORTDOCS%%share/examples/sybase/dynamic_cur.py
X%%PORTDOCS%%share/examples/sybase/dynamic_ins.py
X%%PORTDOCS%%share/examples/sybase/dynamic_ins.sql
X%%PORTDOCS%%share/examples/sybase/example.py
X%%PORTDOCS%%share/examples/sybase/mult_text.py
X%%PORTDOCS%%share/examples/sybase/mult_text.sql
X%%PORTDOCS%%share/examples/sybase/params.py
X%%PORTDOCS%%share/examples/sybase/rpc.py
X%%PORTDOCS%%share/examples/sybase/rpc.sql
X%%PORTDOCS%%share/examples/sybase/timeout.py
X%%PORTDOCS%%share/examples/sybase/timeout.readme
X%%PORTDOCS%%@dirrm share/doc/sybase/icons
X%%PORTDOCS%%@dirrm share/doc/sybase
X%%PORTDOCS%%@dirrm share/examples/sybase
END-of-py-sybase/pkg-plist
exit
--- py-sybase-port.shar ends here ---


>Release-Note:
>Audit-Trail:

From: Gregory Bond <gnb@itga.com.au>
To: freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: ports/51543: New port: py-sybase 0.36 (Sybase DB module for Python)
Date: Fri, 03 Oct 2003 11:08:50 +1000

 This PR can be closed.  It is superceeded by pr ports/57521
 
State-Changed-From-To: open->closed 
State-Changed-By: roam 
State-Changed-When: Fri Oct 3 01:56:17 PDT 2003 
State-Changed-Why:  
Superseded by ports/57521. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=51543 
>Unformatted:
