summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2020-09-30 00:15:10 +0000
committerSam James <sam@gentoo.org>2020-09-30 00:15:10 +0000
commit2189f8e3d634e6e69365489c5f62e3c6685ec26e (patch)
treed418df3f1951fc2773fd495ce14875dd58c0ca45 /dev-libs/unibilium
parentapp-editors/neovim: bump to 0.4.4 (diff)
downloadgentoo-2189f8e3d634e6e69365489c5f62e3c6685ec26e.tar.gz
gentoo-2189f8e3d634e6e69365489c5f62e3c6685ec26e.tar.bz2
gentoo-2189f8e3d634e6e69365489c5f62e3c6685ec26e.zip
dev-libs/unibilium: bump to 4.1.0 (neovim fork)
* Switch to neovim upstream (for now?) * Fix QA issue with manpages Closes: https://bugs.gentoo.org/711060 Package-Manager: Portage-3.0.4, Repoman-3.0.1 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-libs/unibilium')
-rw-r--r--dev-libs/unibilium/Manifest1
-rw-r--r--dev-libs/unibilium/files/unibilium-2.1.0-no-compress-man.patch22
-rw-r--r--dev-libs/unibilium/unibilium-2.1.0.ebuild35
3 files changed, 58 insertions, 0 deletions
diff --git a/dev-libs/unibilium/Manifest b/dev-libs/unibilium/Manifest
index 9775b36fbf34..f511cd7c8abe 100644
--- a/dev-libs/unibilium/Manifest
+++ b/dev-libs/unibilium/Manifest
@@ -1 +1,2 @@
DIST unibilium-2.0.0.tar.gz 112570 BLAKE2B 95c24c53e11590faabf3d4b8484c344be0b2a0988f05bde785d03dac338d9f18fc65324f5ccc402723c9fabe2990083ce260d8fa57129591a1b2a1f8405eff9d SHA512 e93f319b7a85a4441c7f4e30d12d906805f066b14bff03331e48b6257da893f6447e257c8ba731077ad4b54d82d3ebf1ccf1fcf2d864273e0d4321a26ef7c172
+DIST unibilium-2.1.0.tar.gz 121971 BLAKE2B e035eab4343ee779218c302b3cae3ff5d443fc9bd723cade53a3d38dde3d66ee3d7374f7c69b85508a59d44d936601b24f33b01d923e55677d2bac71bd520fea SHA512 c0074ff8431f82c92072b8c0c9d3cf38d759b4de996b168c6ab00e475b0a6204d9c29b0a6e48e62dd4fa4898f82246150ef7cd5e246893d2c225c50ec4d4ac68
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
new file mode 100644
index 000000000000..d4c1944554bd
--- /dev/null
+++ b/dev-libs/unibilium/files/unibilium-2.1.0-no-compress-man.patch
@@ -0,0 +1,22 @@
+--- a/Makefile
++++ b/Makefile
+@@ -56,7 +56,7 @@ OBJECTS=unibilium.lo uninames.lo uniutil.lo
+ LIBRARY=libunibilium.la
+
+ PODS=$(wildcard doc/*.pod)
+-MANPAGES=$(addprefix man/,$(notdir $(PODS:.pod=.3.gz)))
++MANPAGES=$(addprefix man/,$(notdir $(PODS:.pod=.3)))
+
+ TOOLS=$(wildcard tools/*.c)
+
+@@ -121,8 +121,8 @@ install-man: build-man
+ .PHONY: build-man
+ build-man: $(MANPAGES)
+
+-man/%.3.gz: doc/%.pod
+- $(POD2MAN) $(POD2MAN_OPTS) $< | gzip > $@
++man/%.3: doc/%.pod
++ $(POD2MAN) $(POD2MAN_OPTS) $< > $@
+
+
+ # Regenerate static test files, based on existing terminfo entries.
diff --git a/dev-libs/unibilium/unibilium-2.1.0.ebuild b/dev-libs/unibilium/unibilium-2.1.0.ebuild
new file mode 100644
index 000000000000..54bebfe17a3d
--- /dev/null
+++ b/dev-libs/unibilium/unibilium-2.1.0.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit flag-o-matic toolchain-funcs
+
+DESCRIPTION="A very basic terminfo library"
+HOMEPAGE="https://github.com/neovim/unibilium/"
+SRC_URI="https://github.com/neovim/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="LGPL-3+ MIT"
+SLOT="0/4"
+KEYWORDS="~amd64 ~arm ~arm64 ~x86"
+IUSE="static-libs"
+
+BDEPEND="
+ dev-lang/perl
+ sys-devel/libtool"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-2.1.0-no-compress-man.patch"
+)
+
+src_compile() {
+ append-flags -fPIC
+ tc-export CC
+ 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)/lib${PN}.a || die
+ rm "${ED}"/usr/$(get_libdir)/lib${PN}.la || die
+}