Lucas <lu...@sexy.is> wrote:
> Hello list,
> 
> Here's a patch to add FLAVORs for luadbi based on the Lua version. I
> need this in order to have a 5.2-flavored luadbi to bump net/prosody to
> use Lua 5.2, which is the recommended version for it since 0.11.0 and
> 0.11.x is going to be the last version supporting 5.1.
> 
> Portwise, I bumped REVISION, although I'm not sure if it's actually
> needed in this case, and `make update-plist` added `@so` markers. The
> port includes no tests and I actually don't use a DB for prosody, so I
> have zero guarantees this actually works. Tests from people using such
> setups are more than welcome.
> 
> Cheers,
> -Lucas

Now with the correct patch.

Index: Makefile
===================================================================
RCS file: /home/cvs/ports/databases/luadbi/Makefile,v
retrieving revision 1.14
diff -u -p -r1.14 Makefile
--- Makefile    12 Jul 2019 20:43:53 -0000      1.14
+++ Makefile    1 Apr 2021 22:56:48 -0000
@@ -11,7 +11,7 @@ GH_TAGNAME=   v${V}
 PKGNAME-main=  ${GH_PROJECT}-${V}
 PKGNAME-mysql= ${GH_PROJECT}-mysql-$V
 PKGNAME-pgsql= ${GH_PROJECT}-pgsql-$V
-REVISION-main = 0
+REVISION-main= 1
 
 CATEGORIES=    databases
 
@@ -34,6 +34,9 @@ LIB_DEPENDS-pgsql=    databases/postgresql
 RUN_DEPENDS-pgsql=     ${BASE_PKGPATH},-main
 
 MODULES=               lang/lua
+
+FLAVORS=               lua52 lua53
+FLAVOR?=
 
 USE_GMAKE=             Yes
 
Index: pkg/PLIST-main
===================================================================
RCS file: /home/cvs/ports/databases/luadbi/pkg/PLIST-main,v
retrieving revision 1.3
diff -u -p -r1.3 PLIST-main
--- pkg/PLIST-main      15 May 2018 11:08:12 -0000      1.3
+++ pkg/PLIST-main      11 May 2021 17:10:02 -0000
@@ -2,7 +2,7 @@
 lib/lua/
 lib/lua/${MODLUA_VERSION}/
 lib/lua/${MODLUA_VERSION}/dbd/
-lib/lua/${MODLUA_VERSION}/dbd/sqlite3.so
+@so lib/lua/${MODLUA_VERSION}/dbd/sqlite3.so
 share/lua/
 share/lua/${MODLUA_VERSION}/
 share/lua/${MODLUA_VERSION}/DBI.lua
Index: pkg/PLIST-mysql
===================================================================
RCS file: /home/cvs/ports/databases/luadbi/pkg/PLIST-mysql,v
retrieving revision 1.2
diff -u -p -r1.2 PLIST-mysql
--- pkg/PLIST-mysql     14 Jan 2018 15:36:40 -0000      1.2
+++ pkg/PLIST-mysql     11 May 2021 17:10:02 -0000
@@ -1,2 +1,2 @@
 @comment $OpenBSD: PLIST-mysql,v 1.2 2018/01/14 15:36:40 landry Exp $
-lib/lua/${MODLUA_VERSION}/dbd/mysql.so
+@so lib/lua/${MODLUA_VERSION}/dbd/mysql.so
Index: pkg/PLIST-pgsql
===================================================================
RCS file: /home/cvs/ports/databases/luadbi/pkg/PLIST-pgsql,v
retrieving revision 1.2
diff -u -p -r1.2 PLIST-pgsql
--- pkg/PLIST-pgsql     14 Jan 2018 15:36:40 -0000      1.2
+++ pkg/PLIST-pgsql     11 May 2021 17:10:02 -0000
@@ -1,2 +1,2 @@
 @comment $OpenBSD: PLIST-pgsql,v 1.2 2018/01/14 15:36:40 landry Exp $
-lib/lua/${MODLUA_VERSION}/dbd/postgresql.so
+@so lib/lua/${MODLUA_VERSION}/dbd/postgresql.so

Reply via email to