Sha256: 9fe84fbc42968ee47d44068cc0c9f1e4e48045be85ec9f8bb1cf22a8d5327619

Contents?: true

Size: 448 Bytes

Versions: 5

Compression:

Stored size: 448 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::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

5 entries across 5 versions & 1 rubygems

Version Path
xezat-0.3.1 lib/xezat/detector/boost.m4.rb
xezat-0.3.0 lib/xezat/detector/boost.m4.rb
xezat-0.2.3 lib/xezat/detector/boost.m4.rb
xezat-0.2.2 lib/xezat/detector/boost.m4.rb
xezat-0.2.1 lib/xezat/detector/boost.m4.rb