summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikle Kolyada <zlogene@gentoo.org>2018-05-09 16:31:01 +0300
committerMikle Kolyada <zlogene@gentoo.org>2018-05-09 16:31:29 +0300
commitf70400a1168feaf57924a4a44df398332c43ac35 (patch)
tree930c73e3f95a4d5940393ab638b47938df1d7f44 /app-misc
parentdev-php/PEAR-Net_SmartIRC: Drop old (diff)
downloadgentoo-f70400a1168feaf57924a4a44df398332c43ac35.tar.gz
gentoo-f70400a1168feaf57924a4a44df398332c43ac35.tar.bz2
gentoo-f70400a1168feaf57924a4a44df398332c43ac35.zip
app-misc/nnn: Version bump
Package-Manager: Portage-2.3.24, Repoman-2.3.6
Diffstat (limited to 'app-misc')
-rw-r--r--app-misc/nnn/Manifest1
-rw-r--r--app-misc/nnn/nnn-1.8.ebuild47
2 files changed, 48 insertions, 0 deletions
diff --git a/app-misc/nnn/Manifest b/app-misc/nnn/Manifest
index eef07ad8b09d..704d4f33f783 100644
--- a/app-misc/nnn/Manifest
+++ b/app-misc/nnn/Manifest
@@ -1 +1,2 @@
DIST nnn-1.6.tar.gz 37456 BLAKE2B 90a6bcf7123b763585a05d5898ecee129561fa11dddbc40125f536b96315e4847b6187615df2bb6e0262d3df5efeec83d6681092ed69e4b65cd5486cf396e7e6 SHA512 7172f37f98f15b37cd2959c5ad144d32f55cde9cd2fe3221fc7a23887d3326da924c9be0bdc61a01a4d98ceb9b03de2420a66cc2cbf94a2ae1547da206e4c49a
+DIST nnn-1.8.tar.gz 42534 BLAKE2B acf1f9e211ddf688da96c77364f8eb2d12c853fa528774f2a3f8fa146203b155df089f6a3c995f0415d5349e9bb0c519cd0776c77094a83c23ecfe45561c846d SHA512 dfa3fc20cc9d77dc6a998913d79c1f98467f9e0f475d43317fe5b3b7c85f04a8aa1508305307873115ff810f5e212272e8348af9d8bd5283f48ad76ed34cad55
diff --git a/app-misc/nnn/nnn-1.8.ebuild b/app-misc/nnn/nnn-1.8.ebuild
new file mode 100644
index 000000000000..b1965355b427
--- /dev/null
+++ b/app-misc/nnn/nnn-1.8.ebuild
@@ -0,0 +1,47 @@
+# 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"
+IUSE="bash-completion fish-completion zsh-completion"
+
+DEPEND="sys-libs/ncurses:0=
+ sys-libs/readline:0="
+RDEPEND="${DEPEND}
+ fish-completion? ( app-shells/fish )
+ zsh-completion? ( app-shells/zsh )"
+
+src_prepare() {
+ default
+ tc-export CC
+ sed -i -e '/strip/d' Makefile || die "sed failed"
+
+}
+
+src_install() {
+ emake PREFIX="/usr" DESTDIR="${D}" install
+
+ use bash-completion &&
+ newbashcomp scripts/auto-completion/bash/nnn-completion.bash nnn
+
+ if use fish-completion; then
+ insinto /usr/share/fish/completions
+ doins scripts/auto-completion/fish/nnn.fish
+ fi
+
+ if use zsh-completion; then
+ insinto /usr/share/zsh/site-functions
+ doins scripts/auto-completion/zsh/_nnn
+ fi
+
+ einstalldocs
+}