rb-sass-embedded: use precompiled platform gems

The source gem downloads a dart-sass binary during the build phase
anyway, so use the precompiled platform gems to avoid that.

Fixes: https://trac.macports.org/ticket/74205
This commit is contained in:
Dan R. K. Ports
2026-07-10 16:37:31 -07:00
committed by Dan Ports
parent 617f0c5733
commit 205a8c5940
+23 -3
View File
@@ -5,6 +5,7 @@ PortGroup ruby 1.0
ruby.branches 3.4 3.3 3.2 3.1
ruby.setup sass-embedded 1.101.0 gem {} rubygems
revision 1
categories-append www
license MIT
maintainers nomaintainer
@@ -12,9 +13,28 @@ description Use Dart Sass compiler from Ruby
long_description A Ruby library that will communicate with the Dart Sass \
compiler using the Embedded Sass protocol.
homepage https://github.com/sass-contrib/sass-embedded-host-ruby
checksums rmd160 c7e0b4abf893245fdc00d3690c628e179977de8f \
sha256 57dbc3409e2c0a2c581a4c9945c2bd72ec88e71ec98017bd02dd1da8a76b22f4 \
size 1046528
# The source gem builds a native extension whose Rakefile downloads the
# dart-sass binary from GitHub at build time
# (https://trac.macports.org/ticket/74205).
# Since we need a binary anyway, use the precompiled platform gems
# instead so that we do not fetch during the build phase.
supported_archs x86_64 arm64
universal_variant no
if {${configure.build_arch} eq "arm64"} {
set gem_platform arm64-darwin
checksums rmd160 f72de88f3c6e9932b6b7a0cc62c8c0a11fb91cbc \
sha256 9fed684380b49499dfc856aba0d026a0748f924bd78044ffff2bae1537aea73e \
size 4178944
} else {
set gem_platform x86_64-darwin
checksums rmd160 13a26cab12012463bba43e8de0fca9bcd6ff6f72 \
sha256 20ff4afd7c052b3f8d7b4abe511e8114985a07dff7616750a43ee1fc2759fb28 \
size 4410880
}
distname sass-embedded-${version}-${gem_platform}
worksrcdir sass-embedded-${version}
if {${name} ne ${subport}} {
depends_run-append \