diff options
author | Mikle Kolyada <zlogene@gentoo.org> | 2018-05-09 16:31:01 +0300 |
---|---|---|
committer | Mikle Kolyada <zlogene@gentoo.org> | 2018-05-09 16:31:29 +0300 |
commit | f70400a1168feaf57924a4a44df398332c43ac35 (patch) | |
tree | 930c73e3f95a4d5940393ab638b47938df1d7f44 /app-misc/nnn/nnn-1.8.ebuild | |
parent | dev-php/PEAR-Net_SmartIRC: Drop old (diff) | |
download | gentoo-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/nnn/nnn-1.8.ebuild')
-rw-r--r-- | app-misc/nnn/nnn-1.8.ebuild | 47 |
1 files changed, 47 insertions, 0 deletions
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 +} |