diff options
Diffstat (limited to 'x11-terms/kitty/kitty-9999.ebuild')
-rw-r--r-- | x11-terms/kitty/kitty-9999.ebuild | 33 |
1 files changed, 22 insertions, 11 deletions
diff --git a/x11-terms/kitty/kitty-9999.ebuild b/x11-terms/kitty/kitty-9999.ebuild index f47b4d2c18f8..ae77780523a3 100644 --- a/x11-terms/kitty/kitty-9999.ebuild +++ b/x11-terms/kitty/kitty-9999.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -10,7 +10,11 @@ if [[ ${PV} == 9999 ]] ; then inherit git-r3 EGIT_REPO_URI="https://github.com/kovidgoyal/kitty.git" else - SRC_URI="https://github.com/kovidgoyal/kitty/releases/download/v${PV}/${P}.tar.xz" + inherit verify-sig + SRC_URI=" + https://github.com/kovidgoyal/kitty/releases/download/v${PV}/${P}.tar.xz + verify-sig? ( https://github.com/kovidgoyal/kitty/releases/download/v${PV}/${P}.tar.xz.sig )" + VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}/usr/share/openpgp-keys/kovidgoyal.gpg" KEYWORDS="~amd64 ~x86" fi @@ -19,11 +23,11 @@ HOMEPAGE="https://sw.kovidgoyal.net/kitty/" LICENSE="GPL-3" SLOT="0" -IUSE="+X debug test wayland" +IUSE="+X debug test transfer wayland" REQUIRED_USE=" || ( X wayland ) ${PYTHON_REQUIRED_USE}" -RESTRICT="!test? ( test )" +RESTRICT="!X? ( test ) !test? ( test ) !transfer? ( test ) !wayland? ( test )" RDEPEND=" ${PYTHON_DEPS} @@ -33,13 +37,14 @@ RDEPEND=" media-libs/lcms:2 media-libs/libglvnd[X?] media-libs/libpng:= - net-libs/librsync:= sys-apps/dbus sys-libs/zlib:= x11-libs/libxkbcommon[X?] x11-misc/xkeyboard-config + ~x11-terms/kitty-shell-integration-${PV} ~x11-terms/kitty-terminfo-${PV} X? ( x11-libs/libX11 ) + transfer? ( net-libs/librsync:= ) wayland? ( dev-libs/wayland )" DEPEND=" ${RDEPEND} @@ -57,6 +62,7 @@ BDEPEND=" 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 )" PATCHES=( "${FILESDIR}"/${PN}-0.23.1-flags.patch @@ -65,10 +71,15 @@ PATCHES=( src_prepare() { default - sed "s/'x11 wayland'/'$(usev X x11) $(usev wayland)'/" -i setup.py || die - sed "s/else linux_backends/else [$(usev X "'x11',")$(usev wayland "'wayland'")]/" \ - -i kitty_tests/check_build.py || die - use X || sed "/glfw_path('x11')/s/x11/wayland/" -i kitty_tests/glfw.py || die + sed -i "s/'x11 wayland'/'$(usev X x11) $(usev wayland)'/" setup.py || die + + if use !transfer; then + sed -i 's/rs_cflag =/& []#/;/files.*rsync/d' setup.py || die + rm -r kittens/transfer || die + fi + + # test relies on 'who' command which doesn't detect users with pid-sandbox + rm kitty_tests/utmp.py || die # skip docs for live version [[ ${PV} != 9999 ]] || sed -i '/exists.*_build/,/docs(ddir)/d' setup.py || die @@ -79,14 +90,14 @@ src_compile() { export PKGCONFIG_EXE=$(tc-getPKG_CONFIG) local setup=( - ${EPYTHON} setup.py + ${EPYTHON} setup.py linux-package --disable-link-time-optimization --ignore-compiler-warnings --libdir-name=$(get_libdir) + --shell-integration="enabled no-rc" --update-check-interval=0 --verbose $(usev debug --debug) - linux-package ) echo "${setup[*]}" |