The summary says it all. Patch for ebuild will follow.
Created attachment 124002 [details, diff] Proposed patch for agda-1.0.2.ebuild
BTW, herd "math-proof" was not accepted as bug assignee by bugzilla.
No reaction from maintainers for three month, so I committed the fix. Closing.