Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Oct 2013 11:00:41 GMT
From:      Olexander Melnyk <olexander.v.melnyk@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/183079: new port databases/luaDBI
Message-ID:  <201310181100.r9IB0fPU092666@oldred.freebsd.org>
Resent-Message-ID: <201310181110.r9IBA2bc004817@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         183079
>Category:       ports
>Synopsis:       new port databases/luaDBI
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Oct 18 11:10:02 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Olexander Melnyk
>Release:        
>Organization:
>Environment:
>Description:
Lua DBI is a database interface library for Lua.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

# 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:
#
#	luaDBI
#	luaDBI/pkg-descr
#	luaDBI/Makefile
#	luaDBI/distinfo
#	luaDBI/files
#	luaDBI/files/patch-Makefile
#
echo c - luaDBI
mkdir -p luaDBI > /dev/null 2>&1
echo x - luaDBI/pkg-descr
sed 's/^X//' >luaDBI/pkg-descr << '622e0ba79473b0ea1e10224066e4e846'
XLuaDBI is a database interface library for Lua.
XIt is designed to provide a RDBMS agnostic API for handling database operations.
X
XWWW: http://code.google.com/p/luadbi/
622e0ba79473b0ea1e10224066e4e846
echo x - luaDBI/Makefile
sed 's/^X//' >luaDBI/Makefile << '4785abe1a1305752377dc3ceda64c159'
X# Created by: Olexander Melnyk <olexander.v.melnyk@gmail.com>
X# $FreeBSD$
X
XPORTNAME=	luaDBI
XPORTVERSION=	0.5
XCATEGORIES=	databases
XMASTER_SITES=	http://luadbi.googlecode.com/files/
XDISTNAME=	luadbi.${PORTVERSION}
X
XMAINTAINER=	olexander.v.melnyk@gmail.com
XCOMMENT=	LuaDBI driver
X
XLICENSE=	MIT
X
XNO_WRKSUBDIR=	yes
X
XUSE_LUA=	5.1
XUSE_GMAKE=	yes
X
XCFLAGS+=	-g -pedantic -Wall -O2 -shared -fpic -I ${LOCALBASE}/include -I ${LUA_INCDIR}
XLDFLAGS+=	-shared -L ${LOCALBASE}/lib -L ${LUA_LIBDIR}
X
XOPTIONS_DEFINE= MYSQL SQLITE3 PGSQL
XOPTIONS_DEFAULT= MYSQL
X
XNO_STAGE=	yes
X
X.include <bsd.port.options.mk>
X
XPLIST_FILES=	${LUA_MODSHAREDIR}/DBI.lua
X
X.if ${PORT_OPTIONS:MMYSQL}
XUSE_MYSQL=	yes
XLDFLAGS+=	-L ${LOCALBASE}/lib/mysql
XCFLAGS+=	-I ${LOCALBASE}/include/mysql
XALL_TARGET+=	mysql
XPLIST_FILES+=	${LUA_MODLIBDIR}/dbdmysql.so
X.endif
X
X.if ${PORT_OPTIONS:MSQLITE3}
XUSE_SQLITE=	3
XALL_TARGET+=	sqlite3
XPLIST_FILES+=	${LUA_MODLIBDIR}/dbdsqlite3.so
X.endif
X
X.if ${PORT_OPTIONS:MPGSQL}
XUSE_PGSQL=	yes
XALL_TARGET+=	pgsql
XPLIST_FILES+=	${LUA_MODLIBDIR}/dbdpostgresql.so
X.endif
X
X.if !${PORT_OPTIONS:MPGSQL} && !${PORT_OPTIONS:MMYSQL} && !${PORT_OPTIONS:MSQLITE3}
XIGNORE= you must select at least one option from MYSQL, SQLITE3 or PGSQL
X.endif
X
XCFLAGS+=	-I .
X
XMAKE_ENV+=	COMMON_LDFLAGS="${LDFLAGS}"
X
Xdo-install:
X	@${CP} ${WRKSRC}/DBI.lua ${LUA_MODSHAREDIR}
X.if ${PORT_OPTIONS:MMYSQL}
X	@${INSTALL_PROGRAM} ${WRKSRC}/dbdmysql.so ${LUA_MODLIBDIR}
X.endif
X.if ${PORT_OPTIONS:MSQLITE3}
X	@${INSTALL_PROGRAM} ${WRKSRC}/dbdsqlite3.so ${LUA_MODLIBDIR}
X.endif
X.if ${PORT_OPTIONS:MPGSQL}
X	@${INSTALL_PROGRAM} ${WRKSRC}/dbdpostgresql.so ${LUA_MODLIBDIR}
X.endif
X
X.include <bsd.port.mk>
4785abe1a1305752377dc3ceda64c159
echo x - luaDBI/distinfo
sed 's/^X//' >luaDBI/distinfo << '38c5613891d649ffa93a8b74d210d986'
XSHA256 (luadbi.0.5.tar.gz) = 49116458dd80052536bf5d7e2b2a1f5a0fa42a671ce77f1cb7355ef7faeb331e
XSIZE (luadbi.0.5.tar.gz) = 22454
38c5613891d649ffa93a8b74d210d986
echo c - luaDBI/files
mkdir -p luaDBI/files > /dev/null 2>&1
echo x - luaDBI/files/patch-Makefile
sed 's/^X//' >luaDBI/files/patch-Makefile << '2b96a9791a9212e7b230f8d5f6fb0e56'
X--- Makefile.orig	2010-07-16 09:22:13.000000000 +0300
X+++ Makefile	2013-10-17 18:24:00.000000000 +0300
X@@ -1,11 +1,8 @@
X-CC=gcc
X-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 .
X AR=ar rcu
X RANLIB=ranlib
X RM=rm -rf
X MKDIR=mkdir -p
X 
X-COMMON_LDFLAGS=
X MYSQL_LDFLAGS=$(COMMON_LDFLAGS) -lmysqlclient
X PSQL_LDFLAGS=$(COMMON_LDFLAGS) -lpq 
X SQLITE3_LDFLAGS=$(COMMON_LDFLAGS) -lsqlite3 
2b96a9791a9212e7b230f8d5f6fb0e56
exit



>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201310181100.r9IB0fPU092666>