Debian Codegraph @

debian/patches/2001-frameworks-below-usr-share.patch

raw symbols SCIP
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 -require 'compass/blend-modes/version'
10 -
11 -module Compass
12 - module BlendModes
13 - Compass::Frameworks.register('blend-modes', :path => "#{File.dirname(__FILE__)}/../..")
14 - end
15 -end
16 \ No newline at end of file
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 -require 'compass' # Ensure Compass
35 require 'compass/blend-modes'
36 \ No newline at end of file
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 - s.add_dependency("compass")
44 + s.add_dependency('sass', ['~>3.3'])
45 end
46 \ No newline at end of file