From owner-svn-ports-head@FreeBSD.ORG Sat Feb 21 15:13:17 2015 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 55128B7; Sat, 21 Feb 2015 15:13:17 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 35D6FFAE; Sat, 21 Feb 2015 15:13:17 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t1LFDHYF004808; Sat, 21 Feb 2015 15:13:17 GMT (envelope-from pawel@FreeBSD.org) Received: (from pawel@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t1LFDGXA004800; Sat, 21 Feb 2015 15:13:16 GMT (envelope-from pawel@FreeBSD.org) Message-Id: <201502211513.t1LFDGXA004800@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: pawel set sender to pawel@FreeBSD.org using -f From: Pawel Pekala Date: Sat, 21 Feb 2015 15:13:16 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r379523 - in head/databases/mysql-connector-odbc: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Feb 2015 15:13:17 -0000 Author: pawel Date: Sat Feb 21 15:13:15 2015 New Revision: 379523 URL: https://svnweb.freebsd.org/changeset/ports/379523 QAT: https://qat.redports.org/buildarchive/r379523/ Log: - Update to version 5.3.4 [1] - Mark ignored for versions 51 and 55 of mysql [1] - Move things to proper places in Makefile - Remove PLIST_SUB, no subs needed - Define DOCS option, port uses PORTDOCS - Switch to PLIST_FILES, port installs only 3 files - Remove Author tag from pkg-descr file PR: 197348 [1] Submitted by: timp87@gmail.com [1] Approved by: maintainer timeout Deleted: head/databases/mysql-connector-odbc/pkg-plist Modified: head/databases/mysql-connector-odbc/Makefile head/databases/mysql-connector-odbc/distinfo head/databases/mysql-connector-odbc/files/patch-driver__execute.c head/databases/mysql-connector-odbc/pkg-descr Modified: head/databases/mysql-connector-odbc/Makefile ============================================================================== --- head/databases/mysql-connector-odbc/Makefile Sat Feb 21 15:11:52 2015 (r379522) +++ head/databases/mysql-connector-odbc/Makefile Sat Feb 21 15:13:15 2015 (r379523) @@ -2,28 +2,37 @@ # $FreeBSD$ PORTNAME= mysql-connector-odbc -PORTVERSION= 5.1.9 +PORTVERSION= 5.3.4 CATEGORIES= databases MASTER_SITES= ${MASTER_SITE_MYSQL} -MASTER_SITE_SUBDIR= Connector-ODBC/5.1 +MASTER_SITE_SUBDIR= Connector-ODBC/5.3 PKGNAMESUFFIX= -${DRIVER_MANAGER}-mysql${MYSQL_VER} +DISTNAME= ${PORTNAME}-${PORTVERSION}-src MAINTAINER= sergey@network-asp.biz COMMENT= ODBC driver for MySQL${MYSQL_VER} / ${DRIVER_MANAGER} +BUILD_DEPENDS= unixODBC>=2.2.14_1:${PORTSDIR}/databases/unixODBC +LIB_DEPENDS= libodbc.so:${PORTSDIR}/databases/unixODBC + USE_LDCONFIG= yes USE_MYSQL= yes -DEFAULT_MYSQL_VER= 51 USES= cmake -PLIST_SUB= VER=${PORTVERSION} +IGNORE_WITH_MYSQL= 55 51 + +CMAKE_ARGS= -DWITH_UNIXODBC=1 +LDFLAGS+= -L${LOCALBASE}/lib + +DRIVER_MANAGER= unixodbc PORTDOCS= ChangeLog INSTALL \ README README.debug COPYING Licenses_for_Third-Party_Components.txt -LIB_DEPENDS+= libodbc.so:${PORTSDIR}/databases/unixODBC -BUILD_DEPENDS= unixODBC>=2.2.14_1:${PORTSDIR}/databases/unixODBC -CMAKE_ARGS += -DWITH_UNIXODBC=1 -DRIVER_MANAGER= unixodbc +PLIST_FILES= bin/myodbc-installer \ + lib/libmyodbc5a.so \ + lib/libmyodbc5w.so + +OPTIONS_DEFINE= DOCS .include Modified: head/databases/mysql-connector-odbc/distinfo ============================================================================== --- head/databases/mysql-connector-odbc/distinfo Sat Feb 21 15:11:52 2015 (r379522) +++ head/databases/mysql-connector-odbc/distinfo Sat Feb 21 15:13:15 2015 (r379523) @@ -1,2 +1,2 @@ -SHA256 (mysql-connector-odbc-5.1.9.tar.gz) = d14a0d5ca0f0bc4fc4bbd8609c4e7fde56c70d8b3ae56eb2c3687ce794990ee9 -SIZE (mysql-connector-odbc-5.1.9.tar.gz) = 542281 +SHA256 (mysql-connector-odbc-5.3.4-src.tar.gz) = a5f7a490f2958f2768d18b8a57f71909f9699a8619c82776b3ad1c02b8abce0d +SIZE (mysql-connector-odbc-5.3.4-src.tar.gz) = 667340 Modified: head/databases/mysql-connector-odbc/files/patch-driver__execute.c ============================================================================== --- head/databases/mysql-connector-odbc/files/patch-driver__execute.c Sat Feb 21 15:11:52 2015 (r379522) +++ head/databases/mysql-connector-odbc/files/patch-driver__execute.c Sat Feb 21 15:13:15 2015 (r379523) @@ -1,22 +1,22 @@ ---- driver/execute.c.orig 2011-10-04 23:19:00.000000000 +0300 -+++ driver/execute.c 2011-10-15 12:07:45.000000000 +0300 -@@ -424,11 +424,19 @@ - data= buff; - break; - case SQL_C_SBIGINT: +--- driver/execute.c.orig 2014-11-05 14:41:16.000000000 +0300 ++++ driver/execute.c 2014-11-05 14:44:10.000000000 +0300 +@@ -563,11 +563,19 @@ + *res= buff; + break; + case SQL_C_SBIGINT: +#ifdef MARIADB_BASE_VERSION -+ length= longlong2str(*((longlong*) data),buff, -10, 1) - buff; ++ *length= longlong2str(*((longlong*) *res), buff, -10, 1) - buff; +#else - length= longlong2str(*((longlong*) data),buff, -10) - buff; + *length= longlong2str(*((longlong*) *res), buff, -10) - buff; +#endif - data= buff; - break; - case SQL_C_UBIGINT: + *res= buff; + break; + case SQL_C_UBIGINT: +#ifdef MARIADB_BASE_VERSION -+ length= longlong2str(*((ulonglong*) data),buff, 10, 1) - buff; ++ *length= longlong2str(*((ulonglong*) *res), buff, 10, 1) - buff; +#else - length= longlong2str(*((ulonglong*) data),buff, 10) - buff; + *length= longlong2str(*((ulonglong*) *res), buff, 10) - buff; +#endif - data= buff; - break; - case SQL_C_FLOAT: + *res= buff; + break; + case SQL_C_FLOAT: Modified: head/databases/mysql-connector-odbc/pkg-descr ============================================================================== --- head/databases/mysql-connector-odbc/pkg-descr Sat Feb 21 15:11:52 2015 (r379522) +++ head/databases/mysql-connector-odbc/pkg-descr Sat Feb 21 15:13:15 2015 (r379523) @@ -1,4 +1,3 @@ MySQL Connector ODBC is an ODBC driver for interfacing to MySQL databases. -Author: Erik H. Bakke WWW: http://www.mysql.com/