summaryrefslogtreecommitdiff
path: root/dev-ruby/sass
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-04-07 17:30:28 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-04-07 17:30:28 +0100
commitdebb2c431b40a6b4750a39956cc5fcfa5a4a6476 (patch)
tree5c5fceb399f1dddaf02d4d8da8f674106cede374 /dev-ruby/sass
parenta17b25a10359070f9527893d861369d378021aa9 (diff)
gentoo auto-resync : 07:04:2023 - 17:30:27
Diffstat (limited to 'dev-ruby/sass')
-rw-r--r--dev-ruby/sass/Manifest2
-rw-r--r--dev-ruby/sass/files/sass-3.7.4-use-listen-not-sass-listen.patch14
-rw-r--r--dev-ruby/sass/sass-3.7.4-r2.ebuild60
3 files changed, 76 insertions, 0 deletions
diff --git a/dev-ruby/sass/Manifest b/dev-ruby/sass/Manifest
index a5ca79d06622..eb23e634f1d2 100644
--- a/dev-ruby/sass/Manifest
+++ b/dev-ruby/sass/Manifest
@@ -1,3 +1,5 @@
+AUX sass-3.7.4-use-listen-not-sass-listen.patch 479 BLAKE2B 8ce894c58bf4529cf2aaea3a5e247731ae1a56afafec17f7dd2df6e35d7de0ff9330d4fe2bb088fd3dbcbad3503c20afc65242228da0db4c81de356aa8a999dd SHA512 9dbad64cc59515806439ce5528875e258c2b5731d58a47db2c991e7d4e6e0e9e9bdad654abb435f64b3c9b075979f9e3d89266a8aa4ae817252ab3402f3d3b7e
DIST sass-3.7.4.tar.gz 401442 BLAKE2B 52abe37390282d2aead3eea6c2a049da529a5e96bac44b01ccded1e3c4d2c332d82f164da941413c0138fd3a94f59cda084d8fb724db87fc522f33dd7bc31adb SHA512 4bebb6ddc84e7f2687d9b801e6b30e897d83a46940249349d775e0139d1fca8ffd96d0976f4c35a7a0dba9ebf786883a70aff2ff002708e28b685a034634aaf2
EBUILD sass-3.7.4-r1.ebuild 1177 BLAKE2B 038199a06bba439eac0f11df3bc5dfdb56b8c42dfcaa78b23189427afcf869149515635a6de548290290a4311bdde06c4f289118149ff0f7764a8708418b716a SHA512 67771fd0972fd328504f2bab9a95433b8310bece1a076c29366a2b3371ccf13cc2615b0d822404d85eb0924c6894d44d7d3e5c01933dc99d5ef82a1e3b42a7d8
+EBUILD sass-3.7.4-r2.ebuild 1666 BLAKE2B 4bd5790bd19c523fbbc2f2a76dcc8c48b9fc7ab9204ab83fc7b08d18c97792aa46a0dff96456d5ae0775b7231bc3895c3a9d305e155fbe0f1a8d814f1748bbc4 SHA512 556277e4c305947e0b512a84510bde7bbca420e933847e9f5ba49804755f56ea4f75910e1e62882bdca02f0e0892c90cb2e4c15e7f82949f6ed0801d1e359806
MISC metadata.xml 324 BLAKE2B d12b9c73747bb4ab333b3bbe381d713c78d12bc5ea5c526a17744ac10a81a1cfc0dbb5b74bd507fb9bdd9ff7f180aaa24affb16cc9fc18463030749c8ce3e078 SHA512 fd1ffcf3514360716ad7fc513010f5da118896fe99d0949d8249e072ca8b554ff7ddea9bb4cb79e8a71e7eb963ae39943b613260166d6f56d18120c9283f22e5
diff --git a/dev-ruby/sass/files/sass-3.7.4-use-listen-not-sass-listen.patch b/dev-ruby/sass/files/sass-3.7.4-use-listen-not-sass-listen.patch
new file mode 100644
index 000000000000..17d2aa9217c2
--- /dev/null
+++ b/dev-ruby/sass/files/sass-3.7.4-use-listen-not-sass-listen.patch
@@ -0,0 +1,14 @@
+https://src.fedoraproject.org/rpms/rubygem-sass/blob/rawhide/f/rubygem-sass-3.5.6-use-listen.patch
+--- a/lib/sass/plugin/compiler.rb
++++ b/lib/sass/plugin/compiler.rb
+@@ -377,8 +377,8 @@ module Sass::Plugin
+
+ # This is mocked out in compiler_test.rb.
+ def create_listener(*args, &block)
+- require 'sass-listen'
+- SassListen.to(*args, &block)
++ require 'listen'
++ Listen.to(*args, &block)
+ end
+
+ def remove_redundant_directories(directories)
diff --git a/dev-ruby/sass/sass-3.7.4-r2.ebuild b/dev-ruby/sass/sass-3.7.4-r2.ebuild
new file mode 100644
index 000000000000..43ee9a37a950
--- /dev/null
+++ b/dev-ruby/sass/sass-3.7.4-r2.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+USE_RUBY="ruby27 ruby30 ruby31 ruby32"
+
+RUBY_FAKEGEM_TASK_DOC=""
+RUBY_FAKEGEM_DOCDIR="doc"
+RUBY_FAKEGEM_EXTRADOC="README.md"
+
+RUBY_FAKEGEM_EXTRAINSTALL="rails init.rb VERSION VERSION_NAME"
+
+inherit ruby-fakegem
+
+DESCRIPTION="An extension of CSS3, adding nested rules, variables, mixins, and more"
+HOMEPAGE="https://sass-lang.com/"
+SRC_URI="https://github.com/sass/ruby-sass/archive/${PV}.tar.gz -> ${P}.tar.gz"
+RUBY_S="ruby-sass-${PV}"
+
+LICENSE="MIT"
+SLOT="$(ver_cut 1-2)"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~x86 ~amd64-linux"
+
+ruby_add_bdepend "doc? ( >=dev-ruby/yard-0.5.3 )"
+
+ruby_add_rdepend "
+ !!<dev-ruby/sass-3.4.25-r1:3.4
+ !!<dev-ruby/sass-3.5.7-r1:3.5
+ dev-ruby/listen
+"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-3.7.4-use-listen-not-sass-listen.patch
+)
+
+# tests could use `less` if we had it
+
+all_ruby_prepare() {
+ # Match activesupport which gets dragged in
+ sed -i -e '/minitest.*>= 5/s:.*:&, "< 5.16":' ${PN}.gemspec || die
+ sed -i -e '/minitest/s:6.0:5.16:' Gemfile || die
+ sed -i -e "/require 'minitest\/autorun'/igem 'minitest', '< 5.16'" test/test_helper.rb || die
+
+ # We use dev-ruby/listen now instead of dev-ruby/sass-listen
+ sed -i \
+ -e "/sass-listen/s:, '~> 4.0.0'::" \
+ -e "s:sass-listen:listen:" \
+ ${PN}.gemspec || die
+
+ # Don't require maruku as markdown provider but let yard decide.
+ sed -i -e '/maruku/d' .yardopts || die
+
+ # Keep VERSION_DATE around since we don't create a new package
+ sed -i -e '/at_exit/,/end/ s:^:#:' Rakefile || die
+}
+
+each_ruby_test() {
+ RUBOCOP=false ${RUBY} -S rake test:ruby || die
+}