diff options
author | Mikle Kolyada <zlogene@gentoo.org> | 2018-10-25 20:45:21 +0300 |
---|---|---|
committer | Mikle Kolyada <zlogene@gentoo.org> | 2018-10-25 20:45:21 +0300 |
commit | d7dc101f6f3bb3ab8f547cfd974bae57e451a4ee (patch) | |
tree | 0f7b5ddc25146606f73590a11271498b1bdf548d /app-misc/nnn/nnn-2.0.ebuild | |
parent | net-fs/minio: Version bump (diff) | |
download | gentoo-d7dc101f6f3bb3ab8f547cfd974bae57e451a4ee.tar.gz gentoo-d7dc101f6f3bb3ab8f547cfd974bae57e451a4ee.tar.bz2 gentoo-d7dc101f6f3bb3ab8f547cfd974bae57e451a4ee.zip |
app-misc/nnn: Version bump (v2.0)
Signed-off-by: Mikle Kolyada <zlogene@gentoo.org>
Package-Manager: Portage-2.3.49, Repoman-2.3.11
Diffstat (limited to 'app-misc/nnn/nnn-2.0.ebuild')
-rw-r--r-- | app-misc/nnn/nnn-2.0.ebuild | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/app-misc/nnn/nnn-2.0.ebuild b/app-misc/nnn/nnn-2.0.ebuild new file mode 100644 index 000000000000..4d054798eaa7 --- /dev/null +++ b/app-misc/nnn/nnn-2.0.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2018 Gentoo Authors +# 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 +} |