Gentoo Archives: gentoo-commits

From: "Pacho Ramos (pacho)" <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in x11-misc/bumblebee: metadata.xml bumblebee-3.0.ebuild Manifest ChangeLog
Date: Sat, 21 Apr 2012 13:26:43
Message-Id: 20120421132618.3118D2004B@flycatcher.gentoo.org
1 pacho 12/04/21 13:26:18
2
3 Added: metadata.xml bumblebee-3.0.ebuild Manifest
4 ChangeLog
5 Log:
6 Initial commit from bumblebee overlay, this fixes bug #384083. Thanks a lot to mva and rei4dan for their work.
7
8 (Portage version: 2.1.10.56/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.1 x11-misc/bumblebee/metadata.xml
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/bumblebee/metadata.xml?rev=1.1&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/bumblebee/metadata.xml?rev=1.1&content-type=text/plain
15
16 Index: metadata.xml
17 ===================================================================
18 <?xml version="1.0" encoding="UTF-8"?>
19 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
20 <pkgmetadata>
21 <maintainer>
22 <email>pacho@g.o</email>
23 <name>Pacho Ramos</name>
24 </maintainer>
25 <maintainer>
26 <email>mva@×××.name</email>
27 <name>Vadim A. Misbakh-Soloviev</name>
28 </maintainer>
29 <maintainer>
30 <email>rei4dan@×××××.com</email>
31 <name>My Th</name>
32 </maintainer>
33 <longdescription>
34 A rewrite of the original Bumblebee service, providing an elegant and stable
35 means of managing Optimus hybrid graphics chipsets. A primary goal of this
36 project is to not only enable use of the discrete GPU for rendering, but
37 also to enable smart power management of the dGPU when it's not in use.
38 </longdescription>
39 <use>
40 <flag name="bbswitch">Add dependency on <pkg>sys-kernel/bbswitch</pkg> for
41 PM feature</flag>
42 </use>
43 </pkgmetadata>
44
45
46
47 1.1 x11-misc/bumblebee/bumblebee-3.0.ebuild
48
49 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/bumblebee/bumblebee-3.0.ebuild?rev=1.1&view=markup
50 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/bumblebee/bumblebee-3.0.ebuild?rev=1.1&content-type=text/plain
51
52 Index: bumblebee-3.0.ebuild
53 ===================================================================
54 # Copyright 1999-2012 Gentoo Foundation
55 # Distributed under the terms of the GNU General Public License v2
56 # $Header: /var/cvsroot/gentoo-x86/x11-misc/bumblebee/bumblebee-3.0.ebuild,v 1.1 2012/04/21 13:26:18 pacho Exp $
57
58 EAPI="4"
59
60 inherit multilib eutils
61
62 DESCRIPTION="Service providing elegant and stable means of managing Optimus graphics chipsets"
63 HOMEPAGE="https://github.com/Bumblebee-Project/Bumblebee"
64 SRC_URI="https://github.com/downloads/Bumblebee-Project/${PN/bu/Bu}/${P/bu/Bu}.tar.gz"
65
66 SLOT="0"
67 LICENSE="GPL-3"
68 KEYWORDS="~amd64 ~x86"
69
70 IUSE="+bbswitch video_cards_nouveau video_cards_nvidia"
71
72 RDEPEND="x11-misc/virtualgl
73 bbswitch? ( sys-power/bbswitch )
74 virtual/opengl
75 x11-base/xorg-drivers[video_cards_nvidia?,video_cards_nouveau?]"
76 DEPEND=">=sys-devel/autoconf-2.68
77 sys-devel/automake
78 sys-devel/gcc
79 dev-util/pkgconfig
80 dev-libs/glib:2
81 x11-libs/libX11
82 dev-libs/libbsd
83 sys-apps/help2man"
84
85 # FIXME: move from ^^ to || once both VIDEO_CARDS are supported at the same time
86 REQUIRED_USE="^^ ( video_cards_nouveau video_cards_nvidia )"
87
88 src_configure() {
89 if use video_cards_nvidia ; then
90 # Get paths to GL libs for all ABIs
91 local nvlib=""
92 for i in $(get_all_libdirs) ; do
93 nvlib="${nvlib}:/usr/${i}/opengl/nvidia/lib"
94 done
95
96 local nvpref="/usr/$(get_libdir)/opengl/nvidia"
97 local xorgpref="/usr/$(get_libdir)/xorg/modules"
98 ECONF_PARAMS="CONF_DRIVER=nvidia CONF_DRIVER_MODULE_NVIDIA=nvidia \
99 CONF_LDPATH_NVIDIA=${nvlib#:} \
100 CONF_MODPATH_NVIDIA=${nvpref}/lib,${nvpref}/extensions,${xorgpref}/drivers,${xorgpref}"
101 fi
102
103 econf ${ECONF_PARAMS}
104 }
105
106 src_install() {
107 use video_cards_nvidia && newconfd "${FILESDIR}"/bumblebee.nvidia-confd bumblebee
108 use video_cards_nouveau && newconfd "${FILESDIR}"/bumblebee.nouveau-confd bumblebee
109 newinitd "${FILESDIR}"/bumblebee.initd bumblebee
110 default
111 }
112
113 pkg_preinst() {
114 ! use video_cards_nvidia && rm "${ED}"/etc/bumblebee/xorg.conf.nvidia
115 ! use video_cards_nouveau && rm "${ED}"/etc/bumblebee/xorg.conf.nouveau
116
117 enewgroup bumblebee
118 }
119
120 pkg_postinst() {
121 ewarn "This is *NOT* all! Bumblebee still *NOT* ready to use."
122 ewarn "You may need to setup your /etc/bumblebee/bumblebee.conf!"
123 ewarn "For example, default config suggests you have bbswitch installed."
124 ewarn "Also you should add your user to 'bumblebee' group."
125 }
126
127
128
129 1.1 x11-misc/bumblebee/Manifest
130
131 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/bumblebee/Manifest?rev=1.1&view=markup
132 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/bumblebee/Manifest?rev=1.1&content-type=text/plain
133
134 Index: Manifest
135 ===================================================================
136 AUX bumblebee.initd 497 RMD160 15662b454dd86fd9b31729853fb8729a66eb5ddb SHA1 603ea131d6e08d8138ea6c09ba11e94facf652c1 SHA256 9bdeecdbe9e73b9947a78fc037095a3e0278e227c71df2ffe294dc05e7841546
137 AUX bumblebee.nouveau-confd 60 RMD160 dca2e620d95414c3fcab40698d54dbb8d2897bc1 SHA1 ae5e15d8262b92ab4916435aa1c2552203a839a9 SHA256 9e0287f542cff0fd3452a0c3d6d427a3404706c93ac9a00f4d99fe52ed596d75
138 AUX bumblebee.nvidia-confd 254 RMD160 4f9b93dcc275144d408d0f88b43141facdcdf2a9 SHA1 1a00a275c67ea6f2136714bf8899cf82dedb4fff SHA256 a3f70218e277c41903685de7870b5ddc0b1a51747ad24644b698166f1a20ec01
139 DIST Bumblebee-3.0.tar.gz 136935 RMD160 510443fb17968ff8d3be1f3fdd5372132ceab75f SHA1 b5afc562e33fa23abd2cb9b83dee6d549d133f23 SHA256 a27ddb77b282ac8b972857fdb0dc5061cf0a0982b7ac3e1cfa698b4f786e49a1
140 EBUILD bumblebee-3.0.ebuild 2195 RMD160 47017457822bb5a3aaa622b0e1a5a60a33e5979d SHA1 7ee397e370ee771e844f9032233f3c9b07b9e1d7 SHA256 b5a4c95249defec1b177076397289fdbb6dbfbe897d1c6fb6b73cf13967c7a98
141 MISC metadata.xml 850 RMD160 254bf644166dd9e906489cbb33aedd1603e01f89 SHA1 b6ebfb742169d136897d8b9aec640b65de4e05d6 SHA256 ceb120933f3d5123a3ffced5a07d507e86fce4ec189c171bca877a37118d025a
142
143
144
145 1.1 x11-misc/bumblebee/ChangeLog
146
147 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/bumblebee/ChangeLog?rev=1.1&view=markup
148 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/bumblebee/ChangeLog?rev=1.1&content-type=text/plain
149
150 Index: ChangeLog
151 ===================================================================
152 # ChangeLog for x11-misc/bumblebee
153 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
154 # $Header: /var/cvsroot/gentoo-x86/x11-misc/bumblebee/ChangeLog,v 1.1 2012/04/21 13:26:18 pacho Exp $
155
156 *bumblebee-3.0 (21 Apr 2012)
157
158 21 Apr 2012; Pacho Ramos <pacho@g.o> +bumblebee-3.0.ebuild,
159 +files/bumblebee.initd, +files/bumblebee.nouveau-confd,
160 +files/bumblebee.nvidia-confd, +metadata.xml:
161 Initial commit from bumblebee overlay, this fixes bug #384083. Thanks a lot to
162 mva and rei4dan for their work.