Skip to content
This repository has been archived by the owner on Jun 26, 2018. It is now read-only.

Commit

Permalink
checkout libsass during extconf
Browse files Browse the repository at this point in the history
  • Loading branch information
nc committed Sep 7, 2013
1 parent 56e9ed9 commit 853ff17
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
17 changes: 17 additions & 0 deletions extconf.rb
@@ -0,0 +1,17 @@
require 'mkmf'
require 'fileutils'
# .. more stuff
#$LIBPATH.push(Config::CONFIG['libdir'])
$CFLAGS << " #{ENV["CFLAGS"]}"
$LIBS << " #{ENV["LIBS"]}"

if Dir[File.expand_path('ext/libsass/*', __FILE__)].empty?
Dir.chdir(File.expand_path('.', __FILE__)) do
xsystem('git submodule init')
xsystem('git submodule update')
end
end

Dir.chdir(File.expand_path('ext/libsass', __FILE__)) do
create_makefile("libsass")
end
4 changes: 2 additions & 2 deletions sassc.gemspec
Expand Up @@ -9,12 +9,12 @@ $gemspec = Gem::Specification.new do |gem|
gem.summary = %q{libsass wrapper}
gem.homepage = "http://github.com/hcatlin/sassruby"

gem.files = Dir["*", "ext/**/*", "lib/sassc.rb", "lib/sassc/*", "lib/sassc/**/*"]
gem.files = `git ls-files`.split("\n")
gem.executables = []#gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})

gem.platform = Gem::Platform::RUBY
gem.extensions = ["ext/libsass/extconf.rb"]
gem.extensions = ["extconf.rb"]
gem.require_paths = ["lib", "exts"]
gem.version = "0.2"#SassC::VERSION

Expand Down

0 comments on commit 853ff17

Please sign in to comment.