git: a17964d84bdb - main - net-im/gotosocial: update to 0.17.3

From: Dirk Meyer <dinoex_at_FreeBSD.org>
Date: Sat, 28 Dec 2024 06:46:06 UTC
The branch main has been updated by dinoex:

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

commit a17964d84bdbf32df328da687e3f9a8bf3d7891b
Author:     Dirk Meyer <dinoex@FreeBSD.org>
AuthorDate: 2024-12-28 06:45:50 +0000
Commit:     Dirk Meyer <dinoex@FreeBSD.org>
CommitDate: 2024-12-28 06:45:50 +0000

    net-im/gotosocial: update to 0.17.3
    
    PR: 278386
    PR: 280149
    PR: 283164
---
 net-im/gotosocial/Makefile  | 16 +++++++++++-----
 net-im/gotosocial/distinfo  | 10 +++++-----
 net-im/gotosocial/pkg-plist | 46 +++++++++++++++++++++++++++++++++++++--------
 3 files changed, 54 insertions(+), 18 deletions(-)

diff --git a/net-im/gotosocial/Makefile b/net-im/gotosocial/Makefile
index e3623e2b839f..225f155913d9 100644
--- a/net-im/gotosocial/Makefile
+++ b/net-im/gotosocial/Makefile
@@ -1,7 +1,6 @@
 PORTNAME=	gotosocial
 DISTVERSIONPREFIX=	v
-DISTVERSION=	0.14.1
-PORTREVISION=	5
+DISTVERSION=	0.17.3
 CATEGORIES=	net-im
 MASTER_SITES?=	https://github.com/${GH_ACCOUNT}/${PORTNAME}/releases/download/v${DISTVERSION}/:web
 DISTFILES?=	${PORTNAME}_${DISTVERSION}_web-assets.tar.gz:web
@@ -16,14 +15,14 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 ONLY_FOR_ARCHS=	aarch64 amd64 armv7 i386
 ONLY_FOR_ARCHS_REASON=	https://gitlab.com/cznic/libc/-/issues/15
 
-USES=		go:1.21,modules
+USES=		go:1.23,modules
 USE_GITHUB=	yes
 GH_ACCOUNT=	superseriousbusiness
 USE_RC_SUBR=	${PORTNAME}
 
 GO_TARGET=	./cmd/gotosocial
-GO_BUILDFLAGS=	-trimpath -tags "netgo osusergo static_build kvformat ${WITH_DEBUG:Ddebugenv}" \
-	-ldflags="${STRIP} -w -extldflags '-static' -X 'main.Version=${PKGVERSION}'"
+GO_BUILDFLAGS+=	-tags "netgo osusergo static_build kvformat ${WITH_DEBUG:Ddebugenv}" \
+ 	-ldflags="${STRIP} -w -extldflags '-static' -X 'main.Version=${PKGVERSION}'"
 CGO_ENABLED=	0
 
 SUB_LIST=	DBDIR="${DBDIR}" \
@@ -40,6 +39,9 @@ PLIST_SUB=	WWWDIR="${WWWDIR}"
 
 TESTING_UNSAFE=	FAIL    github.com/superseriousbusiness/gotosocial/internal/log
 
+post-patch:
+	${REINPLACE_CMD} -e 's,GTS_DB_TYPE="postgres",#&,' ${WRKSRC}/scripts/test.sh
+
 post-install:
 	${MKDIR} ${STAGEDIR}${DOCSDIR}
 .for x in LICENSE README.md
@@ -51,4 +53,8 @@ post-install:
 		${STAGEDIR}${ETCDIR}/config.yaml.sample
 	(cd ${WRKSRC}/../web && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}/ )
 
+do-test:
+	(cd ${GO_WRKSRC}; \
+		${SETENVI} ${WRK_ENV} ${MAKE_ENV} ${GO_ENV} GOPROXY=off scripts/test.sh)
+
 .include <bsd.port.mk>
diff --git a/net-im/gotosocial/distinfo b/net-im/gotosocial/distinfo
index 5c910514f0d4..3aeb631c63e8 100644
--- a/net-im/gotosocial/distinfo
+++ b/net-im/gotosocial/distinfo
@@ -1,5 +1,5 @@
-TIMESTAMP = 1711719327
-SHA256 (gotosocial_0.14.1_web-assets.tar.gz) = 70d3b42ee4f3831dc200ffaa8d3059f4582ce23ac7df2a59444a4a2a2a4e2430
-SIZE (gotosocial_0.14.1_web-assets.tar.gz) = 1417726
-SHA256 (superseriousbusiness-gotosocial-v0.14.1_GH0.tar.gz) = 430ae26031282ffc0db58d39f88d32f14fce44ef32188a2a853222693a638bae
-SIZE (superseriousbusiness-gotosocial-v0.14.1_GH0.tar.gz) = 64603596
+TIMESTAMP = 1733217257
+SHA256 (gotosocial_0.17.3_web-assets.tar.gz) = f390a67168dc5fc6be859c64c914df5c4ae6908c7ae11dac71a692d85a5febaf
+SIZE (gotosocial_0.17.3_web-assets.tar.gz) = 1877114
+SHA256 (superseriousbusiness-gotosocial-v0.17.3_GH0.tar.gz) = a00382d31ec55fc26f94a611c599a00da98d8b4ea8447559781732f9ec6ebaf6
+SIZE (superseriousbusiness-gotosocial-v0.17.3_GH0.tar.gz) = 119491120
diff --git a/net-im/gotosocial/pkg-plist b/net-im/gotosocial/pkg-plist
index 4879fe45e049..56c7897985bc 100644
--- a/net-im/gotosocial/pkg-plist
+++ b/net-im/gotosocial/pkg-plist
@@ -2,7 +2,6 @@
 %%WWWDIR%%/template/about.tmpl
 %%WWWDIR%%/template/thread.tmpl
 %%WWWDIR%%/template/oob.tmpl
-%%WWWDIR%%/template/confirmed.tmpl
 %%WWWDIR%%/template/profile.tmpl
 %%WWWDIR%%/template/status.tmpl
 %%WWWDIR%%/template/email_confirm.tmpl
@@ -32,18 +31,37 @@
 %%WWWDIR%%/template/status_attributes.tmpl
 %%WWWDIR%%/template/status_header.tmpl
 %%WWWDIR%%/template/status_info.tmpl
+%%WWWDIR%%/template/confirm_email.tmpl
+%%WWWDIR%%/template/confirmed_email.tmpl
+%%WWWDIR%%/template/email_new_signup.tmpl
+%%WWWDIR%%/template/email_signup_approved.tmpl
+%%WWWDIR%%/template/email_signup_rejected.tmpl
+%%WWWDIR%%/template/index_register.tmpl
+%%WWWDIR%%/template/sign-up.tmpl
+%%WWWDIR%%/template/signed-up.tmpl
 %%WWWDIR%%/assets/LICENSE
-%%WWWDIR%%/assets/default_avatars/GoToSocial_icon5.png
-%%WWWDIR%%/assets/default_avatars/GoToSocial_icon2.png
-%%WWWDIR%%/assets/default_avatars/GoToSocial_icon3.png
-%%WWWDIR%%/assets/default_avatars/GoToSocial_icon4.png
-%%WWWDIR%%/assets/default_avatars/GoToSocial_icon1.png
-%%WWWDIR%%/assets/default_avatars/GoToSocial_icon6.png
+%%WWWDIR%%/assets/activitypub_light.svg
+%%WWWDIR%%/assets/default_header.webp
+%%WWWDIR%%/assets/default_avatars/GoToSocial_icon1.webp
+%%WWWDIR%%/assets/default_avatars/GoToSocial_icon2.webp
+%%WWWDIR%%/assets/default_avatars/GoToSocial_icon3.webp
+%%WWWDIR%%/assets/default_avatars/GoToSocial_icon4.webp
+%%WWWDIR%%/assets/default_avatars/GoToSocial_icon5.webp
+%%WWWDIR%%/assets/default_avatars/GoToSocial_icon6.webp
 %%WWWDIR%%/assets/mastodon.svg
 %%WWWDIR%%/assets/logo.svg
+%%WWWDIR%%/assets/logo.webp
 %%WWWDIR%%/assets/plyr.svg
-%%WWWDIR%%/assets/default_header.png
 %%WWWDIR%%/assets/fonts/OFL.txt
+%%WWWDIR%%/assets/fonts/Atkinson-Hyperlegible-Bold-102.woff
+%%WWWDIR%%/assets/fonts/Atkinson-Hyperlegible-Bold-102a.woff2
+%%WWWDIR%%/assets/fonts/Atkinson-Hyperlegible-BoldItalic-102.woff
+%%WWWDIR%%/assets/fonts/Atkinson-Hyperlegible-BoldItalic-102a.woff2
+%%WWWDIR%%/assets/fonts/Atkinson-Hyperlegible-Italic-102.woff
+%%WWWDIR%%/assets/fonts/Atkinson-Hyperlegible-Italic-102a.woff2
+%%WWWDIR%%/assets/fonts/Atkinson-Hyperlegible-Regular-102.woff
+%%WWWDIR%%/assets/fonts/Atkinson-Hyperlegible-Regular-102a.woff2
+%%WWWDIR%%/assets/fonts/noto-sans-mono-v30-latin-regular.woff2
 %%WWWDIR%%/assets/fonts/noto-sans-v27-latin-700.woff
 %%WWWDIR%%/assets/fonts/noto-sans-v27-latin-700.woff2
 %%WWWDIR%%/assets/fonts/noto-sans-v27-latin-regular.woff
@@ -61,6 +79,18 @@
 %%WWWDIR%%/assets/Fork-Awesome/css/fork-awesome.css
 %%WWWDIR%%/assets/Fork-Awesome/css/v5-compat.min.css.map
 %%WWWDIR%%/assets/Fork-Awesome/css/fork-awesome.min.css
+%%WWWDIR%%/assets/themes/blurple-dark.css
+%%WWWDIR%%/assets/themes/blurple-light.css
+%%WWWDIR%%/assets/themes/brutalist-dark.css
+%%WWWDIR%%/assets/themes/brutalist.css
+%%WWWDIR%%/assets/themes/ecks-pee.css
+%%WWWDIR%%/assets/themes/midnight-trip.css
+%%WWWDIR%%/assets/themes/moonlight-hunt.css
+%%WWWDIR%%/assets/themes/rain-forest.css
+%%WWWDIR%%/assets/themes/soft.css
+%%WWWDIR%%/assets/themes/solarized-dark.css
+%%WWWDIR%%/assets/themes/solarized-light.css
+%%WWWDIR%%/assets/themes/sunset-light.css
 %%WWWDIR%%/assets/tusky.svg
 %%WWWDIR%%/assets/logo.png
 %%WWWDIR%%/assets/dist/index.css