aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPo-Chuan Hsieh <sunpoet@FreeBSD.org>2025-01-02 16:28:51 +0000
committerPo-Chuan Hsieh <sunpoet@FreeBSD.org>2025-01-02 16:28:51 +0000
commit80a89eea52356d8f9aea30e5e4ac591b2f1ed7b3 (patch)
tree78c2f027f4c69283d0fbfb4502d7066d41a2dc69
parent5c55f385fe24b96400bfea0cf442aaf3cc763d43 (diff)
www/rubygem-importmap-rails-rails72: Add rubygem-importmap-rails-rails72 2.1.0 (copied from rubygem-importmap-rails)
-rw-r--r--www/Makefile1
-rw-r--r--www/rubygem-importmap-rails-rails72/Makefile22
-rw-r--r--www/rubygem-importmap-rails-rails72/distinfo3
-rw-r--r--www/rubygem-importmap-rails-rails72/pkg-descr17
4 files changed, 43 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile
index 77cda9762866..9fc122afe1f1 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -2127,6 +2127,7 @@
SUBDIR += rubygem-importmap-rails
SUBDIR += rubygem-importmap-rails-rails70
SUBDIR += rubygem-importmap-rails-rails71
+ SUBDIR += rubygem-importmap-rails-rails72
SUBDIR += rubygem-innate
SUBDIR += rubygem-jekyll
SUBDIR += rubygem-jekyll-sanity
diff --git a/www/rubygem-importmap-rails-rails72/Makefile b/www/rubygem-importmap-rails-rails72/Makefile
new file mode 100644
index 000000000000..39c19f7cad29
--- /dev/null
+++ b/www/rubygem-importmap-rails-rails72/Makefile
@@ -0,0 +1,22 @@
+PORTNAME= importmap-rails
+PORTVERSION= 2.1.0
+CATEGORIES= www rubygems
+MASTER_SITES= RG
+PKGNAMESUFFIX= -rails72
+
+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-actionpack72>=6.0.0:www/rubygem-actionpack72 \
+ rubygem-activesupport72>=6.0.0:devel/rubygem-activesupport72 \
+ rubygem-railties72>=6.0.0:www/rubygem-railties72
+
+USES= gem
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/www/rubygem-importmap-rails-rails72/distinfo b/www/rubygem-importmap-rails-rails72/distinfo
new file mode 100644
index 000000000000..ad4b88292088
--- /dev/null
+++ b/www/rubygem-importmap-rails-rails72/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1735228188
+SHA256 (rubygem/importmap-rails-2.1.0.gem) = 9f10c67d60651a547579f448100d033df311c5d5db578301374aeb774faae741
+SIZE (rubygem/importmap-rails-2.1.0.gem) = 17408
diff --git a/www/rubygem-importmap-rails-rails72/pkg-descr b/www/rubygem-importmap-rails-rails72/pkg-descr
new file mode 100644
index 000000000000..184d7013fa42
--- /dev/null
+++ b/www/rubygem-importmap-rails-rails72/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.