I'm reporting this bug because the package in summary fails to build when forcing --as-needed on through spec files (check out http://blog.flameeyes.eu/2008/11/14/problems-and-mitigation-strategies-for-as-needed for details).
Check the attached build log.
Created attachment 173161 [details]
Created attachment 174495 [details, diff]
Created attachment 174496 [details, diff]
these patches should solve the problem.
i've also added EAPI 2 to check if imlib2 was build with X useflag.
Created attachment 174519 [details, diff]
i forgot using src_prepare instead of src_unpack :)