-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscreenkey-1.5_p20230109.ebuild
54 lines (42 loc) · 1.28 KB
/
screenkey-1.5_p20230109.ebuild
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
47
48
49
50
51
52
53
54
# Copyright 2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=(python3_{10..12})
inherit distutils-r1 xdg
DESCRIPTION="A screencast tool to display your keys inspired by Screenflick"
HOMEPAGE="https://www.thregr.org/~wavexx/software/screenkey"
if [[ ${PV} == *_p20230109 ]] ; then
COMMIT=7bdba66574244061c6e1934c4f204d02d570f182
SRC_URI="https://gitlab.com/${PN}/${PN}/-/archive/${COMMIT}/${PN}-${COMMIT}.tar.bz2
-> ${P}.tar.bz2"
S="${WORKDIR}"/${PN}-${COMMIT}
else
SRC_URI="https://gitlab.com/${PN}/${PN}/-/archive/v${PV}/${PN}-v${PV}.tar.bz2
-> ${P}.tar.bz2"
S="${WORKDIR}"/${PN}-v${PV}
fi
KEYWORDS="amd64 ~x86"
RESTRICT="test"
LICENSE="GPL-3"
SLOT="0"
IUSE="appindicator dbus"
BDEPEND="
dev-python/Babel[${PYTHON_USEDEP}]
dev-python/wheel[${PYTHON_USEDEP}]
"
RDEPEND="
dbus? ( dev-python/dbus-python[${PYTHON_USEDEP}] )
appindicator? ( dev-libs/libappindicator:3[introspection] )
dev-python/pycairo[${PYTHON_USEDEP}]
dev-python/pygobject[cairo,${PYTHON_USEDEP}]
x11-libs/gtk+:3[X,introspection]
x11-misc/slop
"
src_prepare() {
xdg_environment_reset
sed -e "/share\/doc/s/${PN}/${P}/" -i setup.py \
|| die 'sed failed'
use dbus || eapply "${FILESDIR}/no-dbus-${PV}.patch"
default
}