summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikle Kolyada <zlogene@gentoo.org>2020-08-20 10:36:38 +0300
committerMikle Kolyada <zlogene@gentoo.org>2020-08-20 10:36:50 +0300
commit9bf644fc018c3f871825858c562a51702bf4c6ef (patch)
treed41dbd4d7f216d4c793ad9c4fb64d6c53e59d9b2 /app-misc/nnn/nnn-3.4.ebuild
parentdev-haskell/missingh: drop old (diff)
downloadgentoo-9bf644fc018c3f871825858c562a51702bf4c6ef.tar.gz
gentoo-9bf644fc018c3f871825858c562a51702bf4c6ef.tar.bz2
gentoo-9bf644fc018c3f871825858c562a51702bf4c6ef.zip
app-misc/nnn: Version bump (v3.4)
Package-Manager: Portage-2.3.103, Repoman-2.3.23 Signed-off-by: Mikle Kolyada <zlogene@gentoo.org>
Diffstat (limited to 'app-misc/nnn/nnn-3.4.ebuild')
-rw-r--r--app-misc/nnn/nnn-3.4.ebuild39
1 files changed, 39 insertions, 0 deletions
diff --git a/app-misc/nnn/nnn-3.4.ebuild b/app-misc/nnn/nnn-3.4.ebuild
new file mode 100644
index 000000000000..88ef20531476
--- /dev/null
+++ b/app-misc/nnn/nnn-3.4.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+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 misc/auto-completion/bash/nnn-completion.bash nnn
+
+ insinto /usr/share/fish/vendor_completions.d
+ doins misc/auto-completion/fish/nnn.fish
+
+ insinto /usr/share/zsh/site-functions
+ doins misc/auto-completion/zsh/_nnn
+
+ einstalldocs
+}