diff --git a/sys-power/tlpui/Manifest b/sys-power/tlpui/Manifest new file mode 100644 index 0000000000..fb3d838431 --- /dev/null +++ b/sys-power/tlpui/Manifest @@ -0,0 +1 @@ +DIST tlpui-1.5.0-6.tar.gz 429569 BLAKE2B 126e4480f7b119caeaa063ad3c5ce04b52deac55f6783e78b139e24a4e79718d13c68c28eb1ef04c8c171434f1a7e5f584df740240d058a74ee12b6b91070fea SHA512 799f57945bea395f82baeeb516b102385fcb0795254f040d994a5c9903d8b71e0256d23e16ebf14683ccc7866ec091bca201cb90090e2ff89abadebfd657e6c7 diff --git a/sys-power/tlpui/metadata.xml b/sys-power/tlpui/metadata.xml new file mode 100644 index 0000000000..04eb9327b3 --- /dev/null +++ b/sys-power/tlpui/metadata.xml @@ -0,0 +1,18 @@ + + + + + 123485k + 1758961307@qq.com + + + d4nj1/TLPUI + + + The Python scripts in this project generate a GTK-UI + to change TLP configuration files easily. + It has the aim to protect users from setting bad + configuration and to deliver a basic overview of all + the valid configuration values. + + diff --git a/sys-power/tlpui/tlpui-1.5.0_p6.ebuild b/sys-power/tlpui/tlpui-1.5.0_p6.ebuild new file mode 100644 index 0000000000..0e276f7e9e --- /dev/null +++ b/sys-power/tlpui/tlpui-1.5.0_p6.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{9..11} ) +DISTUTILS_SINGLE_IMPL=y +inherit distutils-r1 desktop xdg-utils + +if [[ $(ver_cut 4) == "p" ]] ; then + MY_PV="$(ver_cut 1-3)-$(ver_cut 5)" +else + MY_PV="${PV}" +fi + +MY_P="${PN}-${MY_PV}" + +DESCRIPTION="A GTK user interface for TLP written in Python" +HOMEPAGE="https://github.com/d4nj1/TLPUI" +KEYWORDS="~amd64" +SRC_URI="https://github.com/d4nj1/TLPUI/archive/refs/tags/${MY_P}.tar.gz" + +LICENSE="GPL-2+" +SLOT="0" +IUSE="" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" +RESTRICT="test" + +DEPEND="" +RDEPEND=" + ${DEPEND} + sys-power/tlp + $(python_gen_cond_dep 'dev-python/pycairo[${PYTHON_USEDEP}] dev-python/pygobject[${PYTHON_USEDEP}]') + x11-libs/gtksourceview:3.0 +" + +S="${WORKDIR}/TLPUI-${MY_P}" + +python_install_all() { + distutils-r1_python_install_all + doicon -s scalable "${S}/tlpui/icons/themeable/hicolor/scalable/apps/tlpui.svg" + insinto /usr/share/metainfo + doins "${S}/AppImage/com.github.d4nj1.tlpui.appdata.xml" + newmenu "${S}/tlpui.desktop" tlpui.desktop +} + +pkg_postinst() { + xdg_icon_cache_update +} + +pkg_postrm() { + xdg_icon_cache_update +}