lib/utilrb/pkgconfig.rb
# Returns the list of library directories listed in the Libs: section
# of the pkgconfig file
Returns the list of library directories listed in the Libs: section
of the pkgconfig file
Returns the list of library directories listed in the Libs : section of the pkgconfig file
def library_dirs
            result = Shellwords.shellsplit(libs_only_L).map { |v| v[2..-1] }
            if result.any?(&:empty?)
                raise Invalid.new(name), "empty link directory (-L without argument) found in pkg-config package #{name}"
            end
            result
        end
def library_dirs result = Shellwords . shellsplit ( libs_only_L ) . map { | v | v [ 2 .. - 1 ] } if result . any? ( & :empty? ) raise Invalid . new ( name ) , "empty link directory (-L without argument) found in pkg-config package #{name}" end result end
Returns the list of library directories listed in the Libs: section
of the pkgconfig file
Returns the list of library directories listed in the Libs : section of the pkgconfig file