x11-misc/screenkey: add 1.2 and 9999; move from src_prepare-overlay

Package-Manager: Portage-3.0.9, Repoman-3.0.2
Signed-off-by: Maciej Barć <xgqt@protonmail.com>
This commit is contained in:
Maciej Barć
2020-11-29 14:18:10 +01:00
parent be8345ef43
commit eb9ab072ec
4 changed files with 98 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST screenkey-1.2.tar.gz 71803 BLAKE2B 3f3ece34f9a3ba2907411d96022c329e63bbc55924f97cb13472b25740051bdaacb745601dde3ff8e162f807057bfc6d11ba1dd4a828c597c5f3ea6185d9b7d2 SHA512 0a9454409f3615849380765ecf884ef02049b9e9e8d6af6ae58d565f879eccb5821845341410232a1c252f9da294a9528557792e713f81915a2433cd14babf8b

View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>xgqt@protonmail.com</email>
<name>Maciej Barć</name>
</maintainer>
<upstream>
<remote-id type="github">screenkey/screenkey</remote-id>
</upstream>
</pkgmetadata>

View File

@@ -0,0 +1,43 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{6..9} )
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"
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
}

View File

@@ -0,0 +1,43 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{6..9} )
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"
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
}