dev-vcs/lazygit: move DOCS to global, add USE="doc" for additional docs

Signed-off-by: Sergey Torokhov <torokhov-s-a@yandex.ru>
This commit is contained in:
Sergey Torokhov
2020-04-08 14:57:57 +03:00
parent 80233e4bed
commit 2fe8d892ef

View File

@@ -14,7 +14,7 @@ SRC_URI="https://github.com/jesseduffield/${PN}/archive/v${PV}.tar.gz -> ${P}.ta
LICENSE="MIT" LICENSE="MIT"
SLOT="0" SLOT="0"
KEYWORDS="~amd64" KEYWORDS="~amd64"
IUSE="" IUSE="doc"
DEPEND=( sys-libs/glibc ) DEPEND=( sys-libs/glibc )
RDEPEND=( RDEPEND=(
@@ -22,6 +22,8 @@ RDEPEND=(
dev-vcs/git dev-vcs/git
) )
DOCS=( src/${EGO_PN}/{CONTRIBUTING,README}.md )
PATCHES=( "${FILESDIR}/${P}-fix-gpg-breaking-terminal.patch" ) PATCHES=( "${FILESDIR}/${P}-fix-gpg-breaking-terminal.patch" )
src_compile() { src_compile() {
@@ -31,10 +33,6 @@ src_compile() {
src_install() { src_install() {
dobin bin/lazygit dobin bin/lazygit
local DOCS=( use doc && dodoc -r "src/${EGO_PN}/docs/."
src/${EGO_PN}/{CONTRIBUTING,README}.md
src/${EGO_PN}/docs/*.md
src/${EGO_PN}/docs/keybindings/*.md
)
einstalldocs einstalldocs
} }