[code] #!/usr/bin/perl -w
my $dbpath = '/usr/portage';
my $pkgregex =
'^(.+?)'. # name
'-(\d+(?:\.\d+)*\w*)'. # version, eg 1.23.4a
'((?:(?:_alpha|_beta|_pre|_rc)\d*)?)'. # special suffix
'((?:-r\d+)?)$'; # revision, eg r12my $pkg = shift;
$depend = `source ${dbpath}/${pkg}; echo \${DEPEND}; echo \${RDEPEND}`;
print $depend;$useflags = `source /etc/make.conf; echo \${USE}`;
print $useflags;
[/code]This gets me a nice list of the packages that the ebuild depends on. As for the USE flags, I only get the ones defined in /etc/make.conf, not the full set. Is there an easy way to do this?
-- Andrew Gaffney
-- [EMAIL PROTECTED] mailing list
