git: c25d4ede5139 - main - devel/gogs: Update to 0.13.2

From: Zsolt Udvari <uzsolt_at_FreeBSD.org>
Date: Sun, 15 Jun 2025 18:11:34 UTC
The branch main has been updated by uzsolt:

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

commit c25d4ede51398bbd92e92f4d9b5a3067023f12fb
Author:     Siva Mahadevan <me@svmhdvn.name>
AuthorDate: 2025-06-15 18:10:15 +0000
Commit:     Zsolt Udvari <uzsolt@FreeBSD.org>
CommitDate: 2025-06-15 18:10:55 +0000

    devel/gogs: Update to 0.13.2
    
    Submitter takes maintainership.
    
    Changelog: https://github.com/gogs/gogs/releases/tag/v0.13.2
    
    PR:             280241
---
 devel/gogs/Makefile                              |  9 ++-------
 devel/gogs/distinfo                              | 10 +++++-----
 devel/gogs/files/patch-internal_route_install.go | 11 -----------
 devel/gogs/files/patch-templates_install.tmpl    | 12 ++++++------
 devel/gogs/pkg-plist                             |  9 ++++++++-
 5 files changed, 21 insertions(+), 30 deletions(-)

diff --git a/devel/gogs/Makefile b/devel/gogs/Makefile
index 83cf35c6ad11..c59251b28d74 100644
--- a/devel/gogs/Makefile
+++ b/devel/gogs/Makefile
@@ -1,10 +1,9 @@
 PORTNAME=	gogs
 DISTVERSIONPREFIX=	v
-DISTVERSION=	0.12.11
-PORTREVISION=	16
+DISTVERSION=	0.13.2
 CATEGORIES=	devel www
 
-MAINTAINER=	ports@FreeBSD.org
+MAINTAINER=	me@svmhdvn.name
 COMMENT=	Painless self-hosted Git service
 WWW=		https://gogs.io/
 
@@ -57,10 +56,6 @@ post-patch:
 		-e 's|^TYPE = postgres$$|DB_TYPE = sqlite3|' \
 		${WRKSRC}/conf/app.ini
 
-pre-build:
-	cd ${WRKSRC} && \
-		${SETENV} ${MAKE_ENV} ${GO_ENV} ${GO_CMD} generate internal/assets/templates/templates.go \
-
 post-install:
 	${INSTALL_SCRIPT} ${WRKDIR}/gogs ${STAGEDIR}${PREFIX}/bin/
 	${INSTALL_SCRIPT} ${WRKDIR}/gogs-rm-data ${STAGEDIR}${PREFIX}/bin/
diff --git a/devel/gogs/distinfo b/devel/gogs/distinfo
index ae90ab227276..3d17706559b2 100644
--- a/devel/gogs/distinfo
+++ b/devel/gogs/distinfo
@@ -1,5 +1,5 @@
-TIMESTAMP = 1677365270
-SHA256 (go/devel_gogs/gogs-v0.12.11/v0.12.11.mod) = c8db79afd06b0af9ed8878c39b5c74da5dd3b8317e28bbc8b52b77e6a440f7d1
-SIZE (go/devel_gogs/gogs-v0.12.11/v0.12.11.mod) = 3338
-SHA256 (go/devel_gogs/gogs-v0.12.11/v0.12.11.zip) = 6c9b93c2ae0d6420e79c8449d8cd55bbc6032a8e63905d028e6b0399e3f2314e
-SIZE (go/devel_gogs/gogs-v0.12.11/v0.12.11.zip) = 22208341
+TIMESTAMP = 1748889675
+SHA256 (go/devel_gogs/gogs-v0.13.2/v0.13.2.mod) = ab6fd82257a9bbebb4ab886c7b834134c183ca91c175ef08720fe2268f009f39
+SIZE (go/devel_gogs/gogs-v0.13.2/v0.13.2.mod) = 6631
+SHA256 (go/devel_gogs/gogs-v0.13.2/v0.13.2.zip) = bdd10a8d61b88869a8d3ea571a290e081f5a93a15b1f70a2622ce0f67f35705f
+SIZE (go/devel_gogs/gogs-v0.13.2/v0.13.2.zip) = 10028172
diff --git a/devel/gogs/files/patch-internal_route_install.go b/devel/gogs/files/patch-internal_route_install.go
deleted file mode 100644
index 220c3973c5de..000000000000
--- a/devel/gogs/files/patch-internal_route_install.go
+++ /dev/null
@@ -1,11 +0,0 @@
---- internal/route/install.go.orig	2020-08-30 17:50:22 UTC
-+++ internal/route/install.go
-@@ -121,7 +121,7 @@ func InstallInit(c *context.Context) {
- 	c.Title("install.install")
- 	c.PageIs("Install")
- 
--	c.Data["DbOptions"] = []string{"MySQL", "PostgreSQL", "MSSQL", "SQLite3"}
-+	c.Data["DbOptions"] = []string{"MySQL", "PostgreSQL", "SQLite3"}
- }
- 
- func Install(c *context.Context) {
diff --git a/devel/gogs/files/patch-templates_install.tmpl b/devel/gogs/files/patch-templates_install.tmpl
index 3c192233064e..edbd8e1f5a63 100644
--- a/devel/gogs/files/patch-templates_install.tmpl
+++ b/devel/gogs/files/patch-templates_install.tmpl
@@ -1,10 +1,10 @@
---- templates/install.tmpl.orig	2017-11-22 19:46:14 UTC
+--- templates/install.tmpl.orig	2025-06-02 19:06:14 UTC
 +++ templates/install.tmpl
 @@ -8,12 +8,9 @@
  			<div class="ui attached segment">
  				{{template "base/alert" .}}
  
--				<p>{{.i18n.Tr "install.docker_helper" "https://github.com/gogits/gogs/tree/master/docker" | Safe}}</p>
+-				<p>{{.i18n.Tr "install.docker_helper" "https://github.com/gogs/gogs/tree/main/docker" | Safe}}</p>
 -
  				<form class="ui form" action="{{AppSubURL}}/install" method="post">
  					<!-- Dtabase Settings -->
@@ -13,16 +13,16 @@
  					<div class="inline required field {{if .Err_DbType}}error{{end}}">
  						<label>{{.i18n.Tr "install.db_type"}}</label>
  						<div class="ui selection database type dropdown">
-@@ -65,7 +62,7 @@
+@@ -69,7 +66,7 @@
  					</div>
  
- 					<div id="sqlite_settings" class="{{if not (or (eq .CurDbOption "SQLite3") (eq .CurDbOption "TiDB"))}}hide{{end}}">
+ 					<div id="sqlite_settings" class="{{if not (eq .CurDbOption "SQLite3")}}hide{{end}}">
 -						<div class="inline required field {{if or .Err_DbPath .Err_DbSetting}}error{{end}}">
 +						<div class="disabled inline required field {{if or .Err_DbPath .Err_DbSetting}}error{{end}}">
  							<label for="db_path">{{.i18n.Tr "install.path"}}</label>
  							<input id="db_path" name="db_path" value="{{.db_path}}">
  							<span class="help">{{.i18n.Tr "install.sqlite_helper" | Safe}}</span>
-@@ -79,12 +76,12 @@
+@@ -83,12 +80,12 @@
  						<input id="app_name" name="app_name" value="{{.app_name}}" required>
  						<span class="help">{{.i18n.Tr "install.app_name_helper"}}</span>
  					</div>
@@ -37,7 +37,7 @@
  						<label for="run_user">{{.i18n.Tr "install.run_user"}}</label>
  						<input id="run_user" name="run_user" value="{{.run_user}}" required>
  						<span class="help">{{.i18n.Tr "install.run_user_helper"}}</span>
-@@ -115,7 +112,7 @@
+@@ -119,7 +116,7 @@
  						<input id="app_url" name="app_url" value="{{.app_url}}" placeholder="e.g. https://try.gogs.io" required>
  						<span class="help">{{.i18n.Tr "install.app_url_helper"}}</span>
  					</div>
diff --git a/devel/gogs/pkg-plist b/devel/gogs/pkg-plist
index 7c123bb6416e..75278189f158 100644
--- a/devel/gogs/pkg-plist
+++ b/devel/gogs/pkg-plist
@@ -10,6 +10,8 @@ libexec/gogs/conf/auth.d/ldap_bind_dn.conf.example
 libexec/gogs/conf/auth.d/ldap_simple_auth.conf.example
 libexec/gogs/conf/auth.d/pam.conf.example
 libexec/gogs/conf/auth.d/smtp.conf.example
+libexec/gogs/conf/embed.go
+libexec/gogs/conf/embed_test.go
 libexec/gogs/conf/gitignore/Actionscript
 libexec/gogs/conf/gitignore/Ada
 libexec/gogs/conf/gitignore/Agda
@@ -230,10 +232,12 @@ libexec/gogs/conf/locale/locale_it-IT.ini
 libexec/gogs/conf/locale/locale_ja-JP.ini
 libexec/gogs/conf/locale/locale_ko-KR.ini
 libexec/gogs/conf/locale/locale_lv-LV.ini
+libexec/gogs/conf/locale/locale_mn-MN.ini
 libexec/gogs/conf/locale/locale_nl-NL.ini
 libexec/gogs/conf/locale/locale_pl-PL.ini
 libexec/gogs/conf/locale/locale_pt-BR.ini
 libexec/gogs/conf/locale/locale_pt-PT.ini
+libexec/gogs/conf/locale/locale_ro-RO.ini
 libexec/gogs/conf/locale/locale_ru-RU.ini
 libexec/gogs/conf/locale/locale_sk-SK.ini
 libexec/gogs/conf/locale/locale_sr-SP.ini
@@ -283,6 +287,7 @@ libexec/gogs/public/css/themes/default/assets/fonts/outline-icons.ttf
 libexec/gogs/public/css/themes/default/assets/fonts/outline-icons.woff
 libexec/gogs/public/css/themes/default/assets/fonts/outline-icons.woff2
 libexec/gogs/public/css/themes/default/assets/images/flags.png
+libexec/gogs/public/embed.go
 libexec/gogs/public/img/404.png
 libexec/gogs/public/img/500.png
 libexec/gogs/public/img/avatar_default.png
@@ -1174,7 +1179,7 @@ libexec/gogs/public/img/favicon.png
 libexec/gogs/public/img/gogs-hero.png
 libexec/gogs/public/img/slack.png
 libexec/gogs/public/js/gogs.js
-libexec/gogs/public/js/jquery-3.4.1.min.js
+libexec/gogs/public/js/jquery-3.6.0.min.js
 libexec/gogs/public/js/libs/clipboard-2.0.4.min.js
 libexec/gogs/public/js/libs/emojify-1.1.0.min.js
 libexec/gogs/public/js/libs/jquery.are-you-sure.js
@@ -1491,6 +1496,7 @@ libexec/gogs/public/plugins/jquery.minicolors-2.2.3/jquery.minicolors.css
 libexec/gogs/public/plugins/jquery.minicolors-2.2.3/jquery.minicolors.min.js
 libexec/gogs/public/plugins/jquery.minicolors-2.2.3/jquery.minicolors.png
 libexec/gogs/public/plugins/marked-0.8.1/marked.min.js
+libexec/gogs/public/plugins/mermaid-8.14.0/mermaid.min.js
 libexec/gogs/public/plugins/notebookjs-0.4.2/notebook.min.js
 libexec/gogs/public/plugins/pdfjs-1.4.20/LICENSE
 libexec/gogs/public/plugins/pdfjs-1.4.20/build/pdf.js
@@ -1605,6 +1611,7 @@ libexec/gogs/templates/base/alert.tmpl
 libexec/gogs/templates/base/delete_modal_actions.tmpl
 libexec/gogs/templates/base/footer.tmpl
 libexec/gogs/templates/base/head.tmpl
+libexec/gogs/templates/embed.go
 libexec/gogs/templates/explore/navbar.tmpl
 libexec/gogs/templates/explore/organizations.tmpl
 libexec/gogs/templates/explore/page.tmpl