Sha256: d2956ab930ed3912ad8c813ef449c94b0aeaa36e3a4fb7626c2368b49275f94f
Contents?: true
Size: 565 Bytes
Versions: 2
Compression:
Stored size: 565 Bytes
Contents
require 'find' require 'xezat/detectors' module Xezat module Detector class GobjectIntrospection DetectorManager::register(:'gobject-introspection', self) def detect(variables) Find::find(variables[:S]) do |file| if file.end_with?(File::SEPARATOR + 'configure.ac') || file.end_with?(File::SEPARATOR + 'configure.in') File::foreach(file) do |line| return true if line.lstrip.start_with?('GOBJECT_INTROSPECTION_CHECK') end end end false end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
xezat-0.0.4 | lib/xezat/detector/gobject-introspection.rb |
xezat-0.0.3 | lib/xezat/detector/gobject-introspection.rb |