Sha256: 011ac729160b2ea3f3a406e23e90957bb505a2700f5ced1453749b2c2e03abae
Contents?: true
Size: 531 Bytes
Versions: 13
Compression:
Stored size: 531 Bytes
Contents
require 'dep_analyzer' # :stopdoc: class FreebsdAnalyzer < DepAnalyzer def installed # don't cache so it updates every delete puts "scanning installed ports" `pkg_info`.split(/\n/).map { |s| s.split.first } end def outdated # don't cache so it updates every delete puts "scanning outdated ports" `pkg_version -vL=`.split(/\n/)[1..-1].map { |s| s.split.first } end def deps port cache("#{port}.deps") { `pkg_info -r #{port}` }.grep(/Dependency:/).map { |s| s.split[1] } end end
Version data entries
13 entries across 13 versions & 1 rubygems