sed fails because it can't find the Makefile. After inserting an "cd .." before sed the apetag-1.10.ebuild works. Reproducible: Always Steps to Reproduce:
Created attachment 171725 [details, diff] Inserts "cd .." before sed
Fixed in a different way.