Created attachment 344206 [details]
Patch for existing mp3info-0.8.5a.ebuild
media-sound/mp3info-0.8.5a has -lncurses hard-coded into the Makefile causing it to fail when libncurses is split into libncurses.so and libtinfo.so. This happens when sys-libs/ncurses is emerged with the tinfo USE flag set.
A trivial solution is to use sed and pkg-config in src_prepare to change the LIBS variable to include -ltinfo when necessary.
Created attachment 344208 [details]
pkg-config can't be called directly like that because it will override $PKG_CONFIG (and thus, $CHOST) and cause cross-compilers to fail
look at the /usr/portage/eclass/toolchain-funcs.eclass and the tc-getPKG_CONFIG function
$($(tc-getPKG_CONFIG) --libs-only-L ncurses)
Created attachment 344220 [details, diff]
Fixed patch for existing mp3info-0.8.5a.ebuild as per comment 2
Created attachment 344222 [details]
Fixed without revision bump.