Sha256: 3d3d78da46b108cb5d6e64517b633ab36e1c03f289ff2889d326800b561eca34

Contents?: true

Size: 466 Bytes

Versions: 3

Compression:

Stored size: 466 Bytes

Contents

# frozen_string_literal: true

require 'find'

module Xezat
  module Detector
    class BoostM4
      def detect(variables)
        Find.find(variables[:S]) do |file|
          next unless 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?('BOOST_REQUIRE')
          end
        end
        false
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
xezat-0.2.0 lib/xezat/detector/boost.m4.rb
xezat-0.1.2 lib/xezat/detector/boost.m4.rb
xezat-0.1.1 lib/xezat/detector/boost.m4.rb