mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 17:09:10 -07:00
dev-ruby/sass: add ruby34
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
This commit is contained in:
@@ -1 +1,2 @@
|
||||
DIST sass-3.7.4-ruby34-patches.tar.xz 9644 BLAKE2B 07d687ec39f0a9c031730f6cef4acf9c7458e2b892e24f02dd18b4bf7081e236d9bc73cfefe1be91500bef390a98e45a496021f6b56730b20cca5d34c291f052 SHA512 d4d43a0e143b7116214baf219fc60be4515dec116ef81ee683669bd90845724bc5d4caa547f6ad422f36530291d1390004c59db4aef6b1a2da87d92a27240c78
|
||||
DIST sass-3.7.4.tar.gz 401442 BLAKE2B 52abe37390282d2aead3eea6c2a049da529a5e96bac44b01ccded1e3c4d2c332d82f164da941413c0138fd3a94f59cda084d8fb724db87fc522f33dd7bc31adb SHA512 4bebb6ddc84e7f2687d9b801e6b30e897d83a46940249349d775e0139d1fca8ffd96d0976f4c35a7a0dba9ebf786883a70aff2ff002708e28b685a034634aaf2
|
||||
|
||||
67
dev-ruby/sass/sass-3.7.4-r3.ebuild
Normal file
67
dev-ruby/sass/sass-3.7.4-r3.ebuild
Normal file
@@ -0,0 +1,67 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
USE_RUBY="ruby32 ruby33 ruby34"
|
||||
|
||||
RUBY_FAKEGEM_TASK_DOC=""
|
||||
RUBY_FAKEGEM_DOCDIR="doc"
|
||||
RUBY_FAKEGEM_EXTRADOC="README.md"
|
||||
|
||||
RUBY_FAKEGEM_EXTRAINSTALL="rails init.rb VERSION VERSION_NAME"
|
||||
RUBY_FAKEGEM_GEMSPEC="sass.gemspec"
|
||||
|
||||
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
|
||||
https://dev.gentoo.org/~graaff/ruby-team/${P}-ruby34-patches.tar.xz"
|
||||
RUBY_S="ruby-sass-${PV}"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="$(ver_cut 1-2)"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux"
|
||||
IUSE="doc test"
|
||||
|
||||
ruby_add_bdepend "
|
||||
doc? ( >=dev-ruby/yard-0.5.3 )
|
||||
test? ( dev-ruby/minitest )
|
||||
"
|
||||
|
||||
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() {
|
||||
eapply ../000*
|
||||
|
||||
# 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
|
||||
|
||||
# Fix minitest deprecations
|
||||
sed -e 's/MiniTest/Minitest/' \
|
||||
-i test/test_helper.rb test/sass/test_helper.rb test/sass/*_test.rb test/sass/{scss,util}/*_test.rb || die
|
||||
}
|
||||
|
||||
each_ruby_test() {
|
||||
RUBOCOP=false ${RUBY} -S rake test:ruby || die
|
||||
}
|
||||
Reference in New Issue
Block a user