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: Tue, 21 Dec 2021 18:54:56
Message-Id: 1640112888.1dba32c6c3436924b55e2352d16b04430110c2f8.pacho@gentoo
1 commit: 1dba32c6c3436924b55e2352d16b04430110c2f8
2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
3 AuthorDate: Tue Dec 21 18:51:59 2021 +0000
4 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 21 18:54:48 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1dba32c6
7
8 sys-power/bbswitch: Bump to new snapshot
9
10 Package-Manager: Portage-3.0.30, Repoman-3.0.3
11 Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org>
12
13 sys-power/bbswitch/Manifest | 1 +
14 sys-power/bbswitch/bbswitch-0.8_p20211129.ebuild | 55 ++++++++++++++++++++++++
15 2 files changed, 56 insertions(+)
16
17 diff --git a/sys-power/bbswitch/Manifest b/sys-power/bbswitch/Manifest
18 index 2a7fb6d487ff..97f834f76331 100644
19 --- a/sys-power/bbswitch/Manifest
20 +++ b/sys-power/bbswitch/Manifest
21 @@ -1 +1,2 @@
22 DIST bbswitch-0.8_p20200526.tar.gz 15869 BLAKE2B cdeaf539a0996f53d3add215fca1127321b7183526a248340177f4320171b92a5ce531eeedfb1da2f0d9f07c6b61e8cfb635a457406e477640f2e7090b29b655 SHA512 487bcd845d1f462e77b5b9e3f304cd28d0ddfd391ecc36de530a3d18d9d4932bc895ed29972e27006b6f3eeb50c37b523ef786a26b6ee75c19fa55288a496d4a
23 +DIST bbswitch-0.8_p20211129.tar.gz 15889 BLAKE2B f81343529957603734bc29453ae9513eb5e19a87425adb8975c621357c7caa0f353e06367cc186230adb28f75ae48330a58ba904854415bc118c8573f71566a0 SHA512 e7873ae34aed13e8f4d5709fede763552c28528e853ad02ee4a4377c043f1ce2ae5f7fc3e831ea1dc65f5a1c0a5ddded93b451258b539ed72b0e1c196676a677
24
25 diff --git a/sys-power/bbswitch/bbswitch-0.8_p20211129.ebuild b/sys-power/bbswitch/bbswitch-0.8_p20211129.ebuild
26 new file mode 100644
27 index 000000000000..409b02bf015a
28 --- /dev/null
29 +++ b/sys-power/bbswitch/bbswitch-0.8_p20211129.ebuild
30 @@ -0,0 +1,55 @@
31 +# Copyright 1999-2021 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +inherit linux-mod toolchain-funcs
37 +
38 +if [[ ${PV} == 9999 ]]; then
39 + inherit git-r3
40 + EGIT_REPO_URI="https://github.com/Bumblebee-Project/${PN}.git"
41 + EGIT_BRANCH="develop"
42 +else
43 + COMMIT="23891174a80ea79c7720bcc7048a5c2bfcde5cd9"
44 + SRC_URI="https://github.com/Bumblebee-Project/bbswitch/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
45 + KEYWORDS="~amd64 ~x86"
46 + S="${WORKDIR}/bbswitch-${COMMIT}"
47 +fi
48 +
49 +DESCRIPTION="Toggle discrete NVIDIA Optimus graphics card"
50 +HOMEPAGE="https://github.com/Bumblebee-Project/bbswitch"
51 +
52 +SLOT="0"
53 +LICENSE="GPL-3+"
54 +IUSE=""
55 +
56 +DEPEND="
57 + virtual/linux-sources
58 + sys-kernel/linux-headers
59 +"
60 +RDEPEND=""
61 +
62 +MODULE_NAMES="bbswitch(acpi)"
63 +
64 +pkg_setup() {
65 + linux-mod_pkg_setup
66 +
67 + BUILD_TARGETS="default"
68 + BUILD_PARAMS="KVERSION=${KV_FULL} CC=$(tc-getCC)"
69 +}
70 +
71 +src_prepare() {
72 + # Fix build failure, bug #513542 and bug #761370
73 + sed "s%^KDIR :=.*%KDIR := ${KV_OUT_DIR:-$KERNEL_DIR}%g" -i Makefile || die
74 +
75 + default
76 +}
77 +
78 +src_install() {
79 + einstalldocs
80 +
81 + insinto /etc/modprobe.d
82 + newins "${FILESDIR}"/bbswitch.modprobe bbswitch.conf
83 +
84 + linux-mod_src_install
85 +}