+++ This bug was initially created as a clone of Bug #297371 +++ "songidx" is a helper application to the "songs" package, and provides the indexing functionality (ToC etc). When texlive-music in installed with USE="-doc -source", the "songidx" files are not installed. When texlive-music in installed with USE="doc -source", the "songidx" sources are installed at /usr/share/texmf-dist/doc/latex/songs/songidx and can be manually compiled by the user from there. When looking at the latest upstream source (v3.0, while texlive 2017 provides v2.14) for the songs package, they have done a rewrite of the functionality in lua: http://songs.sourceforge.net/history.html Seeing that Gentoo already wraps some lua scripts I suggest doing the same with that script from that upstream source, once it it included in texlive (2018 AFAICS does). Until then, compile and install a binary version from texmf-dist/doc/latex/songs/songidx for versions < songs-v3.0/texlive-2018
For reference, this is what I do in my overlay for the <=2017 version: --- gentoo/dev-texlive/texlive-music/texlive-music-2017.ebuild 2018-03-25 14:08:59.000000000 +0200 +++ devel/dev-texlive/texlive-music/texlive-music-2017.ebuild 2018-05-05 18:11:23.263459766 +0200 @@ -13,7 +13,7 @@ LICENSE=" GPL-1 GPL-2 GPL-3 LGPL-2.1 LPPL-1.2 LPPL-1.3 MIT " SLOT="0" KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris" -IUSE="" +IUSE="+doc" DEPEND=">=dev-texlive/texlive-latex-2017 !<app-text/texlive-core-2011 !<dev-texlive/texlive-pictures-2015 @@ -29,3 +29,14 @@ texmf-dist/scripts/lilyglyphs/lily-image-commands.py texmf-dist/scripts/lilyglyphs/lily-rebuild-pdfs.py " + +src_compile() { + texlive-module_src_compile + cd "${S}"/texmf-dist/doc/latex/songs/songidx + emake +} +src_install() { + texlive-module_src_install + cd "${S}"/texmf-dist/doc/latex/songs/songidx + dobin songidx +}
should be fine now.