class Xezat::Detector::Python38Docutils
Public Instance Methods
detect(variables)
click to toggle source
# File lib/xezat/detector/python38-docutils.rb, line 8 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.strip.start_with?('AC_CHECK_PROG') && line.index('rst2man').is_a?(Integer) end end if variables.key?(:_meson_CYGCLASS_) File.foreach(File.join(variables[:S], 'meson.build')) do |line| return true if line.strip.index('rst2man').is_a?(Integer) end end false end