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