Группа :: Разработка/Ruby
Пакет: gem-sassc
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: use-system-libsass.patch
Скачать
Скачать
--- a/sassc.gemspec 2020-06-02 13:09:54.000000000 +0000
+++ b/sassc.gemspec 2020-12-09 15:03:44.820000000 +0000
@@ -40,12 +40,6 @@ Gem::Specification.new do |spec|
gem_dir = File.expand_path(File.dirname(__FILE__)) + "/"
libsass_dir = File.join(gem_dir, 'ext', 'libsass')
- if !File.directory?(libsass_dir) ||
- # '.', '..', and possibly '.git' from a failed checkout:
- Dir.entries(libsass_dir).size <= 3
- Dir.chdir(__dir__) { system('git submodule update --init') } or
- fail 'Could not fetch libsass'
- end
# Write a VERSION file for non-binary gems (for `SassC::Native.version`).
if File.exist?(File.join(libsass_dir, '.git'))
--- a/ext/extconf.rb 2020-12-09 14:56:14.362000000 +0000
+++ b/ext/extconf.rb 2020-12-09 14:59:16.634000000 +0000
@@ -3,9 +3,10 @@
gem_root = File.expand_path('..', __dir__)
libsass_dir = File.join(gem_root, 'ext', 'libsass')
-if !File.directory?(libsass_dir) ||
+if !ARGV.include?('--use-system-libraries') &&
+ (!File.directory?(libsass_dir) ||
# '.', '..', and possibly '.git' from a failed checkout:
- Dir.entries(libsass_dir).size <= 3
+ Dir.entries(libsass_dir).size <= 3)
Dir.chdir(gem_root) { system('git submodule update --init') } or
fail 'Could not fetch libsass'
end