Date: Mon, 2 Dec 2002 17:02:16 +1100 (EST) From: Gregory Bond <gnb@itga.com.au> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/45909: New port: Python DBI Sybase module Message-ID: <200212020602.gB262GRb014018@hellcat.itga.com.au>
next in thread | raw e-mail | index | archive | help
>Number: 45909 >Category: ports >Synopsis: New port: Python DBI Sybase module >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Dec 01 22:10:00 PST 2002 >Closed-Date: >Last-Modified: >Originator: Gregory Bond >Release: FreeBSD 4.7-STABLE i386 >Organization: ITG Australia Limited >Environment: System: FreeBSD hellcat.itga.com.au 4.7-STABLE FreeBSD 4.7-STABLE #11: Mon Nov 4 17:28:20 EST 2002 toor@grollo.itga.com.au:/usr/obj/usr/src/sys/HELLCAT i386 >Description: py-sybase is an interface to Sybase that is DBI API 2.0 compliant. On FreeBSD, it uses the FreeTDS libraries. So it may even work for MS SQLServer! >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: # # databases/py-sybase # databases/py-sybase/Makefile # databases/py-sybase/distinfo # databases/py-sybase/pkg-comment # databases/py-sybase/pkg-descr # databases/py-sybase/pkg-plist # databases/py-sybase/files # databases/py-sybase/files/patch-freetds.h # echo c - databases/py-sybase mkdir -p databases/py-sybase > /dev/null 2>&1 echo x - databases/py-sybase/Makefile sed 's/^X//' >databases/py-sybase/Makefile << 'END-of-databases/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.35 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 XMAKE_ENV+= SYBASE=${LOCALBASE} X.if !defined(WITHOUT_THREADS) XBUILDARGS= -D WANT_THREADS,HAVE_FREETDS -U WANT_BULKCOPY X.else XBUILDARGS= -D HAVE_FREETDS -U WANT_BULKCOPY X.endif 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-databases/py-sybase/Makefile echo x - databases/py-sybase/distinfo sed 's/^X//' >databases/py-sybase/distinfo << 'END-of-databases/py-sybase/distinfo' XMD5 (sybase-0.35.tar.gz) = 0d5321428ca139beb57eafc5a01c96da XMD5 (sybase-html.tar.gz) = c2112d5d7dbf1a90e86eeb202bfaede3 END-of-databases/py-sybase/distinfo echo x - databases/py-sybase/pkg-comment sed 's/^X//' >databases/py-sybase/pkg-comment << 'END-of-databases/py-sybase/pkg-comment' XA Python Database API interface to the Sybase relational database system. END-of-databases/py-sybase/pkg-comment echo x - databases/py-sybase/pkg-descr sed 's/^X//' >databases/py-sybase/pkg-descr << 'END-of-databases/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-databases/py-sybase/pkg-descr echo x - databases/py-sybase/pkg-plist sed 's/^X//' >databases/py-sybase/pkg-plist << 'END-of-databases/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-databases/py-sybase/pkg-plist echo c - databases/py-sybase/files mkdir -p databases/py-sybase/files > /dev/null 2>&1 echo x - databases/py-sybase/files/patch-freetds.h sed 's/^X//' >databases/py-sybase/files/patch-freetds.h << 'END-of-databases/py-sybase/files/patch-freetds.h' X--- freetds.h.orig Thu Nov 21 11:10:06 2002 X+++ freetds.h Thu Nov 21 11:10:24 2002 X@@ -62,7 +62,9 @@ X #define CS_DATES_YMD3 CS_DATES_YMD3 X #define CS_DATES_YMD3_YYYY CS_DATES_YMD3_YYYY X X+#ifndef CS_SRC_VALUE X #define CS_SRC_VALUE 0 X+#endif X #define CS_MAX_SCALE 77 X X typedef unsigned char CS_BIT; END-of-databases/py-sybase/files/patch-freetds.h exit --- py-sybase-port.shar ends here --- >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200212020602.gB262GRb014018>