Gentoo Archives: gentoo-commits

From: Pacho Ramos <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-power/bbswitch/
Date: Fri, 27 May 2022 21:24:06
Message-Id: 1653686633.78d097e83ae5ba89b913a4f34e0a6c115846cc3b.pacho@gentoo
1 commit: 78d097e83ae5ba89b913a4f34e0a6c115846cc3b
2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
3 AuthorDate: Fri May 27 21:23:17 2022 +0000
4 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
5 CommitDate: Fri May 27 21:23:53 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=78d097e8
7
8 sys-power/bbswitch: drop 9999 as we are not really maintaining it
9
10 Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org>
11
12 sys-power/bbswitch/bbswitch-9999.ebuild | 55 ---------------------------------
13 1 file changed, 55 deletions(-)
14
15 diff --git a/sys-power/bbswitch/bbswitch-9999.ebuild b/sys-power/bbswitch/bbswitch-9999.ebuild
16 deleted file mode 100644
17 index 1c9b2ba061f9..000000000000
18 --- a/sys-power/bbswitch/bbswitch-9999.ebuild
19 +++ /dev/null
20 @@ -1,55 +0,0 @@
21 -# Copyright 1999-2021 Gentoo Authors
22 -# Distributed under the terms of the GNU General Public License v2
23 -
24 -EAPI=7
25 -
26 -inherit linux-mod toolchain-funcs
27 -
28 -if [[ ${PV} == 9999 ]]; then
29 - inherit git-r3
30 - EGIT_REPO_URI="https://github.com/Bumblebee-Project/${PN}.git"
31 - EGIT_BRANCH="develop"
32 -else
33 - COMMIT="ddbd243638c7bc2baecf43a78aff46cdc12e9b2e"
34 - SRC_URI="https://github.com/Bumblebee-Project/bbswitch/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
35 - KEYWORDS="~amd64 ~x86"
36 - S="${WORKDIR}/bbswitch-${COMMIT}"
37 -fi
38 -
39 -DESCRIPTION="Toggle discrete NVIDIA Optimus graphics card"
40 -HOMEPAGE="https://github.com/Bumblebee-Project/bbswitch"
41 -
42 -SLOT="0"
43 -LICENSE="GPL-3+"
44 -IUSE=""
45 -
46 -DEPEND="
47 - virtual/linux-sources
48 - sys-kernel/linux-headers
49 -"
50 -RDEPEND=""
51 -
52 -MODULE_NAMES="bbswitch(acpi)"
53 -
54 -pkg_setup() {
55 - linux-mod_pkg_setup
56 -
57 - BUILD_TARGETS="default"
58 - BUILD_PARAMS="KVERSION=${KV_FULL} CC=$(tc-getCC)"
59 -}
60 -
61 -src_prepare() {
62 - # Fix build failure, bug #513542 and bug #761370
63 - sed "s%^KDIR :=.*%KDIR := ${KV_OUT_DIR:-$KERNEL_DIR}%g" -i Makefile || die
64 -
65 - default
66 -}
67 -
68 -src_install() {
69 - einstalldocs
70 -
71 - insinto /etc/modprobe.d
72 - newins "${FILESDIR}"/bbswitch.modprobe bbswitch.conf
73 -
74 - linux-mod_src_install
75 -}