I'm using gtkmm-2.4.11 and noticed two doc related issues with it: It installs the documentation in /usr/share/doc/gtkmm-2.4/docs instead /usr/share/doc/${PF} as it should and moreover it installs 40MB of docs I'm not interested in at all. Adding doc to IUSE and the code below to the ebuild worked fine for me and should work with the latest ebuild as well. It would be nice, if you'd apply it. src_unpack() { unpack ${A} if ! use doc ; then local SUBDIRS=$(grep "SUBDIRS =.*docs" ${S}/Makefile.in) sed -i -e "s:${SUBDIRS}:${SUBDIRS/docs/}:" ${S}/Makefile.in fi }
I've tested this on gtkmm-2.8.1, and it mostly works. It still creates /usr/share/doc/gtkmm-2.4/tests, which can be fixed by changing the sed line to: sed -i -e "s:${SUBDIRS}:${SUBDIRS/docs tests/}:" ${S}/Makefile.in
The problem is still there with gtkmm 2.8.3. 32MB of unwanted documentation even when USE=-doc= is used. Is it possible to integrate these changes into the current ebuild?
the 2.10.x series has a doc switch that is integrated with configure.
Hooray! :)