Sha256: 6c31a092931c89ad909b9077d760e697ae2d56ffb45850eaa7ca36266bb5abe8
Contents?: true
Size: 762 Bytes
Versions: 7
Compression:
Stored size: 762 Bytes
Contents
require 'autobuild/pkgconfig' module Autobuild class InstalledPkgConfig < Package attr_reader :pkgconfig attr_reader :prefix def initialize(name) @pkgconfig = PkgConfig.new(name) @prefix = @pkgconfig.prefix super end def installstamp std_stamp = super return std_stamp if File.file?(std_stamp) pcfile = File.join(pkgconfig.prefix, "lib", "pkgconfig", "#{name}.pc") if !File.file?(pcfile) raise "cannot find the .pc file for #{name}, tried #{pcfile}" end pcfile end end def self.installed_pkgconfig(name, &block) InstalledPkgConfig.new(name, &block) end end
Version data entries
7 entries across 7 versions & 1 rubygems