Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/unibilium/files/, dev-libs/unibilium/
Date: Wed, 30 Sep 2020 00:15:23
Message-Id: 1601424910.2189f8e3d634e6e69365489c5f62e3c6685ec26e.sam@gentoo
1 commit: 2189f8e3d634e6e69365489c5f62e3c6685ec26e
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Wed Sep 30 00:15:10 2020 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Wed Sep 30 00:15:10 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2189f8e3
7
8 dev-libs/unibilium: bump to 4.1.0 (neovim fork)
9
10 * Switch to neovim upstream (for now?)
11 * Fix QA issue with manpages
12
13 Closes: https://bugs.gentoo.org/711060
14 Package-Manager: Portage-3.0.4, Repoman-3.0.1
15 Signed-off-by: Sam James <sam <AT> gentoo.org>
16
17 dev-libs/unibilium/Manifest | 1 +
18 .../files/unibilium-2.1.0-no-compress-man.patch | 22 ++++++++++++++
19 dev-libs/unibilium/unibilium-2.1.0.ebuild | 35 ++++++++++++++++++++++
20 3 files changed, 58 insertions(+)
21
22 diff --git a/dev-libs/unibilium/Manifest b/dev-libs/unibilium/Manifest
23 index 9775b36fbf3..f511cd7c8ab 100644
24 --- a/dev-libs/unibilium/Manifest
25 +++ b/dev-libs/unibilium/Manifest
26 @@ -1 +1,2 @@
27 DIST unibilium-2.0.0.tar.gz 112570 BLAKE2B 95c24c53e11590faabf3d4b8484c344be0b2a0988f05bde785d03dac338d9f18fc65324f5ccc402723c9fabe2990083ce260d8fa57129591a1b2a1f8405eff9d SHA512 e93f319b7a85a4441c7f4e30d12d906805f066b14bff03331e48b6257da893f6447e257c8ba731077ad4b54d82d3ebf1ccf1fcf2d864273e0d4321a26ef7c172
28 +DIST unibilium-2.1.0.tar.gz 121971 BLAKE2B e035eab4343ee779218c302b3cae3ff5d443fc9bd723cade53a3d38dde3d66ee3d7374f7c69b85508a59d44d936601b24f33b01d923e55677d2bac71bd520fea SHA512 c0074ff8431f82c92072b8c0c9d3cf38d759b4de996b168c6ab00e475b0a6204d9c29b0a6e48e62dd4fa4898f82246150ef7cd5e246893d2c225c50ec4d4ac68
29
30 diff --git a/dev-libs/unibilium/files/unibilium-2.1.0-no-compress-man.patch b/dev-libs/unibilium/files/unibilium-2.1.0-no-compress-man.patch
31 new file mode 100644
32 index 00000000000..d4c1944554b
33 --- /dev/null
34 +++ b/dev-libs/unibilium/files/unibilium-2.1.0-no-compress-man.patch
35 @@ -0,0 +1,22 @@
36 +--- a/Makefile
37 ++++ b/Makefile
38 +@@ -56,7 +56,7 @@ OBJECTS=unibilium.lo uninames.lo uniutil.lo
39 + LIBRARY=libunibilium.la
40 +
41 + PODS=$(wildcard doc/*.pod)
42 +-MANPAGES=$(addprefix man/,$(notdir $(PODS:.pod=.3.gz)))
43 ++MANPAGES=$(addprefix man/,$(notdir $(PODS:.pod=.3)))
44 +
45 + TOOLS=$(wildcard tools/*.c)
46 +
47 +@@ -121,8 +121,8 @@ install-man: build-man
48 + .PHONY: build-man
49 + build-man: $(MANPAGES)
50 +
51 +-man/%.3.gz: doc/%.pod
52 +- $(POD2MAN) $(POD2MAN_OPTS) $< | gzip > $@
53 ++man/%.3: doc/%.pod
54 ++ $(POD2MAN) $(POD2MAN_OPTS) $< > $@
55 +
56 +
57 + # Regenerate static test files, based on existing terminfo entries.
58
59 diff --git a/dev-libs/unibilium/unibilium-2.1.0.ebuild b/dev-libs/unibilium/unibilium-2.1.0.ebuild
60 new file mode 100644
61 index 00000000000..54bebfe17a3
62 --- /dev/null
63 +++ b/dev-libs/unibilium/unibilium-2.1.0.ebuild
64 @@ -0,0 +1,35 @@
65 +# Copyright 1999-2020 Gentoo Authors
66 +# Distributed under the terms of the GNU General Public License v2
67 +
68 +EAPI=7
69 +
70 +inherit flag-o-matic toolchain-funcs
71 +
72 +DESCRIPTION="A very basic terminfo library"
73 +HOMEPAGE="https://github.com/neovim/unibilium/"
74 +SRC_URI="https://github.com/neovim/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
75 +
76 +LICENSE="LGPL-3+ MIT"
77 +SLOT="0/4"
78 +KEYWORDS="~amd64 ~arm ~arm64 ~x86"
79 +IUSE="static-libs"
80 +
81 +BDEPEND="
82 + dev-lang/perl
83 + sys-devel/libtool"
84 +
85 +PATCHES=(
86 + "${FILESDIR}/${PN}-2.1.0-no-compress-man.patch"
87 +)
88 +
89 +src_compile() {
90 + append-flags -fPIC
91 + tc-export CC
92 + emake PREFIX="${EPREFIX}/usr" LIBDIR="${EPREFIX}/usr/$(get_libdir)" all
93 +}
94 +
95 +src_install() {
96 + emake PREFIX="${EPREFIX}/usr" LIBDIR="${EPREFIX}/usr/$(get_libdir)" DESTDIR="${D}" install
97 + use static-libs || rm "${ED}"/usr/$(get_libdir)/lib${PN}.a || die
98 + rm "${ED}"/usr/$(get_libdir)/lib${PN}.la || die
99 +}