mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-22 10:57:07 -08:00
x11-terms/kitty: adjust live further for go-module.eclass
This is not fully a Go package, there's just a helper tool written in Go. But go-module sets some broad assumptions that everything is Go even if we were to use GO_OPTIONAL (it's tempting to simply not use the eclass, only need to set a few variables + BDEPEND if we're not going to use EGO_SUM). Also quote EPYTHON while here, technically should never have spaces per definition but let's not rely on this too much for eclasses. Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
This commit is contained in:
@@ -66,6 +66,9 @@ BDEPEND="
|
||||
wayland? ( dev-util/wayland-scanner )"
|
||||
[[ ${PV} == 9999 ]] || BDEPEND+=" verify-sig? ( sec-keys/openpgp-keys-kovidgoyal )"
|
||||
|
||||
# override go-module.eclass' .* to only consider the Go written binary
|
||||
QA_FLAGS_IGNORED="usr/bin/kitty-tool"
|
||||
|
||||
src_unpack() {
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
git-r3_src_unpack
|
||||
@@ -108,8 +111,8 @@ src_compile() {
|
||||
--verbose
|
||||
)
|
||||
|
||||
edo ${EPYTHON} setup.py linux-package "${conf[@]}"
|
||||
use test && edo ${EPYTHON} setup.py build-launcher "${conf[@]}"
|
||||
edo "${EPYTHON}" setup.py linux-package "${conf[@]}"
|
||||
use test && edo "${EPYTHON}" setup.py build-launcher "${conf[@]}"
|
||||
|
||||
[[ ${PV} == 9999 ]] || mv linux-package/share/doc/{${PN},${PF}} || die
|
||||
rm -r linux-package/share/terminfo || die
|
||||
@@ -125,6 +128,11 @@ src_install() {
|
||||
|
||||
fperms +x /usr/bin/kitty \
|
||||
/usr/$(get_libdir)/kitty/shell-integration/ssh/{askpass.py,kitty}
|
||||
|
||||
# go-module.eclass force-restricts strip, allow except for Go
|
||||
# note: placebo given this is not respected by portage (bug #697960)
|
||||
dostrip /
|
||||
dostrip -x /usr/bin/kitty-tool
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
|
||||
Reference in New Issue
Block a user