commit:     62ba6f2e5398cf7cdc8341690bb75cbbf8cc124f
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Tue Nov 22 12:37:28 2022 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Tue Nov 22 13:00:13 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=62ba6f2e

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 <AT> gentoo.org>

 x11-terms/kitty/kitty-9999.ebuild | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/x11-terms/kitty/kitty-9999.ebuild 
b/x11-terms/kitty/kitty-9999.ebuild
index 914583b0f335..d9660ea7b4f4 100644
--- a/x11-terms/kitty/kitty-9999.ebuild
+++ b/x11-terms/kitty/kitty-9999.ebuild
@@ -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() {

Reply via email to