From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C9BC51382C5 for ; Mon, 29 Jan 2018 23:14:42 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0A1ECE0C02; Mon, 29 Jan 2018 23:14:42 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id CA38BE0C02 for ; Mon, 29 Jan 2018 23:14:41 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id CB1E2335C0B for ; Mon, 29 Jan 2018 23:14:40 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 08E971D6 for ; Mon, 29 Jan 2018 23:14:39 +0000 (UTC) From: "Mikle Kolyada" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mikle Kolyada" Message-ID: <1517267577.9fe1f8927a503b6a724458eb270280642bb94177.zlogene@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/nnn/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-misc/nnn/Manifest app-misc/nnn/metadata.xml app-misc/nnn/nnn-1.6.ebuild X-VCS-Directories: app-misc/nnn/ X-VCS-Committer: zlogene X-VCS-Committer-Name: Mikle Kolyada X-VCS-Revision: 9fe1f8927a503b6a724458eb270280642bb94177 X-VCS-Branch: master Date: Mon, 29 Jan 2018 23:14:39 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: eadffd15-99dd-4176-bb30-91e121bff653 X-Archives-Hash: 27d74f463597cfa69d1c88a96204ec13 commit: 9fe1f8927a503b6a724458eb270280642bb94177 Author: Mikle Kolyada gentoo org> AuthorDate: Mon Jan 29 23:12:18 2018 +0000 Commit: Mikle Kolyada gentoo org> CommitDate: Mon Jan 29 23:12:57 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9fe1f892 app-misc/nnn: Initial import Package-Manager: Portage-2.3.19, Repoman-2.3.6 app-misc/nnn/Manifest | 1 + app-misc/nnn/metadata.xml | 11 +++++++++++ app-misc/nnn/nnn-1.6.ebuild | 47 +++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 59 insertions(+) diff --git a/app-misc/nnn/Manifest b/app-misc/nnn/Manifest new file mode 100644 index 00000000000..eef07ad8b09 --- /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 00000000000..a919cc815a6 --- /dev/null +++ b/app-misc/nnn/metadata.xml @@ -0,0 +1,11 @@ + + + + + zlogene@gentoo.org + Mikle Kolyada + + + Enable fish completion support + + diff --git a/app-misc/nnn/nnn-1.6.ebuild b/app-misc/nnn/nnn-1.6.ebuild new file mode 100644 index 00000000000..b1965355b42 --- /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 +}