summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBalkanMadman <zurabid2016@gmail.com>2023-06-28 12:04:30 +0300
committerSam James <sam@gentoo.org>2023-06-28 22:49:09 +0100
commit33e7db4de6d89fe4bbaaf3c83ddf22458faa379d (patch)
treed34f6f309447faf7d79d1b97b04aab6e9e417137 /dev-libs/libtermkey
parentnet-libs/libssh2: Stabilize 1.11.0 hppa, #909341 (diff)
downloadgentoo-33e7db4de6d89fe4bbaaf3c83ddf22458faa379d.tar.gz
gentoo-33e7db4de6d89fe4bbaaf3c83ddf22458faa379d.tar.bz2
gentoo-33e7db4de6d89fe4bbaaf3c83ddf22458faa379d.zip
dev-libs/libtermkey: Fix QA for automagically compressing manpages
Added a dead simple patch to ${FILESDIR}, so that make doesn't compress manpages by itself, thus fixing QA warning Closes: https://bugs.gentoo.org/729248 Signed-off-by: BalkanMadman <zurabid2016@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/31654 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-libs/libtermkey')
-rw-r--r--dev-libs/libtermkey/files/no-automagic-manpages-compress.patch18
-rw-r--r--dev-libs/libtermkey/libtermkey-0.22.ebuild5
2 files changed, 23 insertions, 0 deletions
diff --git a/dev-libs/libtermkey/files/no-automagic-manpages-compress.patch b/dev-libs/libtermkey/files/no-automagic-manpages-compress.patch
new file mode 100644
index 000000000000..8f6fa34aef6c
--- /dev/null
+++ b/dev-libs/libtermkey/files/no-automagic-manpages-compress.patch
@@ -0,0 +1,18 @@
+diff --git a/Makefile b/Makefile
+index 199f143..70788ee 100644
+--- a/Makefile
++++ b/Makefile
+@@ -121,13 +121,3 @@ install-lib: $(LIBRARY)
+ install-man:
+ install -d $(DESTDIR)$(MAN3DIR)
+ install -d $(DESTDIR)$(MAN7DIR)
+- for F in man/*.3; do \
+- gzip <$$F >$(DESTDIR)$(MAN3DIR)/$${F#man/}.gz; \
+- done
+- for F in man/*.7; do \
+- gzip <$$F >$(DESTDIR)$(MAN7DIR)/$${F#man/}.gz; \
+- done
+- while read FROM EQ TO; do \
+- echo ln -sf $$TO.gz $(DESTDIR)$(MAN3DIR)/$$FROM.gz; \
+- done < man/also
+-
diff --git a/dev-libs/libtermkey/libtermkey-0.22.ebuild b/dev-libs/libtermkey/libtermkey-0.22.ebuild
index ebdac2ff53e1..3d96367bdf78 100644
--- a/dev-libs/libtermkey/libtermkey-0.22.ebuild
+++ b/dev-libs/libtermkey/libtermkey-0.22.ebuild
@@ -12,6 +12,9 @@ LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 arm arm64 ~ppc64 ~riscv x86 ~x64-macos"
IUSE="demos static-libs"
+PATCHES=(
+ "${FILESDIR}"/no-automagic-manpages-compress.patch
+)
RDEPEND="dev-libs/unibilium:="
DEPEND="${RDEPEND}
@@ -36,4 +39,6 @@ src_install() {
emake PREFIX="${EPREFIX}/usr" LIBDIR="${EPREFIX}/usr/$(get_libdir)" DESTDIR="${D}" install
use static-libs || rm "${ED}"/usr/$(get_libdir)/${PN}.a || die
rm "${ED}"/usr/$(get_libdir)/${PN}.la || die
+ doman "${S}"/man/*.3
+ doman "${S}"/man/*.7
}