Date: Tue, 24 Aug 1999 21:46:24 -0400 (EDT) From: Mikhail Teterin <mi@aldan.algebra.com> To: FreeBSD-gnats-submit@freebsd.org Cc: tdarugar@binevolve.com Subject: ports/13361: TCL interface to MySQL port added Message-ID: <199908250146.VAA82310@guest.newton>
next in thread | raw e-mail | index | archive | help
>Number: 13361 >Category: ports >Synopsis: TCL interface to MySQL port added >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Aug 24 19:00:01 PDT 1999 >Closed-Date: >Last-Modified: >Originator: Mikhail Teterin >Release: FreeBSD 3.2-STABLE i386 >Organization: Virtual Estates, Inc. >Environment: >Description: The sql package adds the command sql to tcl. The author's intention is to build generic database interface for TCL, but currently he only supports MySQL. The author's web-site is at http://www.binaryevolution.com/~tdarugar/ . >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: # # tcl-Mysql # tcl-Mysql/files # tcl-Mysql/files/Makefile.bsd # tcl-Mysql/files/md5 # tcl-Mysql/pkg # tcl-Mysql/pkg/COMMENT # tcl-Mysql/pkg/DESCR # tcl-Mysql/pkg/PLIST # tcl-Mysql/Makefile # tcl-Mysql/patches # tcl-Mysql/patches/patch-aa # echo c - tcl-Mysql mkdir -p tcl-Mysql > /dev/null 2>&1 echo c - tcl-Mysql/files mkdir -p tcl-Mysql/files > /dev/null 2>&1 echo x - tcl-Mysql/files/Makefile.bsd sed 's/^X//' >tcl-Mysql/files/Makefile.bsd << 'END-of-tcl-Mysql/files/Makefile.bsd' XLIB = TclMySQL XSHLIB_MAJOR= 1 XSHLIB_MINOR= 0 X XSRCS = sql-mysql.cc sql.cc sql-manager.cc XCFLAGS += -I${PREFIX}/include/tcl8.0/ -I${PREFIX}/include/mysql/ XLDADD += -L${PREFIX}/lib -ltcl80 XLDADD += -L${PREFIX}/lib/mysql -lmysqlclient XLDADD += -lgcc X Xall: ${SHLIB_NAME} X Xprintname: X @echo ${SHLIB_NAME} X X.include <bsd.lib.mk> END-of-tcl-Mysql/files/Makefile.bsd echo x - tcl-Mysql/files/md5 sed 's/^X//' >tcl-Mysql/files/md5 << 'END-of-tcl-Mysql/files/md5' XMD5 (tcl-sql-990813.tgz) = 0307bba44f17b30e8a1204a78ca65181 END-of-tcl-Mysql/files/md5 echo c - tcl-Mysql/pkg mkdir -p tcl-Mysql/pkg > /dev/null 2>&1 echo x - tcl-Mysql/pkg/COMMENT sed 's/^X//' >tcl-Mysql/pkg/COMMENT << 'END-of-tcl-Mysql/pkg/COMMENT' XTCL module for accessing MySQL databases END-of-tcl-Mysql/pkg/COMMENT echo x - tcl-Mysql/pkg/DESCR sed 's/^X//' >tcl-Mysql/pkg/DESCR << 'END-of-tcl-Mysql/pkg/DESCR' XThe sql package adds the command sql to tcl. The author's intention is Xto build generic database interface for TCL, but currently he only Xsupports MySQL. X XThe author's web-site is at http://www.binaryevolution.com/~tdarugar/ . END-of-tcl-Mysql/pkg/DESCR echo x - tcl-Mysql/pkg/PLIST sed 's/^X//' >tcl-Mysql/pkg/PLIST << 'END-of-tcl-Mysql/pkg/PLIST' Xlib/tcl8.0/sql1.0/libTclMySQL.so.1 Xlib/tcl8.0/sql1.0/pkgIndex.tcl X@dirrm lib/tcl8.0/sql1.0 Xshare/doc/tcl-MySQL/api.html Xshare/doc/tcl-MySQL/sample.full.txt Xshare/doc/tcl-MySQL/sample.simple.txt X@dirrm share/doc/tcl-MySQL END-of-tcl-Mysql/pkg/PLIST echo x - tcl-Mysql/Makefile sed 's/^X//' >tcl-Mysql/Makefile << 'END-of-tcl-Mysql/Makefile' X# New ports collection makefile for: p5-Mysql-modules X# Version required: 1.2016 X# Date created: September 29th 1996 X# Whom: James FitzGibbon <jfitz@FreeBSD.org> X# X# $Id: Makefile,v 1.19 1999/07/01 09:06:31 dirk Exp $ X# X XDISTNAME= tcl-sql-990813 XCATEGORIES= databases tcl XMASTER_SITES= http://www.binevolve.com/~tdarugar/tcl-sql/download/ XEXTRACT_SUFX= .tgz X XMAINTAINER= mi@aldan.algebra.com X XLIB_DEPENDS= mysqlclient.6:${PORTSDIR}/databases/mysql322-client X XWRKSRC= ${WRKDIR}/tcl-sql/ X Xdo-build: X cd ${WRKSRC} && ${MAKE} PREFIX="${PREFIX}" -f ${FILESDIR}/Makefile.bsd X XSQL_DIR= ${PREFIX}/lib/tcl8.0/sql1.0 X Xdo-install: X ${MKDIR} ${SQL_DIR} X ${INSTALL_DATA} ${WRKSRC}/obj/libTclMySQL.so.* ${SQL_DIR} X ${ECHO} "package ifneeded sql 1.0 \ X {load \$$tcl_library/sql1.0/`${MAKE} -f \ X ${FILESDIR}/Makefile.bsd printname` sql}" \ X > ${SQL_DIR}/pkgIndex.tcl X.if !defined(NOPORTDOCS) X ${MKDIR} ${PREFIX}/share/doc/tcl-MySQL/ X ${INSTALL_DATA} ${WRKSRC}/docs/*.* ${PREFIX}/share/doc/tcl-MySQL/ X.endif X X.include <bsd.port.mk> END-of-tcl-Mysql/Makefile echo c - tcl-Mysql/patches mkdir -p tcl-Mysql/patches > /dev/null 2>&1 echo x - tcl-Mysql/patches/patch-aa sed 's/^X//' >tcl-Mysql/patches/patch-aa << 'END-of-tcl-Mysql/patches/patch-aa' X--- sql.cc.orig Fri Aug 13 15:28:56 1999 X+++ sql.cc Tue Aug 24 21:34:01 1999 X@@ -281,4 +281,4 @@ X X- // Provide a package called Sample X- if (Tcl_PkgProvide(interp, "Sql", "1.0") == TCL_ERROR) X+ // Provide a package called ``sql'' X+ if (Tcl_PkgProvide(interp, "sql", "1.0") == TCL_ERROR) X return TCL_ERROR; END-of-tcl-Mysql/patches/patch-aa exit >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?199908250146.VAA82310>