From owner-svn-ports-all@FreeBSD.ORG Tue Oct 29 02:07:36 2013 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 0A57DA40; Tue, 29 Oct 2013 02:07:36 +0000 (UTC) (envelope-from danilo@FreeBSD.org) 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)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id DB5182FA1; Tue, 29 Oct 2013 02:07:35 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r9T27ZeK039635; Tue, 29 Oct 2013 02:07:35 GMT (envelope-from danilo@svn.freebsd.org) Received: (from danilo@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r9T27YJQ039629; Tue, 29 Oct 2013 02:07:34 GMT (envelope-from danilo@svn.freebsd.org) Message-Id: <201310290207.r9T27YJQ039629@svn.freebsd.org> From: Danilo Egea Gondolfo Date: Tue, 29 Oct 2013 02:07:34 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r331922 - in head/databases: . luadbi luadbi/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-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Oct 2013 02:07:36 -0000 Author: danilo Date: Tue Oct 29 02:07:34 2013 New Revision: 331922 URL: http://svnweb.freebsd.org/changeset/ports/331922 Log: - Add new port databases/luadbi LuaDBI is a database interface library for Lua. It is designed to provide a RDBMS agnostic API for handling database operations. WWW: http://code.google.com/p/luadbi/ PR: ports/183079 Submitted by: Olexander Melnyk Added: head/databases/luadbi/ head/databases/luadbi/Makefile (contents, props changed) head/databases/luadbi/distinfo (contents, props changed) head/databases/luadbi/files/ head/databases/luadbi/files/patch-Makefile (contents, props changed) head/databases/luadbi/pkg-descr (contents, props changed) Modified: head/databases/Makefile Modified: head/databases/Makefile ============================================================================== --- head/databases/Makefile Tue Oct 29 02:03:55 2013 (r331921) +++ head/databases/Makefile Tue Oct 29 02:07:34 2013 (r331922) @@ -185,6 +185,7 @@ SUBDIR += liquibase SUBDIR += lmdb SUBDIR += lsdb + SUBDIR += luadbi SUBDIR += luasql-mysql SUBDIR += luasql-postgres SUBDIR += luasql-sqlite3 Added: head/databases/luadbi/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/databases/luadbi/Makefile Tue Oct 29 02:07:34 2013 (r331922) @@ -0,0 +1,67 @@ +# Created by: Olexander Melnyk +# $FreeBSD$ + +PORTNAME= luadbi +PORTVERSION= 0.5 +CATEGORIES= databases +MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE} +DISTNAME= ${PORTNAME}.${PORTVERSION} + +MAINTAINER= olexander.v.melnyk@gmail.com +COMMENT= LuaDBI driver + +LICENSE= MIT + +NO_WRKSUBDIR= yes + +USE_LUA= 5.1 +USES= gmake + +CFLAGS+= -fpic -I${LOCALBASE}/include -I${LUA_INCDIR} -I. \ + -I${LOCALBASE}/include/postgresql/server +LDFLAGS+= -shared -L${LOCALBASE}/lib -L${LUA_LIBDIR} +MAKE_ENV+= COMMON_LDFLAGS="${LDFLAGS}" + +OPTIONS_MULTI= DATABASE +OPTIONS_MULTI_DATABASE= MYSQL SQLITE3 PGSQL +OPTIONS_DEFAULT= MYSQL + +PLIST_FILES= %%LUA_MODSHAREDIR%%/DBI.lua + +.include + +.if ${PORT_OPTIONS:MMYSQL} +USE_MYSQL= yes +LDFLAGS+= -L ${LOCALBASE}/lib/mysql +CFLAGS+= -I ${LOCALBASE}/include/mysql +ALL_TARGET+= mysql +PLIST_FILES+= %%LUA_MODLIBDIR%%/dbdmysql.so +.endif + +.if ${PORT_OPTIONS:MSQLITE3} +USE_SQLITE= 3 +ALL_TARGET+= sqlite3 +PLIST_FILES+= %%LUA_MODLIBDIR%%/dbdsqlite3.so +.endif + +.if ${PORT_OPTIONS:MPGSQL} +USE_PGSQL= yes +ALL_TARGET+= psql +PLIST_FILES+= %%LUA_MODLIBDIR%%/dbdpostgresql.so +.endif + +do-install: + @${MKDIR} ${STAGEDIR}${LUA_MODLIBDIR} + @${MKDIR} ${STAGEDIR}${LUA_MODSHAREDIR} + ${CP} ${WRKSRC}/DBI.lua ${STAGEDIR}${LUA_MODSHAREDIR} +.if ${PORT_OPTIONS:MMYSQL} + ${INSTALL_PROGRAM} ${WRKSRC}/dbdmysql.so ${STAGEDIR}${LUA_MODLIBDIR} +.endif +.if ${PORT_OPTIONS:MSQLITE3} + ${INSTALL_PROGRAM} ${WRKSRC}/dbdsqlite3.so ${STAGEDIR}${LUA_MODLIBDIR} +.endif +.if ${PORT_OPTIONS:MPGSQL} + ${INSTALL_PROGRAM} ${WRKSRC}/dbdpostgresql.so ${STAGEDIR}${LUA_MODLIBDIR} +.endif + +.include Added: head/databases/luadbi/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/databases/luadbi/distinfo Tue Oct 29 02:07:34 2013 (r331922) @@ -0,0 +1,2 @@ +SHA256 (luadbi.0.5.tar.gz) = 49116458dd80052536bf5d7e2b2a1f5a0fa42a671ce77f1cb7355ef7faeb331e +SIZE (luadbi.0.5.tar.gz) = 22454 Added: head/databases/luadbi/files/patch-Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/databases/luadbi/files/patch-Makefile Tue Oct 29 02:07:34 2013 (r331922) @@ -0,0 +1,14 @@ +--- Makefile.orig 2010-07-16 09:22:13.000000000 +0300 ++++ Makefile 2013-10-17 18:24:00.000000000 +0300 +@@ -1,11 +1,8 @@ +-CC=gcc +-CFLAGS=-g -pedantic -Wall -O2 -shared -fpic -I /usr/include/lua5.1 -I /usr/include/mysql -I /usr/include/postgresql/ -I /opt/ibm/db2exc/V9.5/include/ -I /usr/lib/oracle/xe/app/oracle/product/10.2.0/client/rdbms/public/ -I . + AR=ar rcu + RANLIB=ranlib + RM=rm -rf + MKDIR=mkdir -p + +-COMMON_LDFLAGS= + MYSQL_LDFLAGS=$(COMMON_LDFLAGS) -lmysqlclient + PSQL_LDFLAGS=$(COMMON_LDFLAGS) -lpq + SQLITE3_LDFLAGS=$(COMMON_LDFLAGS) -lsqlite3 Added: head/databases/luadbi/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/databases/luadbi/pkg-descr Tue Oct 29 02:07:34 2013 (r331922) @@ -0,0 +1,4 @@ +LuaDBI is a database interface library for Lua. +It is designed to provide a RDBMS agnostic API for handling database operations. + +WWW: http://code.google.com/p/luadbi/