mirror of
https://github.com/gryf/gryf-overlay.git
synced 2025-12-25 16:02:30 +01:00
44 lines
985 B
Bash
44 lines
985 B
Bash
# Copyright 1999-2020 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
PYTHON_COMPAT=( python3_{8..11} )
|
|
DISTUTILS_USE_SETUPTOOLS=bdepend
|
|
|
|
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}" == *9999* ]]; then
|
|
inherit git-r3
|
|
EGIT_REPO_URI="https://gitlab.com/screenkey/${PN}.git"
|
|
else
|
|
SRC_URI="https://gitlab.com/screenkey/${PN}/-/archive/v${PV}/${PN}-v${PV}.tar.gz -> ${P}.tar.gz"
|
|
KEYWORDS="~amd64 ~x86"
|
|
S="${WORKDIR}"/"${PN}"-v"${PV}"
|
|
fi
|
|
|
|
RESTRICT="test"
|
|
LICENSE="GPL-3"
|
|
SLOT="0"
|
|
|
|
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
|
|
|
|
# Change the doc install path
|
|
sed -i "s/share\/doc\/screenkey/share\/doc\/${P}/g" setup.py || die
|
|
|
|
default
|
|
}
|