summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIonen Wolkens <ionen@gentoo.org>2022-11-22 08:57:24 -0500
committerIonen Wolkens <ionen@gentoo.org>2022-11-22 09:35:49 -0500
commite103095cfaaaf1fa879c506e59af189abb61d81d (patch)
treeec42e3eac87d32f226bb36de5d4a59d9de9278e5 /x11-terms
parentnet-news/canto-curses: set PEP 517 mode for distutils (diff)
downloadgentoo-e103095cfaaaf1fa879c506e59af189abb61d81d.tar.gz
gentoo-e103095cfaaaf1fa879c506e59af189abb61d81d.tar.bz2
gentoo-e103095cfaaaf1fa879c506e59af189abb61d81d.zip
x11-terms/kitty: avoid using go-module.eclass after all
Almost nothing to do, rather than mess with it might as well skip. Reveals that kitty-tool was being pre-stripped, so prevent that and let portage strip it which actually seems perfectly fine. Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'x11-terms')
-rw-r--r--x11-terms/kitty/kitty-9999.ebuild15
1 files changed, 6 insertions, 9 deletions
diff --git a/x11-terms/kitty/kitty-9999.ebuild b/x11-terms/kitty/kitty-9999.ebuild
index d9660ea7b4f4..06e7d84c2b81 100644
--- a/x11-terms/kitty/kitty-9999.ebuild
+++ b/x11-terms/kitty/kitty-9999.ebuild
@@ -4,7 +4,7 @@
EAPI=8
PYTHON_COMPAT=( python3_{8..11} )
-inherit edo go-module optfeature multiprocessing python-single-r1 toolchain-funcs xdg
+inherit edo optfeature multiprocessing python-single-r1 toolchain-funcs xdg
if [[ ${PV} == 9999 ]]; then
inherit git-r3
@@ -60,19 +60,20 @@ DEPEND="
wayland? ( dev-libs/wayland-protocols )"
BDEPEND="
${PYTHON_DEPS}
+ dev-lang/go
sys-libs/ncurses
virtual/pkgconfig
test? ( $(python_gen_cond_dep 'dev-python/pillow[${PYTHON_USEDEP}]') )
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"
+QA_FLAGS_IGNORED="usr/bin/kitty-tool" # written in Go
src_unpack() {
if [[ ${PV} == 9999 ]]; then
git-r3_src_unpack
- go-module_live_vendor
+ cd "${S}" || die
+ edo go mod vendor
else
verify-sig_src_unpack
fi
@@ -86,6 +87,7 @@ src_prepare() {
-e "$(usev !X '/gl_libs =/s/=.*/= []/')" \
-e "/num_workers =/s/=.*/= $(makeopts_jobs)/" \
-e "s/cflags.append.*-O3.*/pass/" -e 's/-O3//' \
+ -e "s/ld_flags.append('-s')/pass/" \
-i setup.py || die
# test relies on 'who' command which doesn't detect users with pid-sandbox
@@ -128,11 +130,6 @@ 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() {