1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python3_{6,7,8} )
8 inherit python-single-r1 toolchain-funcs xdg
10 DESCRIPTION="Terminfo for kitty, an OpenGL-based terminal emulator"
11 HOMEPAGE="https://github.com/kovidgoyal/kitty"
12 SRC_URI="https://github.com/kovidgoyal/kitty/releases/download/v${PV}/kitty-${PV}.tar.xz"
13 S="${WORKDIR}/kitty-${PV}"
17 KEYWORDS="~amd64 ~x86"
20 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
22 RDEPEND="${PYTHON_DEPS}"
27 "${FILESDIR}"/kitty-terminfo-setup.patch
30 # kitty-terminfo is a split package from kitty that only installs the terminfo
31 # file. As tests are designed to be run with the whole package compiled they
32 # would fail in this case.
36 "${EPYTHON}" setup.py \
37 --verbose $(usex debug --debug "") \
38 --libdir-name $(get_libdir) \
39 linux-terminfo || die "Failed to compile kitty."
44 doins -r linux-package/*