mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-21 21:13:27 -04:00
app-misc/brightness-control: add 2.4, drop 2.0
Closes: https://bugs.gentoo.org/839603 Closes: https://bugs.gentoo.org/799566 Closes: https://bugs.gentoo.org/799593 Closes: https://bugs.gentoo.org/783051 Closes: https://bugs.gentoo.org/783054 Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
@@ -1 +1 @@
|
||||
DIST brightness-control-2.0_p20210331.tar.gz 285852 BLAKE2B a5fb5a91498e53fe0e08a67a4dafe7b10bd5d84c73154e84f1c3c473b85765dcf21afef02a55ea1965a574cfcab99cee5fa90d923cda301be3f15350734a9985 SHA512 e8a6b9080c8929a1f3b6f0284e25f705062e11a18f1bff264b2d4a6ce8a7068c65254ce8f53801db09dc32e0f2dd436cdf01e57697eb26d0742821b8c4b46ad9
|
||||
DIST brightness-control-2.4.tar.gz 293989 BLAKE2B 47b89fc6b81885823b82170f57fbe6b69f52b3ec7e77613dba84ea6a46af26d0c25256d4c76410ba61db011c1401b1c6ac68f059c4189ae1c6c416e5a830941a SHA512 b16297602d99c63293b7eeb6ceb49e68d2361e47b9f4aeae4f035c0b0834aecff45d25a9e27b1ec275b42377bc32f1ea17fe68dc95417e1cca597600f7b87882
|
||||
|
||||
@@ -1,34 +0,0 @@
|
||||
# Copyright 2019-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
DISTUTILS_SINGLE_IMPL=1
|
||||
|
||||
inherit distutils-r1 desktop
|
||||
|
||||
COMMIT="ea7434ae53681c591daa2ced0d107f4b4bb6f997"
|
||||
DESCRIPTION="Qt Brightness Controller in Python"
|
||||
HOMEPAGE="https://github.com/lordamit/Brightness"
|
||||
SRC_URI="https://github.com/lordamit/Brightness/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/Brightness-${COMMIT}/src"
|
||||
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
LICENSE="GPL-1"
|
||||
SLOT="0"
|
||||
|
||||
BDEPEND="$(python_gen_cond_dep \
|
||||
'dev-python/cx_Freeze[${PYTHON_USEDEP}]'
|
||||
)"
|
||||
|
||||
RDEPEND="$(python_gen_cond_dep \
|
||||
'dev-python/QtPy[${PYTHON_USEDEP}]'
|
||||
)"
|
||||
|
||||
python_install_all () {
|
||||
distutils-r1_python_install_all
|
||||
|
||||
doicon -s scalable icons/brightness-controller.svg
|
||||
make_desktop_entry brightness "Brightness Controller" brightness-controller Settings
|
||||
}
|
||||
43
app-misc/brightness-control/brightness-control-2.4.ebuild
Normal file
43
app-misc/brightness-control/brightness-control-2.4.ebuild
Normal file
@@ -0,0 +1,43 @@
|
||||
# Copyright 2019-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..11} )
|
||||
DISTUTILS_USE_PEP517=poetry
|
||||
DISTUTILS_SINGLE_IMPL=1
|
||||
|
||||
inherit distutils-r1 desktop optfeature
|
||||
|
||||
MY_PN="Brightness"
|
||||
DESCRIPTION="Qt Brightness Controller in Python"
|
||||
HOMEPAGE="https://github.com/lordamit/Brightness"
|
||||
SRC_URI="https://github.com/lordamit/${MY_PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/${MY_PN}-${PV}/brightness-controller-linux"
|
||||
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
|
||||
RDEPEND="$(python_gen_cond_dep \
|
||||
'dev-python/QtPy[${PYTHON_USEDEP},gui,network,pyqt5,widgets]'
|
||||
)"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
python_prepare_all() {
|
||||
distutils-r1_python_prepare_all
|
||||
|
||||
sed "/readme.md/d" -i pyproject.toml || die
|
||||
}
|
||||
|
||||
python_install_all () {
|
||||
distutils-r1_python_install_all
|
||||
|
||||
doicon -s scalable brightness_controller_linux/icons/brightness-controller.svg
|
||||
make_desktop_entry brightness-controller "Brightness Controller" brightness-controller Settings
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
optfeature "direct control" app-misc/ddcutil
|
||||
}
|
||||
Reference in New Issue
Block a user