git: 2aca44cf12b8 - main - irc/soju: Depend on system-wide sqlite3

From: Ashish SHUKLA <ashish_at_FreeBSD.org>
Date: Sat, 07 May 2022 07:38:03 UTC
The branch main has been updated by ashish:

URL: https://cgit.FreeBSD.org/ports/commit/?id=2aca44cf12b81a7e09761d3fb7467d81fcbf425b

commit 2aca44cf12b81a7e09761d3fb7467d81fcbf425b
Author:     Ashish SHUKLA <ashish@FreeBSD.org>
AuthorDate: 2022-05-07 07:11:42 +0000
Commit:     Ashish SHUKLA <ashish@FreeBSD.org>
CommitDate: 2022-05-07 07:37:32 +0000

    irc/soju: Depend on system-wide sqlite3
    
    Reported by:    diizzy
---
 irc/soju/Makefile | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/irc/soju/Makefile b/irc/soju/Makefile
index a36e2b4c9848..93cdd7b7810d 100644
--- a/irc/soju/Makefile
+++ b/irc/soju/Makefile
@@ -1,7 +1,7 @@
 PORTNAME=	soju
 DISTVERSIONPREFIX=	v
 DISTVERSION=	0.4.0
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	irc
 MASTER_SITES=	https://git.sr.ht/~emersion/go-scfg/archive/:goscfg \
 		https://git.sr.ht/~sircmpwn/go-bare/archive/:gobare
@@ -14,7 +14,7 @@ COMMENT=	IRC bouncer
 LICENSE=	AGPLv3
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-USES=		go:modules
+USES=		go:modules sqlite:3
 
 OPTIONS_DEFAULT=	DOCS
 OPTIONS_DEFINE=		DOCS
@@ -45,6 +45,8 @@ GH_TUPLE=	beorn7:perks:v1.0.1:beorn7_perks/vendor/github.com/beorn7/perks \
 
 GO_BARE_REV=	ab86bc2846d9
 GO_SCFG_REV=	c2c7a15d6c99
+GO_BUILDFLAGS+=	-tags=libsqlite3
+CGO_LDFLAGS+=	-lsqlite3
 GO_PKGNAME=	./cmd/soju ./cmd/sojuctl ./contrib/znc-import.go
 PLIST_FILES=	bin/soju \
 		bin/sojuctl \