This bug is a "placeholder" because there is too many different bug reports which requires a timidity ebuild rewrite.
I don't have access to a gentoo linux system right now so I can't fix it for sure, but I'll take a look to start the work at least.
I'll make this bug block the bugs which needs the rewrite, so when the rewrite is done we'll know that they can be closed.
Hope this won't bother anybody.
Bug #77286 also has already a patch for a little rewrite.
Change done for bug #48761 should be reverted or edited because seems to be already fixed upstream.
Created attachment 53929 [details, diff]
Ok here is the patch. It adds the useflag for formats as stated by bug #77286,
it moves gtk dependency to 2.0 (as it seems the one configure checks for), it
removes the use arts || use gtk stuff (as I said, it's fixed upstream), it
clean ups econf call, it cleanup conditional and uses newinitd newconfd to
install init.d and conf.d scripts.
Created attachment 54095 [details, diff]
Cleanup patch - 2nd try
Ok this time without X-dependent gtk, tcltk and motif. Also added conditional
dependency on ncurses (I totally forgot it before).
fixed in portage, thanks.