From owner-svn-ports-head@freebsd.org Fri May 13 19:55:28 2016 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BDAF2B3AA1D; Fri, 13 May 2016 19:55:28 +0000 (UTC) (envelope-from marino@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::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 7E4251CF8; Fri, 13 May 2016 19:55:28 +0000 (UTC) (envelope-from marino@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u4DJtRG3079682; Fri, 13 May 2016 19:55:27 GMT (envelope-from marino@FreeBSD.org) Received: (from marino@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u4DJtRqf079679; Fri, 13 May 2016 19:55:27 GMT (envelope-from marino@FreeBSD.org) Message-Id: <201605131955.u4DJtRqf079679@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: marino set sender to marino@FreeBSD.org using -f From: John Marino Date: Fri, 13 May 2016 19:55:27 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r415146 - in head/databases/adabase: . 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.22 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: Fri, 13 May 2016 19:55:28 -0000 Author: marino Date: Fri May 13 19:55:27 2016 New Revision: 415146 URL: https://svnweb.freebsd.org/changeset/ports/415146 Log: database/adabase: Upgrade version 1.0 => 2.0 (SQLite Driver) This new release provides some minor fixes for MySQL driver and brings in the SQLite3 driver. The now has options where MySQL and SQLite drivers are built by default, but either (but not both) can be disabled. The adabase.gpr was changed to a template and moved into the codebase. Also, since the adabase library can't be linked without the database libraries, they've been added as library dependencies through the options framework. Deleted: head/databases/adabase/files/ Modified: head/databases/adabase/Makefile head/databases/adabase/distinfo head/databases/adabase/pkg-plist Modified: head/databases/adabase/Makefile ============================================================================== --- head/databases/adabase/Makefile Fri May 13 19:44:21 2016 (r415145) +++ head/databases/adabase/Makefile Fri May 13 19:55:27 2016 (r415146) @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= adabase -PORTVERSION= 1.0 +PORTVERSION= 2.0 DISTVERSIONPREFIX= v CATEGORIES= databases @@ -19,6 +19,21 @@ USE_GITHUB= yes GH_ACCOUNT= jrmarino GH_PROJECT= AdaBase +OPTIONS_MULTI= DBASE +OPTIONS_MULTI_DBASE= MYSQL SQLITE +OPTIONS_DEFAULT= MYSQL SQLITE +OPTIONS_SUB= yes + +SQLITE_MAKE_ENV= SQLITE=yes +SQLITE_USES= sqlite:3 +SQLITE_VARS= DRVSQLITE=yes +SQLITE_VARS_OFF= DRVSQLITE=no + +MYSQL_MAKE_ENV= MYSQL=yes +MYSQL_USES= mysql +MYSQL_VARS= DRVMYSQL=yes +MYSQL_VARS_OFF= DRVMYSQL=no + MAKE_ENV+= OS_VERSION=unix post-extract: @@ -35,6 +50,9 @@ do-install: ${INSTALL_DATA} ${WRKSRC}/lib/* ${STAGEDIR}${PREFIX}/lib/adabase ${INSTALL_DATA} ${WRKSRC}/src/*/*.ad[bs] ${WRKSRC}/src/adabase.ads \ ${STAGEDIR}${PREFIX}/include/adabase - ${INSTALL_DATA} ${FILESDIR}/adabase.gpr ${STAGEDIR}${PREFIX}/lib/gnat + ${SED} -e "s|@PREFIX@|${PREFIX}|" \ + -e "s|@MYSQL@|${DRVMYSQL}|" \ + -e "s|@SQLITE@|${DRVSQLITE}|" ${WRKSRC}/adabase.gpr.in > \ + ${STAGEDIR}${PREFIX}/lib/gnat/adabase.gpr .include Modified: head/databases/adabase/distinfo ============================================================================== --- head/databases/adabase/distinfo Fri May 13 19:44:21 2016 (r415145) +++ head/databases/adabase/distinfo Fri May 13 19:55:27 2016 (r415146) @@ -1,2 +1,2 @@ -SHA256 (jrmarino-AdaBase-v1.0_GH0.tar.gz) = fb9bec4376a5df61670c543f8c49c5e1e335032ae46658f966f2b0277c89d338 -SIZE (jrmarino-AdaBase-v1.0_GH0.tar.gz) = 75278 +SHA256 (jrmarino-AdaBase-v2.0_GH0.tar.gz) = 15ee05548ad63bccdfec5b99b556f62a67ac4c99f3fdf41e8bc4d4c166386c3c +SIZE (jrmarino-AdaBase-v2.0_GH0.tar.gz) = 94254 Modified: head/databases/adabase/pkg-plist ============================================================================== --- head/databases/adabase/pkg-plist Fri May 13 19:44:21 2016 (r415145) +++ head/databases/adabase/pkg-plist Fri May 13 19:55:27 2016 (r415146) @@ -1,12 +1,17 @@ -include/adabase/adabase-bindings-mysql.ads +%%MYSQL%%include/adabase/adabase-bindings-mysql.ads +%%SQLITE%%include/adabase/adabase-bindings-sqlite.ads include/adabase/adabase-bindings.ads -include/adabase/adabase-connection-base-mysql.adb -include/adabase/adabase-connection-base-mysql.ads +%%MYSQL%%include/adabase/adabase-connection-base-mysql.adb +%%MYSQL%%include/adabase/adabase-connection-base-mysql.ads +%%SQLITE%%include/adabase/adabase-connection-base-sqlite.adb +%%SQLITE%%include/adabase/adabase-connection-base-sqlite.ads include/adabase/adabase-connection-base.adb include/adabase/adabase-connection-base.ads include/adabase/adabase-connection.ads -include/adabase/adabase-driver-base-mysql.adb -include/adabase/adabase-driver-base-mysql.ads +%%MYSQL%%include/adabase/adabase-driver-base-mysql.adb +%%MYSQL%%include/adabase/adabase-driver-base-mysql.ads +%%SQLITE%%include/adabase/adabase-driver-base-sqlite.adb +%%SQLITE%%include/adabase/adabase-driver-base-sqlite.ads include/adabase/adabase-driver-base.adb include/adabase/adabase-driver-base.ads include/adabase/adabase-driver.ads @@ -33,20 +38,25 @@ include/adabase/adabase-results-generic_ include/adabase/adabase-results-sets.adb include/adabase/adabase-results-sets.ads include/adabase/adabase-results.ads -include/adabase/adabase-statement-base-mysql.adb -include/adabase/adabase-statement-base-mysql.ads +%%MYSQL%%include/adabase/adabase-statement-base-mysql.adb +%%MYSQL%%include/adabase/adabase-statement-base-mysql.ads +%%SQLITE%%include/adabase/adabase-statement-base-sqlite.adb +%%SQLITE%%include/adabase/adabase-statement-base-sqlite.ads include/adabase/adabase-statement-base.adb include/adabase/adabase-statement-base.ads include/adabase/adabase-statement.ads include/adabase/adabase.ads include/adabase/commontext.adb include/adabase/commontext.ads -lib/adabase/adabase-bindings-mysql.ali +%%MYSQL%%lib/adabase/adabase-bindings-mysql.ali +%%SQLITE%%lib/adabase/adabase-bindings-sqlite.ali lib/adabase/adabase-bindings.ali -lib/adabase/adabase-connection-base-mysql.ali +%%MYSQL%%lib/adabase/adabase-connection-base-mysql.ali +%%SQLITE%%lib/adabase/adabase-connection-base-sqlite.ali lib/adabase/adabase-connection-base.ali lib/adabase/adabase-connection.ali -lib/adabase/adabase-driver-base-mysql.ali +%%MYSQL%%lib/adabase/adabase-driver-base-mysql.ali +%%SQLITE%%lib/adabase/adabase-driver-base-sqlite.ali lib/adabase/adabase-driver-base.ali lib/adabase/adabase-driver.ali lib/adabase/adabase-interfaces-connection.ali @@ -64,7 +74,8 @@ lib/adabase/adabase-results-field.ali lib/adabase/adabase-results-generic_converters.ali lib/adabase/adabase-results-sets.ali lib/adabase/adabase-results.ali -lib/adabase/adabase-statement-base-mysql.ali +%%MYSQL%%lib/adabase/adabase-statement-base-mysql.ali +%%SQLITE%%lib/adabase/adabase-statement-base-sqlite.ali lib/adabase/adabase-statement-base.ali lib/adabase/adabase-statement.ali lib/adabase/adabase.ali