summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikle Kolyada <zlogene@gentoo.org>2018-01-30 02:12:18 +0300
committerMikle Kolyada <zlogene@gentoo.org>2018-01-30 02:12:57 +0300
commit9fe1f8927a503b6a724458eb270280642bb94177 (patch)
tree990a4a83c3e4b912ed6afb05afcdb89c243111a7 /app-misc/nnn
parentapp-shells/ksh: bump to 93.20180129 (diff)
downloadgentoo-9fe1f8927a503b6a724458eb270280642bb94177.tar.gz
gentoo-9fe1f8927a503b6a724458eb270280642bb94177.tar.bz2
gentoo-9fe1f8927a503b6a724458eb270280642bb94177.zip
app-misc/nnn: Initial import
Package-Manager: Portage-2.3.19, Repoman-2.3.6
Diffstat (limited to 'app-misc/nnn')
-rw-r--r--app-misc/nnn/Manifest1
-rw-r--r--app-misc/nnn/metadata.xml11
-rw-r--r--app-misc/nnn/nnn-1.6.ebuild47
3 files changed, 59 insertions, 0 deletions
diff --git a/app-misc/nnn/Manifest b/app-misc/nnn/Manifest
new file mode 100644
index 000000000000..eef07ad8b09d
--- /dev/null
+++ b/app-misc/nnn/Manifest
@@ -0,0 +1 @@
+DIST nnn-1.6.tar.gz 37456 BLAKE2B 90a6bcf7123b763585a05d5898ecee129561fa11dddbc40125f536b96315e4847b6187615df2bb6e0262d3df5efeec83d6681092ed69e4b65cd5486cf396e7e6 SHA512 7172f37f98f15b37cd2959c5ad144d32f55cde9cd2fe3221fc7a23887d3326da924c9be0bdc61a01a4d98ceb9b03de2420a66cc2cbf94a2ae1547da206e4c49a
diff --git a/app-misc/nnn/metadata.xml b/app-misc/nnn/metadata.xml
new file mode 100644
index 000000000000..a919cc815a67
--- /dev/null
+++ b/app-misc/nnn/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="person">
+ <email>zlogene@gentoo.org</email>
+ <name>Mikle Kolyada</name>
+</maintainer>
+<use>
+ <flag name="fish-completion">Enable fish completion support</flag>
+</use>
+</pkgmetadata>
diff --git a/app-misc/nnn/nnn-1.6.ebuild b/app-misc/nnn/nnn-1.6.ebuild
new file mode 100644
index 000000000000..b1965355b427
--- /dev/null
+++ b/app-misc/nnn/nnn-1.6.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
+}