commit:     182d0bcc12df904e8ab40dcb902c555a1aed34e5
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Aug 15 00:25:37 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Aug 15 00:26:16 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=182d0bcc

sys-apps/kmod: workaround broken man dist logic

The man pages are in the dist but if they're not set to be *built*,
the directory isn't recursed into. Workaround that in src_install.

Closes: https://bugs.gentoo.org/937942
Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-apps/kmod/kmod-33.ebuild   | 10 ++++++++++
 sys-apps/kmod/kmod-9999.ebuild | 10 ++++++++++
 2 files changed, 20 insertions(+)

diff --git a/sys-apps/kmod/kmod-33.ebuild b/sys-apps/kmod/kmod-33.ebuild
index 3b1e8cdb68ca..b9af14296739 100644
--- a/sys-apps/kmod/kmod-33.ebuild
+++ b/sys-apps/kmod/kmod-33.ebuild
@@ -91,12 +91,22 @@ src_configure() {
                $(use_with zstd)
        )
 
+       if [[ ${PV} != 9999 ]] ; then
+               # See src_install
+               myeconfargs+=( --disable-manpages )
+       fi
+
        econf "${myeconfargs[@]}"
 }
 
 src_install() {
        default
 
+       if [[ ${PV} != 9999 ]] ; then
+               # The dist logic is broken but the files are in there (bug 
#937942)
+               emake -C man DESTDIR="${D}" install
+       fi
+
        find "${ED}" -type f -name "*.la" -delete || die
 
        if use tools; then

diff --git a/sys-apps/kmod/kmod-9999.ebuild b/sys-apps/kmod/kmod-9999.ebuild
index 3b1e8cdb68ca..b9af14296739 100644
--- a/sys-apps/kmod/kmod-9999.ebuild
+++ b/sys-apps/kmod/kmod-9999.ebuild
@@ -91,12 +91,22 @@ src_configure() {
                $(use_with zstd)
        )
 
+       if [[ ${PV} != 9999 ]] ; then
+               # See src_install
+               myeconfargs+=( --disable-manpages )
+       fi
+
        econf "${myeconfargs[@]}"
 }
 
 src_install() {
        default
 
+       if [[ ${PV} != 9999 ]] ; then
+               # The dist logic is broken but the files are in there (bug 
#937942)
+               emake -C man DESTDIR="${D}" install
+       fi
+
        find "${ED}" -type f -name "*.la" -delete || die
 
        if use tools; then

Reply via email to