logo

overlay

My (experimental) gentoo overlay
commit: a6fcf36147662698b40d71e67a3bd6a35bf989bc
parent: 430a9c7ef7c514dc66ef596599fcccd5bb00e530
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Tue, 26 Feb 2019 14:43:45 +0100

dev-libs/libtermkey: Fix manpages install

Diffstat:

Adev-libs/libtermkey/files/libtermkey-0.21.1_no_manpage_compression.patch20++++++++++++++++++++
Adev-libs/libtermkey/libtermkey-0.21.1-r1.ebuild42++++++++++++++++++++++++++++++++++++++++++
Ddev-libs/libtermkey/libtermkey-0.21.1.ebuild40----------------------------------------
3 files changed, 62 insertions(+), 40 deletions(-)

diff --git a/dev-libs/libtermkey/files/libtermkey-0.21.1_no_manpage_compression.patch b/dev-libs/libtermkey/files/libtermkey-0.21.1_no_manpage_compression.patch @@ -0,0 +1,20 @@ +diff --git a/Makefile b/Makefile +--- a/Makefile ++++ b/Makefile +@@ -121,13 +121,13 @@ 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; \ ++ cp $$F $(DESTDIR)$(MAN3DIR)/$${F#man/}; \ + done + for F in man/*.7; do \ +- gzip <$$F >$(DESTDIR)$(MAN7DIR)/$${F#man/}.gz; \ ++ cp $$F $(DESTDIR)$(MAN7DIR)/$${F#man/}; \ + done + while read FROM EQ TO; do \ +- echo ln -sf $$TO.gz $(DESTDIR)$(MAN3DIR)/$$FROM.gz; \ ++ ln -sf $$TO $(DESTDIR)$(MAN3DIR)/$$FROM; \ + done < man/also + diff --git a/dev-libs/libtermkey/libtermkey-0.21.1-r1.ebuild b/dev-libs/libtermkey/libtermkey-0.21.1-r1.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2018 Gentoo Foundation +# Copyright 2019 Haelwenn (lanodan) Monnier <contact@hacktivis.me> +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit flag-o-matic + +DESCRIPTION="Library for easy processing of keyboard entry from terminal-based programs" +HOMEPAGE="http://www.leonerd.org.uk/code/libtermkey/" +SRC_URI="http://www.leonerd.org.uk/code/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="demos static-libs" + +RDEPEND="dev-libs/unibilium:=" +DEPEND="${RDEPEND} + sys-devel/libtool + virtual/pkgconfig + demos? ( dev-libs/glib:2 )" + +PATCHES=( "${FILESDIR}/${P}_no_manpage_compression.patch" ) + +src_prepare() { + default + + if ! use demos; then + sed -e '/^all:/s:$(DEMOS)::' -i Makefile || die + fi +} + +src_compile() { + append-flags -fPIC + emake PREFIX="${EPREFIX}/usr" LIBDIR="${EPREFIX}/usr/$(get_libdir)" all +} + +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 +} diff --git a/dev-libs/libtermkey/libtermkey-0.21.1.ebuild b/dev-libs/libtermkey/libtermkey-0.21.1.ebuild @@ -1,40 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Copyright 2019 Haelwenn (lanodan) Monnier <contact@hacktivis.me> -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 -inherit flag-o-matic - -DESCRIPTION="Library for easy processing of keyboard entry from terminal-based programs" -HOMEPAGE="http://www.leonerd.org.uk/code/libtermkey/" -SRC_URI="http://www.leonerd.org.uk/code/${PN}/${P}.tar.gz" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="amd64 x86" -IUSE="demos static-libs" - -RDEPEND="dev-libs/unibilium:=" -DEPEND="${RDEPEND} - sys-devel/libtool - virtual/pkgconfig - demos? ( dev-libs/glib:2 )" - -src_prepare() { - default - - if ! use demos; then - sed -e '/^all:/s:$(DEMOS)::' -i Makefile || die - fi -} - -src_compile() { - append-flags -fPIC - emake PREFIX="${EPREFIX}/usr" LIBDIR="${EPREFIX}/usr/$(get_libdir)" all -} - -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 -}