Skip to content

Commit

Permalink
app-misc/pet: add missed go-module_pkg_postinst
Browse files Browse the repository at this point in the history
1. add missed go-module_pkg_postinst
2. mention app-shells/fzf, which now in portage

Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Vladimir Pavljuchenkov <spiderx@spiderx.dp.ua>
Closes: #14382
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
  • Loading branch information
SpiderX authored and juippis committed Jun 6, 2020
1 parent adb3fea commit dc1a55b
Showing 1 changed file with 87 additions and 0 deletions.
87 changes: 87 additions & 0 deletions app-misc/pet/pet-0.3.6-r1.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit go-module

EGO_SUM=(
"github.com/BurntSushi/toml v0.3.0"
"github.com/BurntSushi/toml v0.3.0/go.mod"
"github.com/briandowns/spinner v0.0.0-20170614154858-48dbb65d7bd5"
"github.com/briandowns/spinner v0.0.0-20170614154858-48dbb65d7bd5/go.mod"
"github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e"
"github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod"
"github.com/fatih/color v1.7.0"
"github.com/fatih/color v1.7.0/go.mod"
"github.com/golang/protobuf v1.1.0"
"github.com/golang/protobuf v1.1.0/go.mod"
"github.com/google/go-github v15.0.0+incompatible"
"github.com/google/go-github v15.0.0+incompatible/go.mod"
"github.com/google/go-querystring v0.0.0-20170111101155-53e6ce116135"
"github.com/google/go-querystring v0.0.0-20170111101155-53e6ce116135/go.mod"
"github.com/inconshreveable/mousetrap v1.0.0"
"github.com/inconshreveable/mousetrap v1.0.0/go.mod"
"github.com/jroimartin/gocui v0.4.0"
"github.com/jroimartin/gocui v0.4.0/go.mod"
"github.com/mattn/go-colorable v0.0.9"
"github.com/mattn/go-colorable v0.0.9/go.mod"
"github.com/mattn/go-isatty v0.0.3"
"github.com/mattn/go-isatty v0.0.3/go.mod"
"github.com/mattn/go-runewidth v0.0.2"
"github.com/mattn/go-runewidth v0.0.2/go.mod"
"github.com/nsf/termbox-go v0.0.0-20180509163535-21a4d435a862"
"github.com/nsf/termbox-go v0.0.0-20180509163535-21a4d435a862/go.mod"
"github.com/pkg/errors v0.8.0"
"github.com/pkg/errors v0.8.0/go.mod"
"github.com/spf13/cobra v0.0.3"
"github.com/spf13/cobra v0.0.3/go.mod"
"github.com/spf13/pflag v1.0.1"
"github.com/spf13/pflag v1.0.1/go.mod"
"github.com/xanzy/go-gitlab v0.10.5"
"github.com/xanzy/go-gitlab v0.10.5/go.mod"
"golang.org/x/crypto v0.0.0-20180608092829-8ac0e0d97ce4"
"golang.org/x/crypto v0.0.0-20180608092829-8ac0e0d97ce4/go.mod"
"golang.org/x/net v0.0.0-20180530234432-1e491301e022"
"golang.org/x/net v0.0.0-20180530234432-1e491301e022/go.mod"
"golang.org/x/oauth2 v0.0.0-20180603041954-1e0a3fa8ba9a"
"golang.org/x/oauth2 v0.0.0-20180603041954-1e0a3fa8ba9a/go.mod"
"golang.org/x/sys v0.0.0-20180606202747-9527bec2660b"
"golang.org/x/sys v0.0.0-20180606202747-9527bec2660b/go.mod"
"google.golang.org/appengine v1.0.0"
"google.golang.org/appengine v1.0.0/go.mod"
)
go-module_set_globals

DESCRIPTION="Simple command-line snippet manager"
HOMEPAGE="https://github.com/knqyf263/pet"
SRC_URI="https://github.com/knqyf263/pet/archive/v${PV}.tar.gz -> ${P}.tar.gz
${EGO_SUM_SRC_URI}"

LICENSE="Apache-2.0 BSD BSD-2 MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE=""

src_compile() {
go build || die "build failed"
}

src_test() {
go test -work || die "test failed"
}

src_install() {
dobin pet
insinto /usr/share/zsh/site-functions
doins misc/completions/zsh/_pet
}

pkg_postinst() {
go-module_pkg_postinst

if ! has_version app-shells/peco && ! has_version app-shells/fzf ; then
einfo "You should consider to install app-shells/peco or"
einfo "app-shells/fzf to be able to use selector command"
fi
}

0 comments on commit dc1a55b

Please sign in to comment.