mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
app-shells/fzy: sync live ebuild
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org> Package-Manager: Portage-2.3.49, Repoman-2.3.10
This commit is contained in:
@@ -3,13 +3,13 @@
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit savedconfig toolchain-funcs
|
||||
inherit eutils savedconfig toolchain-funcs
|
||||
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/jhawthorn/fzy.git"
|
||||
else
|
||||
SRC_URI="https://github.com/jhawthorn/fzy/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
SRC_URI="https://github.com/jhawthorn/${PN}/releases/download/${PV}/${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
|
||||
@@ -31,9 +31,14 @@ src_prepare() {
|
||||
src_install() {
|
||||
local DOCS=( ALGORITHM.md CHANGELOG.md README.md )
|
||||
emake DESTDIR="${D}" PREFIX="${EPREFIX}"/usr install
|
||||
exeinto /usr/share/fzy
|
||||
doexe contrib/fzy-tmux
|
||||
doexe contrib/fzy-dvtm
|
||||
dobin contrib/fzy-tmux
|
||||
dobin contrib/fzy-dvtm
|
||||
einstalldocs
|
||||
save_config config.h
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
savedconfig_pkg_postinst
|
||||
optfeature "opening search results in dvtm pane with provided ${EPREFIX}/usr/bin/fzy-dvtm" app-misc/dvtm
|
||||
optfeature "opening search results in tmux pane with provided ${EPREFIX}/usr/bin/fzy-tmux" app-misc/tmux
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user