When the minimal use flag is set, source is extracted into a different location but later it still expects it in the original location. Reproducible: Always Steps to Reproduce: 1. Install ZendFramework with USE="minimal" Actual Results: >>> Unpacking ZendFramework-1.12.9-minimal.tar.gz to /var/tmp/portage/dev-php/ZendFramework-1.12.9/work >>> Source unpacked in /var/tmp/portage/dev-php/ZendFramework-1.12.9/work * ERROR: dev-php/ZendFramework-1.12.9::gentoo failed (prepare phase): * The source directory '/var/tmp/portage/dev-php/ZendFramework-1.12.9/work/ZendFramework-1.12.9' doesn't exist ls /var/tmp/portage/dev-php/ZendFramework-1.12.9/work ZendFramework-1.12.9-minimal Expected Results: Successful install of ZendFramework
Placing the following outside src_prepare() near the top amongst other definitions will work. It doesn't work with the if case inside src_prepare(). S="${WORKDIR}/${P}-minimal"
Fixed. Thanks for the report