- # fowners in src_install doesn't work for owner/group portage:
- # merging changes this owner/group back to root.
- use prefix || chown portage:portage "${EROOT}var/cache/${PN}"
+ test -d "${EROOT}var/cache/${PN}" || {
+ mkdir "${EROOT}var/cache/${PN}"
+ use prefix || chown portage:portage "${EROOT}var/cache/${PN}"
+ }