From kay_lehmann@web.de  Mon May 12 12:51:14 2003
Return-Path: <kay_lehmann@web.de>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id C1CF437B405
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 12 May 2003 12:51:14 -0700 (PDT)
Received: from mail-in-02.arcor-online.net (mail-in-02.arcor-online.net [151.189.21.42])
	by mx1.FreeBSD.org (Postfix) with ESMTP id B933A43FBF
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 12 May 2003 12:51:13 -0700 (PDT)
	(envelope-from kay_lehmann@web.de)
Received: from bippes.wg-berlin.de (dsl-213-023-135-212.arcor-ip.net [213.23.135.212])
	by mail-in-02.arcor-online.net (Postfix) with ESMTP id 99BC5111BB
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 12 May 2003 21:52:00 +0200 (CEST)
Received: from bippes.wg-berlin.de (localhost.wg-berlin.de [127.0.0.1])
	by bippes.wg-berlin.de (8.12.8/8.12.8) with ESMTP id h4CJrYU2026360
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 12 May 2003 21:53:34 +0200 (CEST)
	(envelope-from kay@bippes.wg-berlin.de)
Received: (from kay@localhost)
	by bippes.wg-berlin.de (8.12.8/8.12.8/Submit) id h4CJrWGt026359;
	Mon, 12 May 2003 21:53:32 +0200 (CEST)
	(envelope-from kay)
Message-Id: <200305121953.h4CJrWGt026359@bippes.wg-berlin.de>
Date: Mon, 12 May 2003 21:53:32 +0200 (CEST)
From: Kay Lehmann <kay_lehmann@web.de>
Reply-To: Kay Lehmann <kay_lehmann@web.de>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: New port: databases/qt-mysql-plugin mysql-plugin for qt3 (needed by prokyon3)
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         52131
>Category:       ports
>Synopsis:       New port: databases/qt-mysql-plugin mysql-plugin for qt3 (needed by prokyon3)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    arved
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon May 12 13:00:25 PDT 2003
>Closed-Date:    Wed Aug 06 05:01:29 PDT 2003
>Last-Modified:  Wed Aug 06 05:01:29 PDT 2003
>Originator:     Kay Lehmann
>Release:        FreeBSD 4.8-RC i386
>Organization:
>Environment:
System: FreeBSD bippes.wg-berlin.de 4.8-RC FreeBSD 4.8-RC #24: Sat Mar 22 10:31:09 CET 2003 kay@bippes.wg-berlin.de:/usr/obj/usr/src/sys/bippes i386
>Description:
qt-mysql-plugin is a small port to get the sql-connection within qt3-apps. I needed it to get 
the port of prokyon3 working.
>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:
#
#       qt-mysql-plugin
#       qt-mysql-plugin/Makefile
#       qt-mysql-plugin/distinfo
#       qt-mysql-plugin/files
#       qt-mysql-plugin/files/patch-ab
#       qt-mysql-plugin/files/patch-aa
#       qt-mysql-plugin/pkg-plist
#       qt-mysql-plugin/pkg-descr
#
echo c - qt-mysql-plugin
mkdir -p qt-mysql-plugin > /dev/null 2>&1
echo x - qt-mysql-plugin/Makefile
sed 's/^X//' >qt-mysql-plugin/Makefile << 'END-of-qt-mysql-plugin/Makefile'
X# -*-mode: makefile-*-
X# New ports collection makefile for:   qt-mysql-plugin
X# Date created:                                20 April 2003
X# Whom:                                        Kay Lehmann <kay_lehmann@web.de>
X#
X# $FreeBSD$
X#
X
XPORTNAME=      qt-mysql-plugin
XPORTVERSION=   3.1.1
XCATEGORIES?=   databases x11-toolkits
XMASTER_SITES=  ftp://ftp.trolltech.com/qt/source/      \
X               ftp://ftp.silug.org/pub/qt/             \
X               ftp://ftp.bero.org/pub/qt/              \
X               ftp://ftp.planetmirror.com.au/pub/trolltech/qt/
X
XMAINTAINER?=   kay_lehmann@web.de
XCOMMENT=       A plugin for QT to connect to MySQL-Databases
X
XLIB_DEPENDS=   mysqlclient.10:${PORTSDIR}/databases/mysql323-client\
X               qt-mt.3:${PORTSDIR}/x11-toolkits/qt31
X
XDISTNAME=      qt-x11-free-${PORTVERSION}
XDIST_SUBDIR=   KDE
X
XUSE_BZIP2=     yes
XUSE_GMAKE=     yes
XUSE_REINPLACE= yes
XUSE_X_PREFIX=  yes
XHAS_CONFIGURE= yes
XINSTALLS_SHLIB=        yes
XLDCONFIG_DIRS= %%PREFIX%%/lib/plugins/sqldrivers
XCONFIGURE_ARGS=        -prefix ${PREFIX} -plugindir ${PREFIX}/lib/plugins \
X               -plugin-sql-mysql -no-stl
X
X.if defined(DEBUG)
XCONFIGURE_ARGS+= -debug
X.endif
X
XCONFIGURE_ENV= ${ECHO} yes | QTDIR=${WRKSRC} PATH=${WRKSRC}/bin:$$PATH
X
X.include <bsd.port.pre.mk>
X
X.if ${MACHINE_ARCH} == "alpha"
XCFLAGS+=       -O0
X.endif
X
Xpost-patch:
X       @${REINPLACE_CMD} -e 's,-O2,${CXXFLAGS},' \
X               ${WRKSRC}/mkspecs/freebsd-g++/qmake.conf
X       @${REINPLACE_CMD} -e 's,gcc,${CC},' \
X               ${WRKSRC}/mkspecs/freebsd-g++/qmake.conf
X       @${REINPLACE_CMD} -e 's,g++,${CXX},' \
X               ${WRKSRC}/mkspecs/freebsd-g++/qmake.conf
X       @${REINPLACE_CMD} -e  's,/usr/local,${LOCALBASE},' \
X               ${WRKSRC}/mkspecs/freebsd-g++/qmake.conf
X       @${REINPLACE_CMD} -e  's,/usr/X11R6,${X11BASE},' \
X               ${WRKSRC}/mkspecs/freebsd-g++/qmake.conf
X       @${REINPLACE_CMD} -e 's,release,release thread,' \
X               ${WRKSRC}/mkspecs/freebsd-g++/qmake.conf
X       @${RM} ${WRKSRC}/mkspecs/freebsd-g++/qmake.conf.bak
X
Xdo-build:
X       cd ${WRKSRC}/plugins/src/sqldrivers/mysql; ${GMAKE}
X
Xdo-install:
X       @mkdir -p ${PREFIX}/lib/plugins/sqldrivers
X       ${INSTALL} ${WRKSRC}/plugins/sqldrivers/libqsqlmysql.so ${PREFIX}/lib/plugins/sqldrivers/
X
X.include <bsd.port.post.mk>
END-of-qt-mysql-plugin/Makefile
echo x - qt-mysql-plugin/distinfo
sed 's/^X//' >qt-mysql-plugin/distinfo << 'END-of-qt-mysql-plugin/distinfo'
XMD5 (KDE/qt-x11-free-3.1.1.tar.bz2) = 977b9f59eed14f33343a797544b5418a
END-of-qt-mysql-plugin/distinfo
echo c - qt-mysql-plugin/files
mkdir -p qt-mysql-plugin/files > /dev/null 2>&1
echo x - qt-mysql-plugin/files/patch-ab
sed 's/^X//' >qt-mysql-plugin/files/patch-ab << 'END-of-qt-mysql-plugin/files/patch-ab'
X--- plugins/src/sqldrivers/mysql/mysql.pro.orig        Fri Nov  8 10:35:18 2002
X+++ plugins/src/sqldrivers/mysql/mysql.pro     Sat Mar  8 11:00:49 2003
X@@ -8,7 +8,7 @@
X       OBJECTS_DIR = .obj
X
X       !contains( LIBS, .*mysql.* ) {
X-          LIBS    *= -lmysqlclient
X+          LIBS    *= -L/usr/local/lib/mysql -lmysqlclient
X       }
X }
X win32 {
END-of-qt-mysql-plugin/files/patch-ab
echo x - qt-mysql-plugin/files/patch-aa
sed 's/^X//' >qt-mysql-plugin/files/patch-aa << 'END-of-qt-mysql-plugin/files/patch-aa'
X--- src/sql/drivers/mysql/qsql_mysql.h.orig    Wed Jan 22 10:43:49 2003
X+++ src/sql/drivers/mysql/qsql_mysql.h Wed Jan 22 10:44:03 2003
X@@ -46,7 +46,7 @@
X #include <qt_windows.h>
X #endif
X
X-#include <mysql.h>
X+#include <mysql/mysql.h>
X
X #ifdef QT_PLUGIN
X #define Q_EXPORT_SQLDRIVER_MYSQL
END-of-qt-mysql-plugin/files/patch-aa
echo x - qt-mysql-plugin/pkg-plist
sed 's/^X//' >qt-mysql-plugin/pkg-plist << 'END-of-qt-mysql-plugin/pkg-plist'
Xlib/plugins/sqldrivers/libqsqlmysql.so
X@dirrm lib/plugins/sqldrivers
X@dirrm lib/plugins
END-of-qt-mysql-plugin/pkg-plist
echo x - qt-mysql-plugin/pkg-descr
sed 's/^X//' >qt-mysql-plugin/pkg-descr << 'END-of-qt-mysql-plugin/pkg-descr'
XThis is a port to install Mysql-plugin from qt3, which provides an easy access
Xmethod from within qt3-apps (like prokyon3).
END-of-qt-mysql-plugin/pkg-descr
exit


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: arved 
State-Changed-When: Wed May 14 08:15:57 PDT 2003 
State-Changed-Why:  
Sorry for not reviewing your port, when you posted it to the Mailinglist. 

Several issues: 
-use portlint 
-use tabs 
-USE_QT_VER=	3 

patch-ab failed to apply. (Did you Cut&paste it? Don't do that, it messes up tabs). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=52131 
Responsible-Changed-From-To: freebsd-ports-bugs->arved 
Responsible-Changed-By: arved 
Responsible-Changed-When: Wed Aug 6 04:20:51 PDT 2003 
Responsible-Changed-Why:  
I will handle this. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=52131 
State-Changed-From-To: feedback->closed 
State-Changed-By: arved 
State-Changed-When: Wed Aug 6 05:01:13 PDT 2003 
State-Changed-Why:  
Committed, thanks. 

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