i checked man page and output of 'emerge --list-sets' and it seems theres no such option. I found this:
http://unix.stackexchange.com/questi...offline-use-of
{
# for every ebuild, convert its path into a valid atom name
find . -iname "*.ebuild" | sed -e 's_\./\([^/]\+\)/\([^/]\+\)/\(.*\).ebuild$_=\1/\3_g' > /tmp/all_ebuilds
# for every line of the file, start fetching the source code (or the data)
while read package; do emerge -f "$package"; done < /tmp/all_ebuilds
}
1 output line looks like this:
"./gvim/gvim-7.3.1214.ebuild"
, but it will do emerge for all ebuilds. If app has several ebuild files for different app version, all will be installed, not only newest - like when using only app name. Also it says (when executing emerge with this script) that "emerge by path is broken and may not always work!!!".
i have 2 ideas but have to figure out how to write it:
1)use names of all directories containing ebuild file(s)
2)extend the script above to cut 2nd (or 2nd from end?) "part" from the line using separating-character "/". So it would take from the line only "gvim". Is it always a rule that ebuilds directory has name = name of application?