2008-01-08 18:50:49 +00:00
|
|
|
package = "LuaSQL-Postgres"
|
|
|
|
version = "cvs-2"
|
|
|
|
source = {
|
2009-09-24 14:28:03 -03:00
|
|
|
url = "git://github.com/keplerproject/luasql.git"
|
2008-01-08 18:50:49 +00:00
|
|
|
}
|
|
|
|
description = {
|
|
|
|
summary = "Database connectivity for Lua (Postgres driver)",
|
|
|
|
detailed = [[
|
|
|
|
LuaSQL is a simple interface from Lua to a DBMS. It enables a
|
|
|
|
Lua program to connect to databases, execute arbitrary SQL statements
|
|
|
|
and retrieve results in a row-by-row cursor fashion.
|
|
|
|
]],
|
|
|
|
license = "MIT/X11",
|
|
|
|
homepage = "http://www.keplerproject.org/luasql/"
|
|
|
|
}
|
|
|
|
dependencies = {
|
|
|
|
"lua >= 5.1"
|
|
|
|
}
|
|
|
|
external_dependencies = {
|
|
|
|
POSTGRES = {
|
|
|
|
header = "pg_config.h"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
build = {
|
|
|
|
type = "make",
|
|
|
|
variables = {
|
|
|
|
T="postgres",
|
|
|
|
LIB_OPTION = "$(LIBFLAG) -L$(POSTGRES_LIBDIR) -lpq",
|
|
|
|
CFLAGS = "$(CFLAGS) -I$(LUA_INCDIR) -I$(POSTGRES_INCDIR) -I$(POSTGRES_INCDIR)/postgresql"
|
|
|
|
},
|
|
|
|
build_variables = {
|
|
|
|
DRIVER_LIBS="",
|
|
|
|
},
|
|
|
|
install_variables = {
|
|
|
|
LUA_LIBDIR = "$(LIBDIR)",
|
|
|
|
}
|
|
|
|
}
|