git: 73371e833230 - main - www/p5-Mojolicious-Plugin-RenderFile: New port

From: Wen Heping <wen_at_FreeBSD.org>
Date: Tue, 08 Apr 2025 09:08:02 UTC
The branch main has been updated by wen:

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

commit 73371e833230d654b633bc191338bf60d2420e07
Author:     diego <teru-sama@riseup.net>
AuthorDate: 2025-04-08 07:50:00 +0000
Commit:     Wen Heping <wen@FreeBSD.org>
CommitDate: 2025-04-08 09:01:49 +0000

    www/p5-Mojolicious-Plugin-RenderFile: New port
    
    Mojolicious::Plugin::RenderFile is a Mojolicious plugin that adds
    "render_file" helper. It does not read file in memory and just
    streaming it to a client.
    PR:             284994
    Reported by:    diego <teru-sama@riseup.net>
---
 www/Makefile                                   |  1 +
 www/p5-Mojolicious-Plugin-RenderFile/Makefile  | 23 +++++++++++++++++++++++
 www/p5-Mojolicious-Plugin-RenderFile/distinfo  |  3 +++
 www/p5-Mojolicious-Plugin-RenderFile/pkg-descr |  3 +++
 4 files changed, 30 insertions(+)

diff --git a/www/Makefile b/www/Makefile
index 91d7aba25b4c..2279da2f9b57 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -1057,6 +1057,7 @@
     SUBDIR += p5-Mojolicious-Plugin-HamlRenderer
     SUBDIR += p5-Mojolicious-Plugin-Mongodb
     SUBDIR += p5-Mojolicious-Plugin-OpenAPI
+    SUBDIR += p5-Mojolicious-Plugin-RenderFile
     SUBDIR += p5-Mojolicious-Plugin-SetUserGroup
     SUBDIR += p5-Mojolicious-Plugin-TtRenderer
     SUBDIR += p5-Mojolicious-Plugin-YamlConfig
diff --git a/www/p5-Mojolicious-Plugin-RenderFile/Makefile b/www/p5-Mojolicious-Plugin-RenderFile/Makefile
new file mode 100644
index 000000000000..86373412ecaf
--- /dev/null
+++ b/www/p5-Mojolicious-Plugin-RenderFile/Makefile
@@ -0,0 +1,23 @@
+PORTNAME=	Mojolicious-Plugin-RenderFile
+PORTVERSION=	0.12
+CATEGORIES=	www perl5
+MASTER_SITES=	CPAN
+PKGNAMEPREFIX=	p5-
+
+MAINTAINER=	teru-sama@riseup.net
+COMMENT=	RenderFile plugin for Mojolicious
+WWW=		https://metacpan.org/dist/Mojolicious-Plugin-RenderFile
+
+LICENSE=	ART20
+
+NO_ARCH=	yes
+USES=		perl5
+USE_PERL5=	configure
+
+BUILD_DEPENDS=	${RUN_DEPENDS}
+RUN_DEPENDS=	p5-Mojolicious>=1:www/p5-Mojolicious
+
+PLIST_FILES=	lib/perl5/site_perl/Mojolicious/Plugin/RenderFile.pm \
+		lib/perl5/site_perl/man/man3/Mojolicious::Plugin::RenderFile.3.gz
+
+.include <bsd.port.mk>
diff --git a/www/p5-Mojolicious-Plugin-RenderFile/distinfo b/www/p5-Mojolicious-Plugin-RenderFile/distinfo
new file mode 100644
index 000000000000..e2b99d024e49
--- /dev/null
+++ b/www/p5-Mojolicious-Plugin-RenderFile/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1740330987
+SHA256 (Mojolicious-Plugin-RenderFile-0.12.tar.gz) = 013e42a2cc06bc7041bb13c9df388af24010e69793a8df0f0ab1d240aa61173f
+SIZE (Mojolicious-Plugin-RenderFile-0.12.tar.gz) = 4925
diff --git a/www/p5-Mojolicious-Plugin-RenderFile/pkg-descr b/www/p5-Mojolicious-Plugin-RenderFile/pkg-descr
new file mode 100644
index 000000000000..74c4848eb52f
--- /dev/null
+++ b/www/p5-Mojolicious-Plugin-RenderFile/pkg-descr
@@ -0,0 +1,3 @@
+Mojolicious::Plugin::RenderFile is a Mojolicious plugin that adds
+"render_file" helper. It does not read file in memory and just
+streaming it to a client.