From time to time we get reports about gnome2.eclass users not installing in proper location. I think we should do the same as autotools-utils.eclass is doing: if "${ECONF_SOURCE}"/configure --help 2>&1 | grep -q '^ *--docdir='; then econfargs+=( --docdir="${EPREFIX}"/usr/share/doc/${PF} ) fi
Any example of package not complying ?
For now I see anjuta, bless, entangle, muine and osm-gps-map appending it. But I noticed this when reviewing our list of assigned bugs and seeing bug 443950. Then, I thought that would be better to fix it at eclass level to prevent we needing to wait for people reporting this kind of problems and we fixing them per ebuild
FTR, I have postinst hooks that detect this kind of problem.
I am unsure if relying on every dev using gnome2.eclass making use of that hook to know when to append the option to their ebuild :| Also, since (on Gentoo, even if I still don't see much advantage of having that rule), we need to set docdir to that location, I think would be better to set it to that by default
I wonder how that affects packages providing gtk-doc. Also, this would imply we need to cleanup some packages doing dodoc because it would install docs twice, right ?
(In reply to Gilles Dartiguelongue from comment #5) > I wonder how that affects packages providing gtk-doc. Will need to check this as I don't know if gtk-doc follows this switch > Also, this would imply we need to cleanup some packages doing dodoc because > it would install docs twice, right ? No, dodoc is already installing that files in the proper localization: /usr/lib64/portage/bin/ebuild-helpers/dodoc dir="${ED}usr/share/doc/${PF}/${_E_DOCDESTTREE_}" if [ ! -d "${dir}" ] ; then install -d "${dir}" fi
I think gtk-doc is handled in a different way, look for example to goffice: - docdir defaults to /usr/share/doc/goffice - gtk-doc are still being installed in /usr/share/gtk-doc/ Reading gtk-doc.m4 looks like it follows --with-html-dir: AS_HELP_STRING([--with-html-dir=PATH], [path to installed docs]),, [with_html_dir='${datadir}/gtk-doc/html'])
And then? :/
(as talked on IRC)
*** Bug 501018 has been marked as a duplicate of this bug. ***
+ 11 Feb 2014; Pacho Ramos <pacho@gentoo.org> gnome2.eclass: + Pass --docdir with proper directory, bug #482646 +