git: ee06464644b3 - main - www/rubygem-importmap-rails-rails80: Add rubygem-importmap-rails-rails80 2.2.2 (copied from rubygem-importmap-rails-rails72)
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 17 Nov 2025 21:08:01 UTC
The branch main has been updated by sunpoet:
URL: https://cgit.FreeBSD.org/ports/commit/?id=ee06464644b3f7f1bb36ac437aec901a9decd5ff
commit ee06464644b3f7f1bb36ac437aec901a9decd5ff
Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2025-11-17 21:03:33 +0000
Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2025-11-17 21:06:51 +0000
www/rubygem-importmap-rails-rails80: Add rubygem-importmap-rails-rails80 2.2.2 (copied from rubygem-importmap-rails-rails72)
---
www/Makefile | 1 +
www/rubygem-importmap-rails-rails80/Makefile | 22 ++++++++++++++++++++++
www/rubygem-importmap-rails-rails80/distinfo | 3 +++
www/rubygem-importmap-rails-rails80/pkg-descr | 17 +++++++++++++++++
4 files changed, 43 insertions(+)
diff --git a/www/Makefile b/www/Makefile
index 248483941d6b..483e606e218b 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -2245,6 +2245,7 @@
SUBDIR += rubygem-importmap-rails-rails70
SUBDIR += rubygem-importmap-rails-rails71
SUBDIR += rubygem-importmap-rails-rails72
+ SUBDIR += rubygem-importmap-rails-rails80
SUBDIR += rubygem-innate
SUBDIR += rubygem-jekyll
SUBDIR += rubygem-jekyll-sanity
diff --git a/www/rubygem-importmap-rails-rails80/Makefile b/www/rubygem-importmap-rails-rails80/Makefile
new file mode 100644
index 000000000000..d6f015e9a4a2
--- /dev/null
+++ b/www/rubygem-importmap-rails-rails80/Makefile
@@ -0,0 +1,22 @@
+PORTNAME= importmap-rails
+PORTVERSION= 2.2.2
+CATEGORIES= www rubygems
+MASTER_SITES= RG
+PKGNAMESUFFIX= -rails80
+
+MAINTAINER= sunpoet@FreeBSD.org
+COMMENT= Use ESM with importmap to manage modern JavaScript in Rails without transpiling or bundling
+WWW= https://github.com/rails/importmap-rails
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/MIT-LICENSE
+
+RUN_DEPENDS= rubygem-actionpack80>=6.0.0:www/rubygem-actionpack80 \
+ rubygem-activesupport80>=6.0.0:devel/rubygem-activesupport80 \
+ rubygem-railties80>=6.0.0:www/rubygem-railties80
+
+USES= gem
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/www/rubygem-importmap-rails-rails80/distinfo b/www/rubygem-importmap-rails-rails80/distinfo
new file mode 100644
index 000000000000..1d82f88590a8
--- /dev/null
+++ b/www/rubygem-importmap-rails-rails80/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1757121890
+SHA256 (rubygem/importmap-rails-2.2.2.gem) = 729f5b1092f832780829ade1d0b46c7e53d91c556f06da7254da2977e93fe614
+SIZE (rubygem/importmap-rails-2.2.2.gem) = 20992
diff --git a/www/rubygem-importmap-rails-rails80/pkg-descr b/www/rubygem-importmap-rails-rails80/pkg-descr
new file mode 100644
index 000000000000..184d7013fa42
--- /dev/null
+++ b/www/rubygem-importmap-rails-rails80/pkg-descr
@@ -0,0 +1,17 @@
+Import maps let you import JavaScript modules using logical names that map to
+versioned/digested files -- directly from the browser. So you can build modern
+JavaScript applications using JavaScript libraries made for ESM without the need
+for transpiling or bundling.This frees you from needing Webpack, Yarn, npm, or
+any other part of the JavaScript toolchain. All you need is the asset pipeline
+that's already included in Rails.
+
+With this approach you'll ship many small JavaScript files instead of one big
+JavaScript file. Thanks to HTTP/2 that no longer carries a material performance
+penalty during the initial transport, and in fact offers substantial benefits
+over the long run due to better caching dynamics. Whereas before any change to
+any JavaScript file included in your big bundle would invalidate the cache for
+the the whole bundle, now only the cache for that single file is invalidated.
+
+There's native support for import maps in Chrome/Edge 89+, and a shim available
+for any browser with basic ESM support. So your app will be able to work with
+all the evergreen browsers.