--- gnuradio-3.6.1-r1.ebuild.orig 2012-08-07 20:45:13.961339977 +0100 +++ gnuradio-3.6.1-r1.ebuild 2012-08-07 20:45:28.857639012 +0100 @@ -83,11 +83,12 @@ python_convert_shebangs -q -r 2 "${S}" # Useless UI element would require qt3support, bug #365019 sed -i '/qPixmapFromMimeSource/d' "${S}"/gr-qtgui/lib/spectrumdisplayform.ui || die + sed -i "s:\${DOCVER}:${PVR}:" CMakeLists.txt || die base_src_prepare } src_configure() { - # TODO: docs are installed to /usr/share/doc/${PN} not /usr/share/doc/${PF} + # TODO: # SYSCONFDIR/GR_PREFSDIR default to install below CMAKE_INSTALL_PREFIX mycmakeargs=( $(cmake-utils_use_enable alsa GR_AUDIO_ALSA) @@ -122,10 +123,15 @@ if use examples ; then dodir /usr/share/doc/${PF}/ mv "${ED}"/usr/share/${PN}/examples "${ED}"/usr/share/doc/${PF}/ || die + docompress -x /usr/share/doc/${PF}/examples else # It seems that the examples are always installed rm -rf "${ED}"/usr/share/${PN}/examples || die fi + + if use doc ; then + rm -rf "${ED}"/usr/share/doc/${PF}/xml || die + fi # We install the mimetypes to the correct locations from the ebuild rm -rf "${ED}"/usr/share/${PN}/grc/freedesktop || die