summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikle Kolyada <zlogene@gentoo.org>2018-08-15 08:48:52 +0300
committerMikle Kolyada <zlogene@gentoo.org>2018-08-15 08:49:21 +0300
commit77801f40e8e05978b957dd76f578c399054a2193 (patch)
tree1648abe4f71f3c82ea7dd69cfc9a7398b2528753 /app-misc/nnn/nnn-1.9.ebuild
parentdev-ruby/capybara: add 3.6.0 (diff)
downloadgentoo-77801f40e8e05978b957dd76f578c399054a2193.tar.gz
gentoo-77801f40e8e05978b957dd76f578c399054a2193.tar.bz2
gentoo-77801f40e8e05978b957dd76f578c399054a2193.zip
app-misc/nnn: Version bump (v1.9)
- Install the completion files unconditionally (tiny) - Fix the installation path for fish completion - Drop empty IUSE Closes: https://bugs.gentoo.org/655914 Closes: https://bugs.gentoo.org/663306 Package-Manager: Portage-2.3.40, Repoman-2.3.9
Diffstat (limited to 'app-misc/nnn/nnn-1.9.ebuild')
-rw-r--r--app-misc/nnn/nnn-1.9.ebuild39
1 files changed, 39 insertions, 0 deletions
diff --git a/app-misc/nnn/nnn-1.9.ebuild b/app-misc/nnn/nnn-1.9.ebuild
new file mode 100644
index 000000000000..1f92d72054e7
--- /dev/null
+++ b/app-misc/nnn/nnn-1.9.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit bash-completion-r1 toolchain-funcs
+
+DESCRIPTION="The missing terminal file browser for X"
+HOMEPAGE="https://github.com/jarun/nnn"
+SRC_URI="https://github.com/jarun/nnn/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="sys-libs/ncurses:0=
+ sys-libs/readline:0="
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ default
+ tc-export CC
+ sed -i -e '/strip/d' Makefile || die "sed failed"
+
+}
+
+src_install() {
+ emake PREFIX="/usr" DESTDIR="${D}" install
+
+ newbashcomp scripts/auto-completion/bash/nnn-completion.bash nnn
+
+ insinto /usr/share/fish/vendor_completions.d
+ doins scripts/auto-completion/fish/nnn.fish
+
+ insinto /usr/share/zsh/site-functions
+ doins scripts/auto-completion/zsh/_nnn
+
+ einstalldocs
+}