1 |
commit: aed2097130e19618bb971068565d9406ad6f1c69 |
2 |
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Feb 27 14:30:44 2023 +0000 |
4 |
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 27 14:30:44 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aed20971 |
7 |
|
8 |
sys-power/switcheroo-control: drop 2.6, 2.6-r1 |
9 |
|
10 |
Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org> |
11 |
|
12 |
.../switcheroo-control-2.6-r1.ebuild | 64 ---------------------- |
13 |
.../switcheroo-control-2.6.ebuild | 53 ------------------ |
14 |
2 files changed, 117 deletions(-) |
15 |
|
16 |
diff --git a/sys-power/switcheroo-control/switcheroo-control-2.6-r1.ebuild b/sys-power/switcheroo-control/switcheroo-control-2.6-r1.ebuild |
17 |
deleted file mode 100644 |
18 |
index b89e15d6d645..000000000000 |
19 |
--- a/sys-power/switcheroo-control/switcheroo-control-2.6-r1.ebuild |
20 |
+++ /dev/null |
21 |
@@ -1,64 +0,0 @@ |
22 |
-# Copyright 2021-2023 Gentoo Authors |
23 |
-# Distributed under the terms of the GNU General Public License v2 |
24 |
- |
25 |
-EAPI=8 |
26 |
-PYTHON_COMPAT=( python3_{9..11} ) |
27 |
- |
28 |
-inherit meson python-any-r1 systemd |
29 |
- |
30 |
-DESCRIPTION="D-Bus service to check the availability of dual-GPU" |
31 |
-HOMEPAGE="https://gitlab.freedesktop.org/hadess/switcheroo-control/" |
32 |
-SRC_URI="https://gitlab.freedesktop.org/hadess/switcheroo-control/uploads/86ea54ac7ddb901b6bf6e915209151f8/${P}.tar.xz" |
33 |
- |
34 |
-LICENSE="GPL-3" |
35 |
-SLOT="0" |
36 |
-IUSE="gtk-doc test" |
37 |
- |
38 |
-KEYWORDS="amd64" |
39 |
- |
40 |
-RDEPEND=" |
41 |
- >=dev-libs/glib-2.56.0:2 |
42 |
- >=dev-libs/libgudev-232:= |
43 |
-" |
44 |
-DEPEND="${RDEPEND}" |
45 |
-BDEPEND=" |
46 |
- dev-util/gdbus-codegen |
47 |
- gtk-doc? ( dev-util/gtk-doc ) |
48 |
- test? ( |
49 |
- $(python_gen_any_dep 'dev-python/python-dbusmock[${PYTHON_USEDEP}]') |
50 |
- dev-util/umockdev |
51 |
- ) |
52 |
-" |
53 |
- |
54 |
-RESTRICT="!test? ( test )" |
55 |
- |
56 |
-python_check_deps() { |
57 |
- use test || return 0 |
58 |
- python_has_version "dev-python/python-dbusmock[${PYTHON_USEDEP}]" |
59 |
-} |
60 |
- |
61 |
-src_configure() { |
62 |
- local emesonargs=( |
63 |
- -Dsystemdsystemunitdir="$(systemd_get_systemunitdir)" |
64 |
- $(meson_use gtk-doc gtk_doc) |
65 |
- $(meson_use test tests) |
66 |
- ) |
67 |
- meson_src_configure |
68 |
-} |
69 |
- |
70 |
-src_install() { |
71 |
- meson_src_install |
72 |
- python_fix_shebang "${D}"/usr/bin/switcherooctl |
73 |
- newinitd "${FILESDIR}"/${PN}-init.d ${PN} |
74 |
-} |
75 |
- |
76 |
-pkg_postinst() { |
77 |
- if [[ -z "${REPLACING_VERSIONS}" ]]; then |
78 |
- elog "You to enable the service:" |
79 |
- if systemd_is_booted; then |
80 |
- elog "# systemctl enable switcheroo-control" |
81 |
- else |
82 |
- elog "# rc-update add ${PN} default" |
83 |
- fi |
84 |
- fi |
85 |
-} |
86 |
|
87 |
diff --git a/sys-power/switcheroo-control/switcheroo-control-2.6.ebuild b/sys-power/switcheroo-control/switcheroo-control-2.6.ebuild |
88 |
deleted file mode 100644 |
89 |
index b4d8bf68db8f..000000000000 |
90 |
--- a/sys-power/switcheroo-control/switcheroo-control-2.6.ebuild |
91 |
+++ /dev/null |
92 |
@@ -1,53 +0,0 @@ |
93 |
-# Copyright 2021-2023 Gentoo Authors |
94 |
-# Distributed under the terms of the GNU General Public License v2 |
95 |
- |
96 |
-EAPI=8 |
97 |
-PYTHON_COMPAT=( python3_{9..11} ) |
98 |
- |
99 |
-inherit meson python-any-r1 |
100 |
- |
101 |
-DESCRIPTION="D-Bus service to check the availability of dual-GPU" |
102 |
-HOMEPAGE="https://gitlab.freedesktop.org/hadess/switcheroo-control/" |
103 |
-SRC_URI="https://gitlab.freedesktop.org/hadess/switcheroo-control/uploads/86ea54ac7ddb901b6bf6e915209151f8/${P}.tar.xz" |
104 |
- |
105 |
-LICENSE="GPL-3" |
106 |
-SLOT="0" |
107 |
-IUSE="gtk-doc test" |
108 |
- |
109 |
-KEYWORDS="amd64" |
110 |
- |
111 |
-RDEPEND=" |
112 |
- >=dev-libs/glib-2.56.0:2 |
113 |
- >=dev-libs/libgudev-232:= |
114 |
- sys-apps/systemd |
115 |
-" |
116 |
-DEPEND="${RDEPEND}" |
117 |
-BDEPEND=" |
118 |
- gtk-doc? ( dev-util/gtk-doc ) |
119 |
- test? ( |
120 |
- $(python_gen_any_dep 'dev-python/python-dbusmock[${PYTHON_USEDEP}]') |
121 |
- dev-util/umockdev |
122 |
- ) |
123 |
-" |
124 |
- |
125 |
-RESTRICT="!test? ( test )" |
126 |
- |
127 |
-python_check_deps() { |
128 |
- use test || return 0 |
129 |
- python_has_version "dev-python/python-dbusmock[${PYTHON_USEDEP}]" |
130 |
-} |
131 |
- |
132 |
-src_configure() { |
133 |
- local emesonargs=( |
134 |
- $(meson_use gtk-doc gtk_doc) |
135 |
- $(meson_use test tests) |
136 |
- ) |
137 |
- meson_src_configure |
138 |
-} |
139 |
- |
140 |
-pkg_postinst() { |
141 |
- if [[ -z "${REPLACING_VERSIONS}" ]]; then |
142 |
- elog "You need to run systemd and enable the service:" |
143 |
- elog "# systemctl enable switcheroo-control" |
144 |
- fi |
145 |
-} |