--- dislocker-9999.ebuild 2019-11-18 21:09:49.000000000 +0000 +++ dislocker-9999.ebuild.patched 2020-03-04 09:53:59.478073691 +0000 @@ -1,4 +1,4 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -34,7 +34,9 @@ # sed 's:Werror:Wno-error:g' -i "${S}/src/CMakeLists.txt" || die sed 's:-D_FORTIFY_SOURCE=2::g' -i "${S}/src/CMakeLists.txt" || die - sed 's:\.\./man:'../../${P}/man':g' -i "${S}/src/CMakeLists.txt" || die + # Do not process compressed versions of the manuals + sed -r 's:( create_symlink \$\{BIN_FUSE\}\.1)\.gz (.+\.1)\.gz\\:\1 \2\\:' -i "${S}/src/CMakeLists.txt" || die + sed -r 's:^(.+\.1\.gz):#\1:' -i "${S}/src/CMakeLists.txt" || die } src_configure() { @@ -45,6 +47,11 @@ } src_install() { + if ! use ruby; then + rm "${S}/man/linux/${PN}-find.1" || die + fi + find "${S}/man/linux" -name '*.1' -exec doman '{}' + + cmake-utils_src_install }