2020-04-18 00:42:25 +02:00
|
|
|
# Copyright 1999-2020 Gentoo Authors
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=7
|
|
|
|
|
2020-09-13 02:30:07 +02:00
|
|
|
PYTHON_COMPAT=( python3_{6,7,8,9} )
|
|
|
|
DISTUTILS_USE_SETUPTOOLS=bdepend
|
2020-04-18 00:42:25 +02:00
|
|
|
|
2020-09-13 02:30:07 +02:00
|
|
|
inherit distutils-r1 xdg
|
2020-04-18 00:42:25 +02:00
|
|
|
|
|
|
|
DESCRIPTION="A screencast tool to display your keys inspired by Screenflick"
|
|
|
|
HOMEPAGE="https://www.thregr.org/~wavexx/software/screenkey/"
|
|
|
|
|
|
|
|
if [[ "${PV}" == *9999* ]]; then
|
|
|
|
inherit git-r3
|
|
|
|
EGIT_REPO_URI="https://gitlab.com/screenkey/${PN}.git"
|
|
|
|
else
|
2020-09-13 02:30:07 +02:00
|
|
|
SRC_URI="https://gitlab.com/screenkey/${PN}/-/archive/v${PV}/${PN}-v${PV}.tar.gz -> ${P}.tar.gz"
|
2020-04-18 00:42:25 +02:00
|
|
|
KEYWORDS="~amd64"
|
|
|
|
fi
|
|
|
|
|
|
|
|
RESTRICT="mirror"
|
2020-09-13 02:30:07 +02:00
|
|
|
LICENSE="GPL-3"
|
2020-04-18 00:42:25 +02:00
|
|
|
SLOT="0"
|
|
|
|
IUSE=""
|
|
|
|
|
|
|
|
BDEPEND="
|
|
|
|
dev-python/python-distutils-extra[${PYTHON_USEDEP}]
|
|
|
|
"
|
|
|
|
RDEPEND="
|
|
|
|
dev-python/pycairo[${PYTHON_USEDEP}]
|
|
|
|
dev-python/pygobject[${PYTHON_USEDEP}]
|
|
|
|
sys-devel/gettext
|
|
|
|
"
|
|
|
|
|
|
|
|
src_prepare() {
|
|
|
|
xdg_environment_reset
|
2020-09-13 02:30:07 +02:00
|
|
|
|
|
|
|
# Change the doc install path
|
|
|
|
sed -i "s/share\/doc\/screenkey/share\/doc\/${P}/g" setup.py || die
|
|
|
|
|
2020-04-18 00:42:25 +02:00
|
|
|
default
|
|
|
|
}
|
|
|
|
|
|
|
|
pkg_postinst() {
|
|
|
|
xdg_icon_cache_update
|
|
|
|
xdg_desktop_database_update
|
|
|
|
}
|
|
|
|
|
|
|
|
pkg_postrm() {
|
|
|
|
xdg_icon_cache_update
|
|
|
|
xdg_desktop_database_update
|
|
|
|
}
|