diff options
author | vanilla <vanilla@FreeBSD.org> | 2017-08-28 10:56:49 +0800 |
---|---|---|
committer | vanilla <vanilla@FreeBSD.org> | 2017-08-28 10:56:49 +0800 |
commit | 13dd86e02b97f203fcb3b7f23e1d5dc1962e7f72 (patch) | |
tree | eecac5ab2c5b0c25b49df93cf1ed9ddf644dd698 | |
parent | 5b1a77b2edfd803171af30ebc24ba0c49a771db8 (diff) | |
download | freebsd-ports-gnome-13dd86e02b97f203fcb3b7f23e1d5dc1962e7f72.tar.gz freebsd-ports-gnome-13dd86e02b97f203fcb3b7f23e1d5dc1962e7f72.tar.zst freebsd-ports-gnome-13dd86e02b97f203fcb3b7f23e1d5dc1962e7f72.zip |
1: Update to 0.6
2: switch to github.
PR: 221856
Submitted by: maintainer
-rw-r--r-- | databases/luadbi/Makefile | 49 | ||||
-rw-r--r-- | databases/luadbi/distinfo | 6 | ||||
-rw-r--r-- | databases/luadbi/files/patch-Makefile | 15 | ||||
-rw-r--r-- | databases/luadbi/pkg-descr | 2 |
4 files changed, 32 insertions, 40 deletions
diff --git a/databases/luadbi/Makefile b/databases/luadbi/Makefile index a958a6b476c4..23ae322f4493 100644 --- a/databases/luadbi/Makefile +++ b/databases/luadbi/Makefile @@ -2,32 +2,36 @@ # $FreeBSD$ PORTNAME= luadbi -PORTVERSION= 0.5 -PORTREVISION= 3 +PORTVERSION= 0.6 +DISTVERSIONPREFIX= v CATEGORIES= databases -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 -WRKSRC= ${WRKDIR}/${PORTNAME}-master - -USES= gmake shebangfix zip +USES= gmake shebangfix SHEBANG_FILES= DBI.lua -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}" +USE_GITHUB= yes +GH_ACCOUNT= mwild1 +CFLAGS+= -g -pedantic -Wall -Qunused-arguments -O2 -shared -fPIC -DPIC -std=c99 -I${LOCALBASE}/include +LDFLAGS+= -shared +MAKE_ENV+= COMMON_CFLAGS="" +MAKE_ENV+= COMMON_LDFLAGS="" +MAKE_ENV+= INSTALL_PROGRAM="${INSTALL_PROGRAM}" +MAKE_ENV+= INSTALL_DATA="${INSTALL_DATA}" +MAKE_ENV+= LUA_V="${LUA_VER}" +MAKE_ENV+= LUA_LDIR="${LUA_MODSHAREDIR}" +MAKE_ENV+= LUA_CDIR="${LUA_MODLIBDIR}" +MAKE_ENV+= LUA_INC="-I${LUA_INCDIR}" MAKE_JOBS_UNSAFE=yes OPTIONS_SINGLE= LUA_VERSION -OPTIONS_SINGLE_LUA_VERSION= LUA51 LUA52 +OPTIONS_SINGLE_LUA_VERSION= LUA51 LUA52 LUA53 OPTIONS_MULTI= DATABASE OPTIONS_MULTI_DATABASE= MYSQL SQLITE3 PGSQL OPTIONS_DEFAULT= MYSQL LUA52 @@ -35,35 +39,38 @@ OPTIONS_DEFAULT= MYSQL LUA52 PLIST_FILES= %%LUA_MODSHAREDIR%%/DBI.lua LUA51_USES= lua:51 - LUA52_USES= lua:52 +LUA53_USES= lua:53 MYSQL_USES= mysql -MYSQL_LDFLAGS= -L ${LOCALBASE}/lib/mysql -MYSQL_CFLAGS= -I ${LOCALBASE}/include/mysql MYSQL_ALL_TARGET= mysql -MYSQL_PLIST_FILES= %%LUA_MODLIBDIR%%/dbdmysql.so +MYSQL_PLIST_FILES= %%LUA_MODLIBDIR%%/dbd/mysql.so +MYSQL_MAKE_ENV+= MYSQL_LDFLAGS="-L${LOCALBASE}/lib/mysql -lmysqlclient" +MYSQL_MAKE_ENV+= MYSQL_INC="-I${LOCALBASE}/include/mysql" SQLITE3_USES= sqlite:3 SQLITE3_ALL_TARGET= sqlite3 -SQLITE3_PLIST_FILES= %%LUA_MODLIBDIR%%/dbdsqlite3.so +SQLITE3_PLIST_FILES= %%LUA_MODLIBDIR%%/dbd/sqlite3.so +SQLITE3_MAKE_ENV+= SQLITE3_INC="" PGSQL_USES= pgsql PGSQL_ALL_TARGET= psql -PGSQL_PLIST_FILES= %%LUA_MODLIBDIR%%/dbdpostgresql.so +PGSQL_PLIST_FILES= %%LUA_MODLIBDIR%%/dbd/postgresql.so +PGSQL_MAKE_ENV+= PSQL_INC="-I${LOCALBASE}/include/postgresql/server" do-install: @${MKDIR} ${STAGEDIR}${LUA_MODLIBDIR} + @${MKDIR} ${STAGEDIR}${LUA_MODLIBDIR}/dbd @${MKDIR} ${STAGEDIR}${LUA_MODSHAREDIR} ${CP} ${WRKSRC}/DBI.lua ${STAGEDIR}${LUA_MODSHAREDIR} do-install-MYSQL-on: - ${INSTALL_PROGRAM} ${WRKSRC}/dbdmysql.so ${STAGEDIR}${LUA_MODLIBDIR} + ${INSTALL_PROGRAM} ${WRKSRC}/dbd/mysql.so ${STAGEDIR}${LUA_MODLIBDIR}/dbd do-install-SQLITE3-on: - ${INSTALL_PROGRAM} ${WRKSRC}/dbdsqlite3.so ${STAGEDIR}${LUA_MODLIBDIR} + ${INSTALL_PROGRAM} ${WRKSRC}/dbd/sqlite3.so ${STAGEDIR}${LUA_MODLIBDIR}/dbd do-install-PGSQL-on: - ${INSTALL_PROGRAM} ${WRKSRC}/dbdpostgresql.so ${STAGEDIR}${LUA_MODLIBDIR} + ${INSTALL_PROGRAM} ${WRKSRC}/dbd/postgresql.so ${STAGEDIR}${LUA_MODLIBDIR}/dbd .include <bsd.port.mk> diff --git a/databases/luadbi/distinfo b/databases/luadbi/distinfo index 5db1db05c5b8..75f2198577d5 100644 --- a/databases/luadbi/distinfo +++ b/databases/luadbi/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1475418951 -SHA256 (luadbi-0.5.f562ccd.zip) = 28b5146bb89956f1a26af5fb9074c8e3cf449917bda9c8863d345edb88685dc8 -SIZE (luadbi-0.5.f562ccd.zip) = 51252 +TIMESTAMP = 1503887847 +SHA256 (mwild1-luadbi-v0.6_GH0.tar.gz) = 43289a55d945e00cd190df515f609482af46ed5928a24cce66ea6925f4b7d255 +SIZE (mwild1-luadbi-v0.6_GH0.tar.gz) = 28621 diff --git a/databases/luadbi/files/patch-Makefile b/databases/luadbi/files/patch-Makefile deleted file mode 100644 index 1f252d1bfab0..000000000000 --- a/databases/luadbi/files/patch-Makefile +++ /dev/null @@ -1,15 +0,0 @@ ---- Makefile.orig 2017-03-14 18:06:02 UTC -+++ Makefile -@@ -1,12 +1,8 @@ --CC=gcc --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 - MKDIR=mkdir -p - --COMMON_LDFLAGS= - MYSQL_LDFLAGS=$(COMMON_LDFLAGS) -lmysqlclient - PSQL_LDFLAGS=$(COMMON_LDFLAGS) -lpq - SQLITE3_LDFLAGS=$(COMMON_LDFLAGS) -lsqlite3 diff --git a/databases/luadbi/pkg-descr b/databases/luadbi/pkg-descr index 91913a27dac7..485933b07060 100644 --- a/databases/luadbi/pkg-descr +++ b/databases/luadbi/pkg-descr @@ -1,4 +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/ +WWW: https://github.com/mwild1/luadbi |