Sha256: 1e9ea5ffb1112acf0b6409d484f27c91d7de3c35512985a4e5a48bcae91d88fb

Contents?: true

Size: 740 Bytes

Versions: 13

Compression:

Stored size: 740 Bytes

Contents

# frozen_string_literal: true

namespace :libsass do
  desc "Compile libsass"
  task :compile do
    if Dir.pwd.end_with?('/ext')
      libsass_path = "libsass"
    else
      libsass_path = "ext/libsass"
    end

    cd libsass_path do
      Rake::Task["lib/libsass.so"].invoke
    end
  end

  file "Makefile" do
    sh "git submodule update --init"
  end

  file "lib/libsass.so" => "Makefile" do
    make_program = ENV['MAKE']
    make_program ||= case RUBY_PLATFORM
                     when /mswin/
                       'nmake'
                     when /(bsd|solaris)/
                       'gmake'
                     else
                       'make'
                     end
    sh "#{make_program} lib/libsass.so"
  end
end

Version data entries

13 entries across 13 versions & 3 rubygems

Version Path
files.com-1.0.55 docs/vendor/bundle/ruby/2.5.0/gems/sassc-2.0.0/lib/tasks/libsass.rb
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/sassc-2.0.1/lib/tasks/libsass.rb
zuora_connect_ui-0.9.2 vendor/ruby/2.6.0/gems/sassc-2.0.1/lib/tasks/libsass.rb
zuora_connect_ui-0.9.1 vendor/ruby/2.6.0/gems/sassc-2.0.1/lib/tasks/libsass.rb
zuora_connect_ui-0.9.0 vendor/ruby/2.6.0/gems/sassc-2.0.1/lib/tasks/libsass.rb
zuora_connect_ui-0.8.3 vendor/ruby/2.6.0/gems/sassc-2.0.1/lib/tasks/libsass.rb
zuora_connect_ui-0.8.2 vendor/ruby/2.6.0/gems/sassc-2.0.1/lib/tasks/libsass.rb
zuora_connect_ui-0.8.1 vendor/ruby/2.6.0/gems/sassc-2.0.1/lib/tasks/libsass.rb
zuora_connect_ui-0.8.0 vendor/ruby/2.6.0/gems/sassc-2.0.1/lib/tasks/libsass.rb
zuora_connect_ui-0.7.1 vendor/ruby/2.6.0/gems/sassc-2.0.1/lib/tasks/libsass.rb
zuora_connect_ui-0.7.0 vendor/ruby/2.6.0/gems/sassc-2.0.1/lib/tasks/libsass.rb
sassc-2.0.1 lib/tasks/libsass.rb
sassc-2.0.0 lib/tasks/libsass.rb