aboutsummaryrefslogtreecommitdiffstats
path: root/databases
diff options
context:
space:
mode:
authorpi <pi@FreeBSD.org>2017-03-15 02:21:49 +0800
committerpi <pi@FreeBSD.org>2017-03-15 02:21:49 +0800
commit7d691de7de75306dfa9be5e5c05195ecbd9c10e1 (patch)
tree90b1366a60daf3695bd125960935f23b3d88a58a /databases
parentd5883d29d01f605702318d8bdb90237cec18caaa (diff)
downloadfreebsd-ports-gnome-7d691de7de75306dfa9be5e5c05195ecbd9c10e1.tar.gz
freebsd-ports-gnome-7d691de7de75306dfa9be5e5c05195ecbd9c10e1.tar.zst
freebsd-ports-gnome-7d691de7de75306dfa9be5e5c05195ecbd9c10e1.zip
databases/luadbi: unbreak with new distsite
PR: 212884 Submitted by: Olexander Melnyk <olexander.v.melnyk@gmail.com> (maintainer) Reviewed by: Michael Pfeiffer <michael.pfeiffer@eichenstein.de>
Diffstat (limited to 'databases')
-rw-r--r--databases/luadbi/Makefile30
-rw-r--r--databases/luadbi/distinfo5
-rw-r--r--databases/luadbi/files/patch-Makefile9
3 files changed, 25 insertions, 19 deletions
diff --git a/databases/luadbi/Makefile b/databases/luadbi/Makefile
index 6d6f1eaa3f40..88453194523b 100644
--- a/databases/luadbi/Makefile
+++ b/databases/luadbi/Makefile
@@ -3,39 +3,42 @@
PORTNAME= luadbi
PORTVERSION= 0.5
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= databases
-MASTER_SITES= GOOGLE_CODE
-DISTNAME= ${PORTNAME}.${PORTVERSION}
+MASTER_SITES= http://ic.km.ua/~old/luadbi/
+PKGNAMEPREFIX= ${LUA_PKGNAMEPREFIX}
+DISTNAME= ${PORTNAME}-${PORTVERSION}.f562ccd
MAINTAINER= olexander.v.melnyk@gmail.com
COMMENT= LuaDBI driver
LICENSE= MIT
-BROKEN= Unfetchable (google code has gone away)
-DEPRECATED= Unfetchable for more than six months (google code has gone away)
-EXPIRATION_DATE= 2017-04-30
+WRKSRC= ${WRKDIR}/${PORTNAME}-master
-NO_WRKSUBDIR= yes
-
-USES= gmake lua:51 shebangfix
+USES= gmake shebangfix zip
SHEBANG_FILES= DBI.lua
-MAKE_JOBS_UNSAFE= yes
-
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}"
+MAKE_JOBS_UNSAFE=yes
+
+OPTIONS_SINGLE= LUA_VERSION
+OPTIONS_SINGLE_LUA_VERSION= LUA51 LUA52
OPTIONS_MULTI= DATABASE
OPTIONS_MULTI_DATABASE= MYSQL SQLITE3 PGSQL
-OPTIONS_DEFAULT= MYSQL
+OPTIONS_DEFAULT= MYSQL LUA52
PLIST_FILES= %%LUA_MODSHAREDIR%%/DBI.lua
-MYSQL_USE= MYSQL=yes
+LUA51_USES= lua:51
+
+LUA52_USES= lua:52
+
+MYSQL_USES= mysql
MYSQL_LDFLAGS= -L ${LOCALBASE}/lib/mysql
MYSQL_CFLAGS= -I ${LOCALBASE}/include/mysql
MYSQL_ALL_TARGET= mysql
@@ -48,6 +51,7 @@ SQLITE3_PLIST_FILES= %%LUA_MODLIBDIR%%/dbdsqlite3.so
PGSQL_USES= pgsql
PGSQL_ALL_TARGET= psql
PGSQL_PLIST_FILES= %%LUA_MODLIBDIR%%/dbdpostgresql.so
+PGSQL_BROKEN= Not tested
do-install:
@${MKDIR} ${STAGEDIR}${LUA_MODLIBDIR}
diff --git a/databases/luadbi/distinfo b/databases/luadbi/distinfo
index 19e0cc0e9cfe..5db1db05c5b8 100644
--- a/databases/luadbi/distinfo
+++ b/databases/luadbi/distinfo
@@ -1,2 +1,3 @@
-SHA256 (luadbi.0.5.tar.gz) = 49116458dd80052536bf5d7e2b2a1f5a0fa42a671ce77f1cb7355ef7faeb331e
-SIZE (luadbi.0.5.tar.gz) = 22454
+TIMESTAMP = 1475418951
+SHA256 (luadbi-0.5.f562ccd.zip) = 28b5146bb89956f1a26af5fb9074c8e3cf449917bda9c8863d345edb88685dc8
+SIZE (luadbi-0.5.f562ccd.zip) = 51252
diff --git a/databases/luadbi/files/patch-Makefile b/databases/luadbi/files/patch-Makefile
index c264e449d82a..1f252d1bfab0 100644
--- a/databases/luadbi/files/patch-Makefile
+++ b/databases/luadbi/files/patch-Makefile
@@ -1,8 +1,9 @@
---- Makefile.orig 2010-07-16 09:22:13.000000000 +0300
-+++ Makefile 2013-10-17 18:24:00.000000000 +0300
-@@ -1,11 +1,8 @@
+--- Makefile.orig 2017-03-14 18:06:02 UTC
++++ Makefile
+@@ -1,12 +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 .
+-LUAVER=5.1
+-CFLAGS=-g -pedantic -Wall -O2 -shared -fpic -I /usr/include/lua$(LUAVER) -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