Sha256: 71e144d992480de7a33fb77bba4fc1393d6a95b794d0d22ab785484169de7433

Contents?: true

Size: 643 Bytes

Versions: 223

Compression:

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

223 entries across 223 versions & 1 rubygems

Version Path
autobuild-1.10.0.rc12 lib/autobuild/packages/pkgconfig.rb
autobuild-1.10.0.rc11 lib/autobuild/packages/pkgconfig.rb
autobuild-1.9.5 lib/autobuild/packages/pkgconfig.rb
autobuild-1.9.4 lib/autobuild/packages/pkgconfig.rb
autobuild-1.10.0.rc10 lib/autobuild/packages/pkgconfig.rb
autobuild-1.9.4.rc1 lib/autobuild/packages/pkgconfig.rb
autobuild-1.10.0.rc9 lib/autobuild/packages/pkgconfig.rb
autobuild-1.10.0.rc8 lib/autobuild/packages/pkgconfig.rb
autobuild-1.10.0.rc7 lib/autobuild/packages/pkgconfig.rb
autobuild-1.10.0.rc6 lib/autobuild/packages/pkgconfig.rb
autobuild-1.10.0.rc5 lib/autobuild/packages/pkgconfig.rb
autobuild-1.10.0.rc4 lib/autobuild/packages/pkgconfig.rb
autobuild-1.10.0.rc3 lib/autobuild/packages/pkgconfig.rb
autobuild-1.10.0.rc2 lib/autobuild/packages/pkgconfig.rb
autobuild-1.9.3 lib/autobuild/packages/pkgconfig.rb
autobuild-1.9.3.b4 lib/autobuild/packages/pkgconfig.rb
autobuild-1.9.3.b3 lib/autobuild/packages/pkgconfig.rb
autobuild-1.9.3.b2 lib/autobuild/packages/pkgconfig.rb
autobuild-1.9.3.b1 lib/autobuild/packages/pkgconfig.rb
autobuild-1.10.0.rc1 lib/autobuild/packages/pkgconfig.rb