1 |
commit: 4060ba6084e442434414ccb07fcb300aaa47b83e |
2 |
Author: NP-Hardass <NP-Hardass <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jan 24 01:28:39 2017 +0000 |
4 |
Commit: NP Hardass <np-hardass <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jan 25 23:02:47 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4060ba60 |
7 |
|
8 |
x11-misc/bumblebee: Add snapshot and live ebuild |
9 |
|
10 |
Package-Manager: portage-2.3.0 |
11 |
|
12 |
x11-misc/bumblebee/Manifest | 1 + |
13 |
.../bumblebee/bumblebee-3.2.1_p20170123.ebuild | 101 +++++++++++++++++++++ |
14 |
x11-misc/bumblebee/bumblebee-9999.ebuild | 101 +++++++++++++++++++++ |
15 |
3 files changed, 203 insertions(+) |
16 |
|
17 |
diff --git a/x11-misc/bumblebee/Manifest b/x11-misc/bumblebee/Manifest |
18 |
index eefc4b2..01905de 100644 |
19 |
--- a/x11-misc/bumblebee/Manifest |
20 |
+++ b/x11-misc/bumblebee/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST bumblebee-3.2.1.tar.gz 143110 SHA256 1018703b07e2f607a4641249d69478ce076ae5a1e9dd6cff5694d394fa7ee30e SHA512 6f016f75d199577215ff00c059e196829e9d3efeb0fb6eebe6c3fad6176e330332e1ef25875a22ac9892895683d95899ea44f1ec1f85d31300ad83cb1fe0310a WHIRLPOOL 0d59b205f3c57afbf3fa6c8a55964afed8684e57db045e4c333c8e94f0b5d91637963a0b9f386eb6fe655716b8854e82ae5724dacdc76a34de6eb1f99ffc4908 |
23 |
+DIST bumblebee-3.2.1_p20170123.tar.gz 63376 SHA256 bf98d902045f3fa95633816ee34babb76fd1e537090618c632f123d28372c751 SHA512 398101927211a8d09f19d519fd0537c94b942bd7fc11d10d394a3a520f2afa6abe174db78b60bb134caf78ffda4cdd50d0ef424134acd07ff4ce93998881e31b WHIRLPOOL 8bf5367fcd9e4c90d104d97fe767197c9d65cc26f4eb8ca01cb4f18d678df101dad36dc10cfe7be75fc65fd129a171a6d034a96313c86c17085ed6ec81bdddc7 |
24 |
|
25 |
diff --git a/x11-misc/bumblebee/bumblebee-3.2.1_p20170123.ebuild b/x11-misc/bumblebee/bumblebee-3.2.1_p20170123.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000..ef99702 |
28 |
--- /dev/null |
29 |
+++ b/x11-misc/bumblebee/bumblebee-3.2.1_p20170123.ebuild |
30 |
@@ -0,0 +1,101 @@ |
31 |
+# Copyright 1999-2017 Gentoo Foundation |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+# $Id$ |
34 |
+ |
35 |
+EAPI=6 |
36 |
+ |
37 |
+inherit autotools readme.gentoo-r1 multilib systemd user |
38 |
+ |
39 |
+if [[ ${PV} == 9999 ]]; then |
40 |
+ EGIT_REPO_URI="git://github.com/Bumblebee-Project/Bumblebee.git" |
41 |
+ EGIT_BRANCH="develop" |
42 |
+else |
43 |
+ COMMIT="c322bd849aabe6e48b4304b8d13cc4aadc36a30d" |
44 |
+ SRC_URI="https://github.com/Bumblebee-Project/Bumblebee/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" |
45 |
+ KEYWORDS="~amd64 ~x86" |
46 |
+ |
47 |
+ S="${WORKDIR}/Bumblebee-${COMMIT}" |
48 |
+fi |
49 |
+ |
50 |
+DESCRIPTION="Service providing elegant and stable means of managing Optimus graphics chipsets" |
51 |
+HOMEPAGE="http://bumblebee-project.org https://github.com/Bumblebee-Project/Bumblebee" |
52 |
+ |
53 |
+SLOT="0" |
54 |
+LICENSE="GPL-3" |
55 |
+ |
56 |
+IUSE="+bbswitch video_cards_nouveau video_cards_nvidia" |
57 |
+ |
58 |
+COMMON_DEPEND=" |
59 |
+ dev-libs/glib:2 |
60 |
+ dev-libs/libbsd |
61 |
+ sys-apps/kmod |
62 |
+ x11-libs/libX11 |
63 |
+" |
64 |
+ |
65 |
+RDEPEND="${COMMON_DEPEND} |
66 |
+ virtual/opengl |
67 |
+ x11-base/xorg-drivers[video_cards_nvidia?,video_cards_nouveau?] |
68 |
+ bbswitch? ( sys-power/bbswitch ) |
69 |
+" |
70 |
+ |
71 |
+DEPEND="${COMMON_DEPEND} |
72 |
+ sys-apps/help2man |
73 |
+ virtual/pkgconfig |
74 |
+" |
75 |
+ |
76 |
+PDEPEND=" |
77 |
+ || ( |
78 |
+ x11-misc/primus |
79 |
+ x11-misc/virtualgl |
80 |
+ ) |
81 |
+" |
82 |
+ |
83 |
+REQUIRED_USE="|| ( video_cards_nouveau video_cards_nvidia )" |
84 |
+ |
85 |
+pkg_setup() { |
86 |
+ enewgroup bumblebee |
87 |
+} |
88 |
+ |
89 |
+src_prepare() { |
90 |
+ default |
91 |
+ eautoreconf |
92 |
+} |
93 |
+ |
94 |
+src_configure() { |
95 |
+ DOC_CONTENTS="In order to use Bumblebee, add your user to 'bumblebee' group. |
96 |
+ You may need to setup your /etc/bumblebee/bumblebee.conf" |
97 |
+ |
98 |
+ if use video_cards_nvidia ; then |
99 |
+ # Get paths to GL libs for all ABIs |
100 |
+ local nvlib="" |
101 |
+ for i in $(get_all_libdirs) ; do |
102 |
+ nvlib="${nvlib}:/usr/${i}/opengl/nvidia/lib" |
103 |
+ done |
104 |
+ |
105 |
+ local nvpref="/usr/$(get_libdir)/opengl/nvidia" |
106 |
+ local xorgpref="/usr/$(get_libdir)/xorg/modules" |
107 |
+ ECONF_PARAMS="CONF_DRIVER=nvidia CONF_DRIVER_MODULE_NVIDIA=nvidia \ |
108 |
+ CONF_LDPATH_NVIDIA=${nvlib#:} \ |
109 |
+ CONF_MODPATH_NVIDIA=${nvpref}/lib,${nvpref}/extensions,${xorgpref}/drivers,${xorgpref}" |
110 |
+ fi |
111 |
+ |
112 |
+ econf \ |
113 |
+ --docdir=/usr/share/doc/"${PF}" \ |
114 |
+ ${ECONF_PARAMS} |
115 |
+} |
116 |
+ |
117 |
+src_install() { |
118 |
+ newconfd "${FILESDIR}"/${PN}.confd ${PN} |
119 |
+ newinitd "${FILESDIR}"/${PN}.initd ${PN} |
120 |
+ newenvd "${FILESDIR}"/${PN}.envd 99${PN} |
121 |
+ systemd_dounit scripts/systemd/bumblebeed.service |
122 |
+ |
123 |
+ readme.gentoo_create_doc |
124 |
+ |
125 |
+ default |
126 |
+} |
127 |
+# |
128 |
+#pkg_preinst() { |
129 |
+# use video_cards_nvidia || rm "${ED}"/etc/bumblebee/xorg.conf.nvidia |
130 |
+# use video_cards_nouveau || rm "${ED}"/etc/bumblebee/xorg.conf.nouveau |
131 |
+#} |
132 |
|
133 |
diff --git a/x11-misc/bumblebee/bumblebee-9999.ebuild b/x11-misc/bumblebee/bumblebee-9999.ebuild |
134 |
new file mode 100644 |
135 |
index 00000000..ef99702 |
136 |
--- /dev/null |
137 |
+++ b/x11-misc/bumblebee/bumblebee-9999.ebuild |
138 |
@@ -0,0 +1,101 @@ |
139 |
+# Copyright 1999-2017 Gentoo Foundation |
140 |
+# Distributed under the terms of the GNU General Public License v2 |
141 |
+# $Id$ |
142 |
+ |
143 |
+EAPI=6 |
144 |
+ |
145 |
+inherit autotools readme.gentoo-r1 multilib systemd user |
146 |
+ |
147 |
+if [[ ${PV} == 9999 ]]; then |
148 |
+ EGIT_REPO_URI="git://github.com/Bumblebee-Project/Bumblebee.git" |
149 |
+ EGIT_BRANCH="develop" |
150 |
+else |
151 |
+ COMMIT="c322bd849aabe6e48b4304b8d13cc4aadc36a30d" |
152 |
+ SRC_URI="https://github.com/Bumblebee-Project/Bumblebee/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" |
153 |
+ KEYWORDS="~amd64 ~x86" |
154 |
+ |
155 |
+ S="${WORKDIR}/Bumblebee-${COMMIT}" |
156 |
+fi |
157 |
+ |
158 |
+DESCRIPTION="Service providing elegant and stable means of managing Optimus graphics chipsets" |
159 |
+HOMEPAGE="http://bumblebee-project.org https://github.com/Bumblebee-Project/Bumblebee" |
160 |
+ |
161 |
+SLOT="0" |
162 |
+LICENSE="GPL-3" |
163 |
+ |
164 |
+IUSE="+bbswitch video_cards_nouveau video_cards_nvidia" |
165 |
+ |
166 |
+COMMON_DEPEND=" |
167 |
+ dev-libs/glib:2 |
168 |
+ dev-libs/libbsd |
169 |
+ sys-apps/kmod |
170 |
+ x11-libs/libX11 |
171 |
+" |
172 |
+ |
173 |
+RDEPEND="${COMMON_DEPEND} |
174 |
+ virtual/opengl |
175 |
+ x11-base/xorg-drivers[video_cards_nvidia?,video_cards_nouveau?] |
176 |
+ bbswitch? ( sys-power/bbswitch ) |
177 |
+" |
178 |
+ |
179 |
+DEPEND="${COMMON_DEPEND} |
180 |
+ sys-apps/help2man |
181 |
+ virtual/pkgconfig |
182 |
+" |
183 |
+ |
184 |
+PDEPEND=" |
185 |
+ || ( |
186 |
+ x11-misc/primus |
187 |
+ x11-misc/virtualgl |
188 |
+ ) |
189 |
+" |
190 |
+ |
191 |
+REQUIRED_USE="|| ( video_cards_nouveau video_cards_nvidia )" |
192 |
+ |
193 |
+pkg_setup() { |
194 |
+ enewgroup bumblebee |
195 |
+} |
196 |
+ |
197 |
+src_prepare() { |
198 |
+ default |
199 |
+ eautoreconf |
200 |
+} |
201 |
+ |
202 |
+src_configure() { |
203 |
+ DOC_CONTENTS="In order to use Bumblebee, add your user to 'bumblebee' group. |
204 |
+ You may need to setup your /etc/bumblebee/bumblebee.conf" |
205 |
+ |
206 |
+ if use video_cards_nvidia ; then |
207 |
+ # Get paths to GL libs for all ABIs |
208 |
+ local nvlib="" |
209 |
+ for i in $(get_all_libdirs) ; do |
210 |
+ nvlib="${nvlib}:/usr/${i}/opengl/nvidia/lib" |
211 |
+ done |
212 |
+ |
213 |
+ local nvpref="/usr/$(get_libdir)/opengl/nvidia" |
214 |
+ local xorgpref="/usr/$(get_libdir)/xorg/modules" |
215 |
+ ECONF_PARAMS="CONF_DRIVER=nvidia CONF_DRIVER_MODULE_NVIDIA=nvidia \ |
216 |
+ CONF_LDPATH_NVIDIA=${nvlib#:} \ |
217 |
+ CONF_MODPATH_NVIDIA=${nvpref}/lib,${nvpref}/extensions,${xorgpref}/drivers,${xorgpref}" |
218 |
+ fi |
219 |
+ |
220 |
+ econf \ |
221 |
+ --docdir=/usr/share/doc/"${PF}" \ |
222 |
+ ${ECONF_PARAMS} |
223 |
+} |
224 |
+ |
225 |
+src_install() { |
226 |
+ newconfd "${FILESDIR}"/${PN}.confd ${PN} |
227 |
+ newinitd "${FILESDIR}"/${PN}.initd ${PN} |
228 |
+ newenvd "${FILESDIR}"/${PN}.envd 99${PN} |
229 |
+ systemd_dounit scripts/systemd/bumblebeed.service |
230 |
+ |
231 |
+ readme.gentoo_create_doc |
232 |
+ |
233 |
+ default |
234 |
+} |
235 |
+# |
236 |
+#pkg_preinst() { |
237 |
+# use video_cards_nvidia || rm "${ED}"/etc/bumblebee/xorg.conf.nvidia |
238 |
+# use video_cards_nouveau || rm "${ED}"/etc/bumblebee/xorg.conf.nouveau |
239 |
+#} |