Date: Tue, 29 Oct 2013 02:07:34 +0000 (UTC) From: Danilo Egea Gondolfo <danilo@FreeBSD.org> 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 Message-ID: <201310290207.r9T27YJQ039629@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 <olexander.v.melnyk@gmail.com> 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 <olexander.v.melnyk@gmail.com> +# $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 <bsd.port.options.mk> + +.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 <bsd.port.mk> 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/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201310290207.r9T27YJQ039629>