mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 17:09:10 -07:00
sys-power/switcheroo-control: New package
Package-Manager: Portage-3.0.17, Repoman-3.0.2 Signed-off-by: Pacho Ramos <pacho@gentoo.org>
This commit is contained in:
1
sys-power/switcheroo-control/Manifest
Normal file
1
sys-power/switcheroo-control/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST switcheroo-control-2.4.tar.xz 27964 BLAKE2B f85014ad6696e301bafd75b694f5c130498171d95b0330d2996568737cbcd677eef5256bc47638bf87d178d6fe099f3c53bd710a1534db20f1dbe5fbe51681c7 SHA512 47f071b17cbb520d862800ef2d8389ada1130be96a8c1efed9be6793081b5826355ad30b0feeba1cc9eda792b4c943ffc852d12648b0c5e74f25c207d151c1c3
|
||||
7
sys-power/switcheroo-control/metadata.xml
Normal file
7
sys-power/switcheroo-control/metadata.xml
Normal file
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>pacho@gentoo.org</email>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
||||
39
sys-power/switcheroo-control/switcheroo-control-2.4.ebuild
Normal file
39
sys-power/switcheroo-control/switcheroo-control-2.4.ebuild
Normal file
@@ -0,0 +1,39 @@
|
||||
# Copyright 2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
inherit meson
|
||||
|
||||
DESCRIPTION="D-Bus service to check the availability of dual-GPU"
|
||||
HOMEPAGE="https://gitlab.freedesktop.org/hadess/switcheroo-control/"
|
||||
SRC_URI="https://gitlab.freedesktop.org/hadess/switcheroo-control/uploads/accd4a9492979bfd91b587ae7e18d3a2/${P}.tar.xz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
IUSE="gtk-doc"
|
||||
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-libs/glib-2.56.0:2
|
||||
>=dev-libs/libgudev-232:=
|
||||
sys-apps/systemd
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="
|
||||
gtk-doc? ( dev-util/gtk-doc )
|
||||
"
|
||||
|
||||
src_configure() {
|
||||
local emesonargs=(
|
||||
$(meson_use gtk-doc gtk_doc)
|
||||
)
|
||||
meson_src_configure
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ -z "${REPLACING_VERSIONS}" ]]; then
|
||||
elog "You need to run systemd and enable the service:"
|
||||
elog "# systemctl enable switcheroo-control"
|
||||
fi
|
||||
}
|
||||
Reference in New Issue
Block a user