| 1 |
Description: point to framework below /usr/share |
| 2 |
Register system shared install location, and support direct Sass use. |
| 3 |
Author: Jonas Smedegaard <[email protected]> |
| 4 |
Last-Update: 2017-01-22 |
| 5 |
|
| 6 |
--- a/lib/compass/blend-modes.rb |
| 7 |
+++ b/lib/compass/blend-modes.rb |
| 8 |
@@ -1,7 +1,14 @@ |
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
+base_directory = File.expand_path('/usr/share/compass/frameworks/blend-modes') |
| 18 |
+stylesheets_path = File.join(base_directory, 'stylesheets') |
| 19 |
+templates_path = File.join(base_directory, 'templates') |
| 20 |
+ |
| 21 |
+if (defined? Compass) |
| 22 |
+ Compass::Frameworks.register( |
| 23 |
+ 'blend-modes', |
| 24 |
+ :path => base_directory |
| 25 |
+ ) |
| 26 |
+else |
| 27 |
+ ENV["SASS_PATH"] = [ENV["SASS_PATH"], stylesheets_path].compact.join(File::PATH_SEPARATOR) |
| 28 |
+end |
| 29 |
+ |
| 30 |
+require 'compass/blend-modes/version' |
| 31 |
--- a/lib/compass-blend-modes.rb |
| 32 |
+++ b/lib/compass-blend-modes.rb |
| 33 |
@@ -1,2 +1 @@ |
| 34 |
|
| 35 |
require 'compass/blend-modes' |
| 36 |
|
| 37 |
--- a/compass-blend-modes.gemspec |
| 38 |
+++ b/compass-blend-modes.gemspec |
| 39 |
@@ -19,5 +19,5 @@ |
| 40 |
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) } |
| 41 |
s.require_paths = ["lib"] |
| 42 |
|
| 43 |
|
| 44 |
+ s.add_dependency('sass', ['~>3.3']) |
| 45 |
end |
| 46 |
|