forked from sass/sassc-ruby
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update libsass to master + other fixes
Updates libsass to master to incorporate fixes for: 1. The :not selector. Fixes sass#91. sass/libsass#2697 2. Default precision changed to 10. sass/libsass#2716 3. Now builds with `cc` instead of hard-coding `gcc`. sass/libsass#2707 4. Building on Linux and Solaris. sass/libsass#2720 Also: 1. Adds Windows RubyInstaller compilation support via `rake-compiler`. Fixes sass#18. 2. Fixes `load_paths` separator on Windows. Fixes sass#93. 3. Changes the location of `libsass.so` from `ext/` to `lib/`. Fixes sass#95.
- Loading branch information
Showing
13 changed files
with
69 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,5 +12,6 @@ | |
*.so | ||
*.o | ||
*.a | ||
*.gem | ||
mkmf.log | ||
vendor/bundle |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
[submodule "ext/libsass"] | ||
path = ext/libsass | ||
url = git://github.com/sass/libsass.git | ||
url = https://github.com/sass/libsass.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# frozen_string_literal: true | ||
|
||
gem_root = File.expand_path('..', __dir__) | ||
libsass_dir = File.join(gem_root, 'ext', 'libsass') | ||
|
||
if !File.directory?(libsass_dir) || | ||
# '.', '..', and possibly '.git' from a failed checkout: | ||
Dir.entries(libsass_dir).size <= 3 | ||
Dir.chdir(gem_root) { system('git submodule update --init') } or | ||
fail 'Could not fetch libsass' | ||
end | ||
|
||
File.write 'Makefile', <<-MAKEFILE | ||
ifndef DESTDIR | ||
LIBSASS_OUT = #{gem_root}/lib/sassc/libsass.so | ||
else | ||
LIBSASS_OUT = $(DESTDIR)$(PREFIX)/libsass.so | ||
endif | ||
SUB_DIR := #{libsass_dir} | ||
SUB_TARGET := lib/libsass.so | ||
libsass.so:#{' clean' if ENV['CLEAN']} | ||
$(MAKE) -C '$(SUB_DIR)' lib/libsass.so | ||
cp '$(SUB_DIR)/lib/libsass.so' libsass.so | ||
strip libsass.so | ||
install: libsass.so | ||
cp libsass.so '$(LIBSASS_OUT)' | ||
clean: | ||
$(MAKE) -C '$(SUB_DIR)' clean | ||
rm -f '$(LIBSASS_OUT)' libsass.so | ||
.PHONY: clean install | ||
MAKEFILE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters