22require 'pathname'
33require File . expand_path '../paths' , __FILE__
44
5- module Libv8Node
5+ module Libv8 ; end
6+
7+ module Libv8 ::Node
68 class Location
79 def install!
810 File . open ( Pathname ( __FILE__ ) . dirname . join ( '.location.yml' ) , "w" ) do |f |
@@ -20,24 +22,24 @@ def self.load!
2022 class Vendor < Location
2123 def install!
2224 require File . expand_path '../builder' , __FILE__
23- builder = Libv8Node ::Builder . new
25+ builder = Libv8 :: Node ::Builder . new
2426 exit_status = builder . build_libv8!
2527 super if exit_status == 0
2628 verify_installation!
2729 return exit_status
2830 end
2931
3032 def configure ( context = MkmfContext . new )
31- context . incflags . insert 0 , Libv8Node ::Paths . include_paths . map { |p | "-I#{ p } " } . join ( " " ) + " "
32- context . ldflags . insert 0 , Libv8Node ::Paths . object_paths . join ( " " ) + " "
33+ context . incflags . insert 0 , Libv8 :: Node ::Paths . include_paths . map { |p | "-I#{ p } " } . join ( " " ) + " "
34+ context . ldflags . insert 0 , Libv8 :: Node ::Paths . object_paths . join ( " " ) + " "
3335 end
3436
3537 def verify_installation!
36- include_paths = Libv8Node ::Paths . include_paths
38+ include_paths = Libv8 :: Node ::Paths . include_paths
3739 unless include_paths . detect { |p | Pathname ( p ) . join ( 'v8.h' ) . exist? }
3840 fail HeaderNotFound , "Unable to locate 'v8.h' in the libv8 header paths: #{ include_paths . inspect } "
3941 end
40- Libv8Node ::Paths . object_paths . each do |p |
42+ Libv8 :: Node ::Paths . object_paths . each do |p |
4143 fail ArchiveNotFound , p unless File . exist? p
4244 end
4345 end
@@ -69,7 +71,7 @@ def initialize(*args)
6971However, your system version of v8 could not be located.
7072
7173Please make sure your system version of v8 that is compatible
72- with #{ Libv8Node ::VERSION } installed. You may need to use the
74+ with #{ Libv8 :: Node ::VERSION } installed. You may need to use the
7375--with-v8-dir option if it is installed in a non-standard location
7476EOS
7577 end
0 commit comments