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: bumblebee-3.2.1.ebuild ChangeLog bumblebee-3.0.1-r2.ebuild
Date: Sun, 26 May 2013 18:55:30
Message-Id: 20130526185523.7B4E52171D@flycatcher.gentoo.org
1 pacho 13/05/26 18:55:23
2
3 Modified: ChangeLog
4 Added: bumblebee-3.2.1.ebuild
5 Removed: bumblebee-3.0.1-r2.ebuild
6 Log:
7 Version bump, drop old
8
9 (Portage version: 2.1.12.1/cvs/Linux x86_64, signed Manifest commit with key A188FBD4)
10
11 Revision Changes Path
12 1.14 x11-misc/bumblebee/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/bumblebee/ChangeLog?rev=1.14&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/bumblebee/ChangeLog?rev=1.14&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/bumblebee/ChangeLog?r1=1.13&r2=1.14
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/x11-misc/bumblebee/ChangeLog,v
21 retrieving revision 1.13
22 retrieving revision 1.14
23 diff -u -r1.13 -r1.14
24 --- ChangeLog 17 Mar 2013 16:14:12 -0000 1.13
25 +++ ChangeLog 26 May 2013 18:55:23 -0000 1.14
26 @@ -1,6 +1,13 @@
27 # ChangeLog for x11-misc/bumblebee
28 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/x11-misc/bumblebee/ChangeLog,v 1.13 2013/03/17 16:14:12 hwoarang Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/x11-misc/bumblebee/ChangeLog,v 1.14 2013/05/26 18:55:23 pacho Exp $
31 +
32 +*bumblebee-3.2.1 (26 May 2013)
33 +
34 + 26 May 2013; Pacho Ramos <pacho@g.o> +bumblebee-3.2.1.ebuild,
35 + -bumblebee-3.0.1-r2.ebuild, -files/99-remove-nvidia-dev.rules,
36 + -files/bumblebee-3.0.1-remove-wait.patch:
37 + Version bump, drop old
38
39 17 Mar 2013; Markos Chandras <hwoarang@g.o> metadata.xml:
40 Add proxy-maintainers to metadata.xml
41
42
43
44 1.1 x11-misc/bumblebee/bumblebee-3.2.1.ebuild
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/bumblebee/bumblebee-3.2.1.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/bumblebee/bumblebee-3.2.1.ebuild?rev=1.1&content-type=text/plain
48
49 Index: bumblebee-3.2.1.ebuild
50 ===================================================================
51 # Copyright 1999-2013 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/x11-misc/bumblebee/bumblebee-3.2.1.ebuild,v 1.1 2013/05/26 18:55:23 pacho Exp $
54
55 EAPI=5
56 inherit eutils multilib readme.gentoo systemd user
57
58 DESCRIPTION="Service providing elegant and stable means of managing Optimus graphics chipsets"
59 HOMEPAGE="http://bumblebee-project.org https://github.com/Bumblebee-Project/Bumblebee"
60 SRC_URI="http://bumblebee-project.org/${P}.tar.gz"
61
62 SLOT="0"
63 LICENSE="GPL-3"
64 KEYWORDS="~amd64 ~x86"
65
66 IUSE="+bbswitch video_cards_nouveau video_cards_nvidia"
67
68 RDEPEND="
69 virtual/opengl
70 x11-base/xorg-drivers[video_cards_nvidia?,video_cards_nouveau?]
71 x11-misc/virtualgl:=
72 bbswitch? ( sys-power/bbswitch )
73 "
74 DEPEND="${RDEPEND}
75 dev-libs/glib:2
76 dev-libs/libbsd
77 sys-apps/help2man
78 virtual/pkgconfig
79 x11-libs/libX11
80 "
81
82 REQUIRED_USE="|| ( video_cards_nouveau video_cards_nvidia )"
83
84 src_configure() {
85 DOC_CONTENTS="In order to use Bumblebee, add your user to 'bumblebee' group.
86 You may need to setup your /etc/bumblebee/bumblebee.conf"
87
88 if use video_cards_nvidia ; then
89 # Get paths to GL libs for all ABIs
90 local nvlib=""
91 for i in $(get_all_libdirs) ; do
92 nvlib="${nvlib}:/usr/${i}/opengl/nvidia/lib"
93 done
94
95 local nvpref="/usr/$(get_libdir)/opengl/nvidia"
96 local xorgpref="/usr/$(get_libdir)/xorg/modules"
97 ECONF_PARAMS="CONF_DRIVER=nvidia CONF_DRIVER_MODULE_NVIDIA=nvidia \
98 CONF_LDPATH_NVIDIA=${nvlib#:} \
99 CONF_MODPATH_NVIDIA=${nvpref}/lib,${nvpref}/extensions,${xorgpref}/drivers,${xorgpref}"
100 fi
101
102 econf \
103 --docdir=/usr/share/doc/"${PF}" \
104 ${ECONF_PARAMS}
105 }
106
107 src_install() {
108 newconfd "${FILESDIR}"/bumblebee.confd bumblebee
109 newinitd "${FILESDIR}"/bumblebee.initd bumblebee
110 newenvd "${FILESDIR}"/bumblebee.envd 99bumblebee
111 systemd_dounit scripts/systemd/bumblebeed.service
112
113 readme.gentoo_create_doc
114
115 default
116 }
117
118 pkg_preinst() {
119 use video_cards_nvidia || rm "${ED}"/etc/bumblebee/xorg.conf.nvidia
120 use video_cards_nouveau || rm "${ED}"/etc/bumblebee/xorg.conf.nouveau
121
122 enewgroup bumblebee
123 }