diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /x11-misc/bumblebee |
reinit the tree, so we can have metadata
Diffstat (limited to 'x11-misc/bumblebee')
-rw-r--r-- | x11-misc/bumblebee/Manifest | 11 | ||||
-rw-r--r-- | x11-misc/bumblebee/bumblebee-3.2.1.ebuild | 76 | ||||
-rw-r--r-- | x11-misc/bumblebee/bumblebee-3.2.1_p20170123.ebuild | 95 | ||||
-rw-r--r-- | x11-misc/bumblebee/bumblebee-9999.ebuild | 95 | ||||
-rw-r--r-- | x11-misc/bumblebee/files/bumblebee.confd | 3 | ||||
-rw-r--r-- | x11-misc/bumblebee/files/bumblebee.envd | 3 | ||||
-rw-r--r-- | x11-misc/bumblebee/files/bumblebee.initd | 22 | ||||
-rw-r--r-- | x11-misc/bumblebee/metadata.xml | 29 |
8 files changed, 334 insertions, 0 deletions
diff --git a/x11-misc/bumblebee/Manifest b/x11-misc/bumblebee/Manifest new file mode 100644 index 000000000000..71465a60f384 --- /dev/null +++ b/x11-misc/bumblebee/Manifest @@ -0,0 +1,11 @@ +AUX bumblebee.confd 60 SHA256 9e0287f542cff0fd3452a0c3d6d427a3404706c93ac9a00f4d99fe52ed596d75 SHA512 4c773002e372e1696c0922bda91a104ea0ee244eb6beac84a4e7ad2ff1aee265aa248e63c3ad55ea75cabbd36b03d9efa3f8ec3ef708346837ab6a10d6652251 WHIRLPOOL 53e0f7efcf8ceb1990feccabb2050a440ea5e279703c70c896ced4a0a042c191c4ef6c5096dd237af86ca2bcc8d61782cf057f56b6f21983dd642832f314bfbd +AUX bumblebee.envd 127 SHA256 fd6c2719f8268a03fe01df6f9ead660faa3f7aa2a63230d5a7e923a190077437 SHA512 f42bd5992a8c80d045036a689e3c33cc2bdb7d54afb03bb7f33a80fa6a9c1e05f583cdec5b3da42021c48c1b59db4664e9c850e48ada47a1887327f7b11633af WHIRLPOOL dc5d9dffd2b5219f7c6f11a917cbab004fa3ed89005357dbc1dd1eb3833d4243209c71ccc0b3abc6163c1c192e1a7de8dc1b7ce137ba43aa8f0157ecfd78857c +AUX bumblebee.initd 485 SHA256 5c67465ca9a2d4dc6fd35a7827d82ea6d72b13a8e93373e9055970fc71754b18 SHA512 12c4d28bb0dfa17239c7bf488408f3ca5e672a2167664b7d9f5501fcb878fe679c351bbe037f31b762e8e9a911088d08d66814cd8cc6b257fd973cc6c54ee10f WHIRLPOOL 8238dc729344256db59aef6ce3b7c7c0d84306a7dfffabc78591bd1046064353abfa554a98259532d873131549c2fc4d747cd242afe93e9b1a93761e6031a03c +DIST bumblebee-3.2.1.tar.gz 143110 SHA256 1018703b07e2f607a4641249d69478ce076ae5a1e9dd6cff5694d394fa7ee30e SHA512 6f016f75d199577215ff00c059e196829e9d3efeb0fb6eebe6c3fad6176e330332e1ef25875a22ac9892895683d95899ea44f1ec1f85d31300ad83cb1fe0310a WHIRLPOOL 0d59b205f3c57afbf3fa6c8a55964afed8684e57db045e4c333c8e94f0b5d91637963a0b9f386eb6fe655716b8854e82ae5724dacdc76a34de6eb1f99ffc4908 +DIST bumblebee-3.2.1_p20170123.tar.gz 63376 SHA256 bf98d902045f3fa95633816ee34babb76fd1e537090618c632f123d28372c751 SHA512 398101927211a8d09f19d519fd0537c94b942bd7fc11d10d394a3a520f2afa6abe174db78b60bb134caf78ffda4cdd50d0ef424134acd07ff4ce93998881e31b WHIRLPOOL 8bf5367fcd9e4c90d104d97fe767197c9d65cc26f4eb8ca01cb4f18d678df101dad36dc10cfe7be75fc65fd129a171a6d034a96313c86c17085ed6ec81bdddc7 +EBUILD bumblebee-3.2.1.ebuild 2005 SHA256 5303c25feca18486c419aaff12db06f4e088b601c6e13a90c1c21627dab66d7b SHA512 02a045d7d3ed89c39b4b354d81e988cf015c873ece37ce4733405fc699e94e14935e8b395ab6a1fee32b3dfc7e186f908546766146a2f19f5702b83a201560aa WHIRLPOOL 1e011dc7566877b3130266fc841915ae8a464546291f78e9ae75e0fc71945904a648052c5c5be69b040d37d31c782edaa35c604d8bf976351fad465943b8ab3b +EBUILD bumblebee-3.2.1_p20170123.ebuild 2215 SHA256 485d219f2d0f04ef9aeb5a78e47f5c1cb8354f15ece64f324f57d0924e00c7c1 SHA512 7da89e2bf3ee757b29fde2757dba5e63c157ff0b15b59d244df8ec43ce9a25adcd00b6f149b694488a916eb7d293b6a59d48e40c18eb94b4be1e9fa35c26a69d WHIRLPOOL 3738bd51f1bbe95147f0c49138617624279db30f280f2e55aeeb387c9074f1baaeffff495737995aab761fb3aadb78161c69bcca0098f8748be1252800a13aba +EBUILD bumblebee-9999.ebuild 2215 SHA256 485d219f2d0f04ef9aeb5a78e47f5c1cb8354f15ece64f324f57d0924e00c7c1 SHA512 7da89e2bf3ee757b29fde2757dba5e63c157ff0b15b59d244df8ec43ce9a25adcd00b6f149b694488a916eb7d293b6a59d48e40c18eb94b4be1e9fa35c26a69d WHIRLPOOL 3738bd51f1bbe95147f0c49138617624279db30f280f2e55aeeb387c9074f1baaeffff495737995aab761fb3aadb78161c69bcca0098f8748be1252800a13aba +MISC ChangeLog 3050 SHA256 6847a8a33e5a93dbb6fc78c8a468111fa9cce138c19c243db00d5b5d5973578a SHA512 14a4c5138babe708d6de62884620dbdd9b7a83ff0dca2d5c3e6e36a0287ad94ab1e19d6255688dbcc1515e454249b2c36ba7f46b9a817e62244c6c0da874ef97 WHIRLPOOL 1f4676fc50b187f3aa12d56a7ee04e1408ece6757d17743dc94112667cb60514e635a68ced952dc8696c4bd50716e897ceb0baf5833bf958f17c830059a676f4 +MISC ChangeLog-2015 3643 SHA256 f9de352b4b693f56c788476300c15d6f75b21774fb3c3bf32a06df735d862031 SHA512 2c18d42b9dfc32b3f7b7faeddd20f81495055093e52f96924748d91bb7ea9dc0e5529887662fb8d56d72d06b4d8a48f1849fde06327ba785dbb800d1f2df7ba1 WHIRLPOOL 1021e80cf6267e3c8f72a39b8c285e07ec47f0b6e50a88f6301866dbacc783fdb15f14ca8387f0c5d73fbd63129f7b326a49e71b88bcbb00b6a925499f05be89 +MISC metadata.xml 1006 SHA256 390edbe83f004541e1973ffb0b7bd490f4f23f95df9163eaa7b76ab62bb480f9 SHA512 71a8b920e4bac5a76bddeb54e8c0a2062f555ded301d5b3128f56fe2d65ec8da10e3323a6557a36f51eb2879b50fbb3a122f6c87a9201c62a5707a109fa8596b WHIRLPOOL e989230c88ff3ae86c360c0e13373f89f6ea411ca1a6b85855407566e90925eabbc35d4ae5899fdf0bd73b9b41e9986f47ae38d3f4e10b17c21b75b0336ad9db diff --git a/x11-misc/bumblebee/bumblebee-3.2.1.ebuild b/x11-misc/bumblebee/bumblebee-3.2.1.ebuild new file mode 100644 index 000000000000..a0904a9a887f --- /dev/null +++ b/x11-misc/bumblebee/bumblebee-3.2.1.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils multilib readme.gentoo systemd user + +DESCRIPTION="Service providing elegant and stable means of managing Optimus graphics chipsets" +HOMEPAGE="https://bumblebee-project.org https://github.com/Bumblebee-Project/Bumblebee" +SRC_URI="https://bumblebee-project.org/${P}.tar.gz" + +SLOT="0" +LICENSE="GPL-3" +KEYWORDS="amd64 x86" + +IUSE="+bbswitch video_cards_nouveau video_cards_nvidia" + +RDEPEND=" + dev-libs/libbsd + virtual/opengl + x11-base/xorg-drivers[video_cards_nvidia?,video_cards_nouveau?] + x11-misc/virtualgl:= + bbswitch? ( sys-power/bbswitch ) +" +DEPEND="${RDEPEND} + dev-libs/glib:2 + sys-apps/help2man + virtual/pkgconfig + x11-libs/libX11 +" + +REQUIRED_USE="|| ( video_cards_nouveau video_cards_nvidia )" + +src_prepare() { + epatch_user +} + +src_configure() { + DOC_CONTENTS="In order to use Bumblebee, add your user to 'bumblebee' group. + You may need to setup your /etc/bumblebee/bumblebee.conf" + + if use video_cards_nvidia ; then + # Get paths to GL libs for all ABIs + local nvlib="" + for i in $(get_all_libdirs) ; do + nvlib="${nvlib}:/usr/${i}/opengl/nvidia/lib" + done + + local nvpref="/usr/$(get_libdir)/opengl/nvidia" + local xorgpref="/usr/$(get_libdir)/xorg/modules" + ECONF_PARAMS="CONF_DRIVER=nvidia CONF_DRIVER_MODULE_NVIDIA=nvidia \ + CONF_LDPATH_NVIDIA=${nvlib#:} \ + CONF_MODPATH_NVIDIA=${nvpref}/lib,${nvpref}/extensions,${xorgpref}/drivers,${xorgpref}" + fi + + econf \ + --docdir=/usr/share/doc/"${PF}" \ + ${ECONF_PARAMS} +} + +src_install() { + newconfd "${FILESDIR}"/bumblebee.confd bumblebee + newinitd "${FILESDIR}"/bumblebee.initd bumblebee + newenvd "${FILESDIR}"/bumblebee.envd 99bumblebee + systemd_dounit scripts/systemd/bumblebeed.service + + readme.gentoo_create_doc + + default +} + +pkg_preinst() { + use video_cards_nvidia || rm "${ED}"/etc/bumblebee/xorg.conf.nvidia + use video_cards_nouveau || rm "${ED}"/etc/bumblebee/xorg.conf.nouveau + + enewgroup bumblebee +} diff --git a/x11-misc/bumblebee/bumblebee-3.2.1_p20170123.ebuild b/x11-misc/bumblebee/bumblebee-3.2.1_p20170123.ebuild new file mode 100644 index 000000000000..65477c88d732 --- /dev/null +++ b/x11-misc/bumblebee/bumblebee-3.2.1_p20170123.ebuild @@ -0,0 +1,95 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools multilib readme.gentoo-r1 systemd user + +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/Bumblebee-Project/Bumblebee.git" + EGIT_BRANCH="develop" + KEYWORDS="" +else + COMMIT="c322bd849aabe6e48b4304b8d13cc4aadc36a30d" + SRC_URI="https://github.com/Bumblebee-Project/Bumblebee/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~x86" + + S="${WORKDIR}/Bumblebee-${COMMIT}" +fi + +DESCRIPTION="Service providing elegant and stable means of managing Optimus graphics chipsets" +HOMEPAGE="https://bumblebee-project.org https://github.com/Bumblebee-Project/Bumblebee" + +SLOT="0" +LICENSE="GPL-3" + +IUSE="+bbswitch video_cards_nouveau video_cards_nvidia" + +COMMON_DEPEND=" + dev-libs/glib:2 + dev-libs/libbsd + sys-apps/kmod + x11-libs/libX11 +" + +RDEPEND="${COMMON_DEPEND} + virtual/opengl + x11-base/xorg-drivers[video_cards_nvidia?,video_cards_nouveau?] + bbswitch? ( sys-power/bbswitch ) +" + +DEPEND="${COMMON_DEPEND} + sys-apps/help2man + virtual/pkgconfig +" + +PDEPEND=" + || ( + x11-misc/primus + x11-misc/virtualgl + ) +" + +REQUIRED_USE="|| ( video_cards_nouveau video_cards_nvidia )" + +pkg_setup() { + enewgroup bumblebee +} + +src_prepare() { + default + eautoreconf +} + +src_configure() { + if use video_cards_nvidia ; then + # Get paths to GL libs for all ABIs + local i nvlib="" + for i in $(get_all_libdirs) ; do + nvlib="${nvlib}:/usr/${i}/opengl/nvidia/lib" + done + + local nvpref="/usr/$(get_libdir)/opengl/nvidia" + local xorgpref="/usr/$(get_libdir)/xorg/modules" + ECONF_PARAMS="CONF_DRIVER=nvidia CONF_DRIVER_MODULE_NVIDIA=nvidia \ + CONF_LDPATH_NVIDIA=${nvlib#:} \ + CONF_MODPATH_NVIDIA=${nvpref}/lib,${nvpref}/extensions,${xorgpref}/drivers,${xorgpref}" + fi + + econf \ + ${ECONF_PARAMS} +} + +src_install() { + default + + newconfd "${FILESDIR}"/${PN}.confd ${PN} + newinitd "${FILESDIR}"/${PN}.initd ${PN} + newenvd "${FILESDIR}"/${PN}.envd 99${PN} + systemd_dounit scripts/systemd/bumblebeed.service + + local DOC_CONTENTS="In order to use Bumblebee, add your user to 'bumblebee' group. + You may need to setup your /etc/bumblebee/bumblebee.conf" + readme.gentoo_create_doc +} diff --git a/x11-misc/bumblebee/bumblebee-9999.ebuild b/x11-misc/bumblebee/bumblebee-9999.ebuild new file mode 100644 index 000000000000..65477c88d732 --- /dev/null +++ b/x11-misc/bumblebee/bumblebee-9999.ebuild @@ -0,0 +1,95 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools multilib readme.gentoo-r1 systemd user + +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/Bumblebee-Project/Bumblebee.git" + EGIT_BRANCH="develop" + KEYWORDS="" +else + COMMIT="c322bd849aabe6e48b4304b8d13cc4aadc36a30d" + SRC_URI="https://github.com/Bumblebee-Project/Bumblebee/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~x86" + + S="${WORKDIR}/Bumblebee-${COMMIT}" +fi + +DESCRIPTION="Service providing elegant and stable means of managing Optimus graphics chipsets" +HOMEPAGE="https://bumblebee-project.org https://github.com/Bumblebee-Project/Bumblebee" + +SLOT="0" +LICENSE="GPL-3" + +IUSE="+bbswitch video_cards_nouveau video_cards_nvidia" + +COMMON_DEPEND=" + dev-libs/glib:2 + dev-libs/libbsd + sys-apps/kmod + x11-libs/libX11 +" + +RDEPEND="${COMMON_DEPEND} + virtual/opengl + x11-base/xorg-drivers[video_cards_nvidia?,video_cards_nouveau?] + bbswitch? ( sys-power/bbswitch ) +" + +DEPEND="${COMMON_DEPEND} + sys-apps/help2man + virtual/pkgconfig +" + +PDEPEND=" + || ( + x11-misc/primus + x11-misc/virtualgl + ) +" + +REQUIRED_USE="|| ( video_cards_nouveau video_cards_nvidia )" + +pkg_setup() { + enewgroup bumblebee +} + +src_prepare() { + default + eautoreconf +} + +src_configure() { + if use video_cards_nvidia ; then + # Get paths to GL libs for all ABIs + local i nvlib="" + for i in $(get_all_libdirs) ; do + nvlib="${nvlib}:/usr/${i}/opengl/nvidia/lib" + done + + local nvpref="/usr/$(get_libdir)/opengl/nvidia" + local xorgpref="/usr/$(get_libdir)/xorg/modules" + ECONF_PARAMS="CONF_DRIVER=nvidia CONF_DRIVER_MODULE_NVIDIA=nvidia \ + CONF_LDPATH_NVIDIA=${nvlib#:} \ + CONF_MODPATH_NVIDIA=${nvpref}/lib,${nvpref}/extensions,${xorgpref}/drivers,${xorgpref}" + fi + + econf \ + ${ECONF_PARAMS} +} + +src_install() { + default + + newconfd "${FILESDIR}"/${PN}.confd ${PN} + newinitd "${FILESDIR}"/${PN}.initd ${PN} + newenvd "${FILESDIR}"/${PN}.envd 99${PN} + systemd_dounit scripts/systemd/bumblebeed.service + + local DOC_CONTENTS="In order to use Bumblebee, add your user to 'bumblebee' group. + You may need to setup your /etc/bumblebee/bumblebee.conf" + readme.gentoo_create_doc +} diff --git a/x11-misc/bumblebee/files/bumblebee.confd b/x11-misc/bumblebee/files/bumblebee.confd new file mode 100644 index 000000000000..1c70206da6bf --- /dev/null +++ b/x11-misc/bumblebee/files/bumblebee.confd @@ -0,0 +1,3 @@ +# /etc/conf.d/bumblebee + +BUMBLEBEE_EXTRA_OPTS="--use-syslog"
\ No newline at end of file diff --git a/x11-misc/bumblebee/files/bumblebee.envd b/x11-misc/bumblebee/files/bumblebee.envd new file mode 100644 index 000000000000..e19cc56a1303 --- /dev/null +++ b/x11-misc/bumblebee/files/bumblebee.envd @@ -0,0 +1,3 @@ +# Comment this out if you are using VirtualGL also for other purposes and this +# slows down things for you. +VGL_READBACK="pbo" diff --git a/x11-misc/bumblebee/files/bumblebee.initd b/x11-misc/bumblebee/files/bumblebee.initd new file mode 100644 index 000000000000..219f71010d84 --- /dev/null +++ b/x11-misc/bumblebee/files/bumblebee.initd @@ -0,0 +1,22 @@ +#!/sbin/openrc-run +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +depend() { + need xdm vgl +} + +PIDFILE="${PIDFILE:-/var/run/bumblebee.pid}" + +start() { + ebegin "Starting BumbleBee Daemon" + start-stop-daemon -S -p "${PIDFILE}" -x /usr/sbin/bumblebeed -- -D ${BUMBLEBEE_EXTRA_OPTS} --pidfile "${PIDFILE}" + eend $? +} + +stop() { + + ebegin "Stopping BumbleBee Daemon" + start-stop-daemon -K -p "${PIDFILE}" -R SIGTERM/10 + eend $? +} diff --git a/x11-misc/bumblebee/metadata.xml b/x11-misc/bumblebee/metadata.xml new file mode 100644 index 000000000000..8db7b5c88e4c --- /dev/null +++ b/x11-misc/bumblebee/metadata.xml @@ -0,0 +1,29 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>NP-Hardass@gentoo.org</email> + <name>NP-Hardass</name> + </maintainer> + <maintainer type="person"> + <email>rei4dan@gmail.com</email> + <name>My Th</name> + </maintainer> + <maintainer type="project"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <longdescription> + A rewrite of the original Bumblebee service, providing an elegant and stable + means of managing Optimus hybrid graphics chipsets. A primary goal of this + project is to not only enable use of the discrete GPU for rendering, but + also to enable smart power management of the dGPU when it's not in use. +</longdescription> + <use> + <flag name="bbswitch">Add dependency on <pkg>sys-power/bbswitch</pkg> for + PM feature</flag> + </use> + <upstream> + <remote-id type="github">Bumblebee-Project/Bumblebee</remote-id> + </upstream> +</pkgmetadata> |