x11-terms/kitty: remove IUSE=transfer (default)

Was formerly requested given transferring files over serial link
is rarely needed. But this started being more intertwined with
other features (e.g. ssh kitten), and is causing unexpected behavior.

If you want more dependencies to be optional, please request flags
to toggle them upstream.

Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
This commit is contained in:
Ionen Wolkens
2022-11-14 21:22:44 -05:00
parent b9330123bc
commit 79abfd1e5c
2 changed files with 6 additions and 16 deletions

View File

@@ -23,11 +23,11 @@ HOMEPAGE="https://sw.kovidgoyal.net/kitty/"
LICENSE="GPL-3"
SLOT="0"
IUSE="+X test transfer wayland"
IUSE="+X test wayland"
REQUIRED_USE="
${PYTHON_REQUIRED_USE}
|| ( X wayland )
test? ( X transfer wayland )"
test? ( X wayland )"
RESTRICT="!test? ( test )"
# dlopen: fontconfig,libglvnd
@@ -39,6 +39,7 @@ 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?]
@@ -46,7 +47,6 @@ RDEPEND="
~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}
@@ -76,11 +76,6 @@ src_prepare() {
-e "s/cflags.append.*-O3.*/pass/" -e 's/-O3//' \
-i 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

View File

@@ -23,11 +23,11 @@ HOMEPAGE="https://sw.kovidgoyal.net/kitty/"
LICENSE="GPL-3"
SLOT="0"
IUSE="+X test transfer wayland"
IUSE="+X test wayland"
REQUIRED_USE="
${PYTHON_REQUIRED_USE}
|| ( X wayland )
test? ( X transfer wayland )"
test? ( X wayland )"
RESTRICT="!test? ( test )"
# dlopen: fontconfig,libglvnd
@@ -39,6 +39,7 @@ 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?]
@@ -46,7 +47,6 @@ RDEPEND="
~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}
@@ -76,11 +76,6 @@ src_prepare() {
-e "s/cflags.append.*-O3.*/pass/" -e 's/-O3//' \
-i 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