blob: d0ad654cffdb636ea7ccda8946ed9d33899a4c74 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# Copyright 2021-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_EXT=1
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..11} )
inherit distutils-r1
DESCRIPTION="Command line util to draw images on terminals by using child windows"
HOMEPAGE="https://github.com/ueber-devel/ueberzug/"
SRC_URI="https://github.com/ueber-devel/ueberzug/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
COMMON_DEPEND="
x11-libs/libX11
x11-libs/libXext
x11-libs/libXres"
RDEPEND="
${COMMON_DEPEND}
dev-python/attrs[${PYTHON_USEDEP}]
dev-python/docopt[${PYTHON_USEDEP}]
dev-python/pillow[${PYTHON_USEDEP}]
!media-gfx/ueberzugpp"
DEPEND="
${COMMON_DEPEND}
x11-base/xorg-proto"
src_prepare() {
distutils-r1_src_prepare
# fix version
[[ ${PV} == 18.2.2 ]] || die "drop version workaround"
sed -i "/^__version__/s/18.2.1/${PV}/" ueberzug/__init__.py || die
}
python_install() {
distutils-r1_python_install
# https://github.com/ueber-devel/ueberzug/issues/9
rm -r -- "${D}$(python_get_sitedir)"/ueberzug/X || die
}
|