Skip to content
Browse files

bbswitch,bumblebee,virtualgl: Fix live ebuild symlink split

  • Loading branch information...
1 parent 8f42524 commit 7d52cac60e09cdd963f86fce3b3eb0604730ed6f @Reinis Reinis committed Apr 14, 2012
View
42 sys-power/bbswitch/bbswitch-9999.ebuild
@@ -1,42 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-EAPI="4"
-
-DESCRIPTION="Toggle the discrete graphics card"
-HOMEPAGE="https://github.com/Bumblebee-Project/bbswitch"
-
-if [[ ${PV} =~ "9999" ]]; then
- SCM_ECLASS="git-2"
- EGIT_REPO_URI="https://github.com/Bumblebee-Project/${PN}.git"
- SRC_URI=""
- KEYWORDS=""
-else
- SRC_URI="https://github.com/downloads/Bumblebee-Project/${PN}/${P}.tar.gz"
- KEYWORDS="~amd64 ~x86"
-fi;
-
-inherit eutils linux-mod ${SCM_ECLASS}
-
-SLOT="0"
-LICENSE="GPL-2"
-IUSE=""
-
-DEPEND="virtual/linux-sources
- sys-kernel/linux-headers"
-
-RDEPEND=""
-
-MODULE_NAMES="bbswitch(acpi)"
-
-pkg_setup() {
- linux-mod_pkg_setup
- BUILD_TARGETS="default"
-}
-
-src_install() {
- insinto /etc/modprobe.d
- newins "${FILESDIR}"/bbswitch.modprobe bbswitch.conf || die
- linux-mod_src_install
-}
View
1 sys-power/bbswitch/bbswitch-9999.ebuild
View
87 x11-misc/bumblebee/bumblebee-9999.ebuild
@@ -1,87 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-EAPI="4"
-
-if [[ ${PV} =~ "9999" ]]; then
- SCM_ECLASS="git-2"
- EGIT_REPO_URI="https://github.com/Bumblebee-Project/${PN/bu/Bu}.git"
- SRC_URI=""
- KEYWORDS=""
-else
- SRC_URI="https://github.com/downloads/Bumblebee-Project/${PN/bu/Bu}/${P/bu/Bu}.tar.gz"
- KEYWORDS="~amd64 ~x86"
-fi
-
-inherit autotools eutils multilib ${SCM_ECLASS}
-
-DESCRIPTION="Service providing elegant and stable means of managing Optimus graphics chipsets"
-HOMEPAGE="https://github.com/Bumblebee-Project/Bumblebee"
-
-SLOT="0"
-LICENSE="GPL-3"
-
-IUSE="+powersave video_cards_nouveau video_cards_nvidia"
-
-RDEPEND="x11-misc/virtualgl
- powersave? ( sys-drivers/bbswitch )
- virtual/opengl
- x11-base/xorg-drivers[video_cards_nvidia?,video_cards_nouveau?]"
-DEPEND=">=sys-devel/autoconf-2.68
- sys-devel/automake
- sys-devel/gcc
- dev-util/pkgconfig
- dev-libs/glib:2
- x11-libs/libX11
- dev-libs/libbsd
- sys-apps/help2man"
-
-src_prepare() {
- epatch_user
- if [[ ${PV} =~ "9999" ]]; then
- eautoreconf
- fi
-}
-
-src_configure() {
- use video_cards_nvidia || use video_cards_nouveau \
- || die "You should enable at least one of supported VIDEO_CARDS!"
-
- 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 ${ECONF_PARAMS}
-}
-
-src_install() {
- use video_cards_nvidia && newconfd "${FILESDIR}"/bumblebee.nvidia-confd bumblebee
- use video_cards_nouveau && newconfd "${FILESDIR}"/bumblebee.nouveau-confd bumblebee
- newinitd "${FILESDIR}"/bumblebee.initd bumblebee
- default
-}
-
-pkg_preinst() {
- ! use video_cards_nvidia && rm "${D}"/etc/bumblebee/xorg.conf.nvidia
- ! use video_cards_nouveau && rm "${D}"/etc/bumblebee/xorg.conf.nouveau
-
- enewgroup bumblebee
-}
-
-pkg_postinst() {
- ewarn "This is *NOT* all! Bumblebee still *NOT* ready to use."
- ewarn "You may need to setup your /etc/bumblebee/bumblebee.conf!"
- ewarn "For example, default config suggests you have bbswitch installed."
- ewarn "Also you should add your user to 'bumblebee' group."
-}
View
1 x11-misc/bumblebee/bumblebee-9999.ebuild
View
110 x11-misc/virtualgl/virtualgl-9999.ebuild
@@ -1,110 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-EAPI="4"
-
-DESCRIPTION="Run OpenGL applications on remote display software with full 3D hardware acceleration"
-HOMEPAGE="http://www.virtualgl.org/"
-
-if [[ ${PV} =~ "9999" ]]; then
- SCM_ECLASS="subversion"
- ESVN_REPO_URI="https://virtualgl.svn.sourceforge.net/svnroot/virtualgl/vgl/trunk"
- SRC_URI=""
- KEYWORDS=""
-else
- MY_PN="VirtualGL"
- MY_P="${MY_PN}-${PV}"
- S="${WORKDIR}/${MY_P}"
- SRC_URI="mirror://sourceforge/${PN}/${MY_PN}/${PV}/${MY_P}.tar.gz"
- KEYWORDS="~amd64 ~x86"
-fi;
-
-inherit cmake-utils ${SCM_ECLASS}
-
-SLOT="0"
-LICENSE="LGPL-2.1 wxWinLL-3.1"
-IUSE="ssl"
-
-RDEPEND="ssl? ( dev-libs/openssl )
- media-libs/libjpeg-turbo
- x11-libs/libX11
- x11-libs/libXext
- x11-libs/libXv
- multilib? ( app-emulation/emul-linux-x86-xlibs app-emulation/emul-linux-x86-baselibs )
- virtual/opengl"
-
-DEPEND="dev-util/cmake
- ${RDEPEND}"
-
-src_prepare() {
- ewarn "Note, that you don't need libjpeg-turbo from my overlay anymore"
- ewarn "(since I've rewrited ebuild to use shared one)"
-
- cd "${S}";
- for file in rr/vglgenkey rr/vglrun rr/vglserver_config doc/index.html; do
- sed -e "s#/etc/opt#/etc#g" -i ${file};
- done
-
- default
-}
-
-mlib_configure() {
- einfo "Multilib build enabled!"
- einfo "Building 32bit libs..."
- export ml_builddir="${WORKDIR}/build32"
- mkdir -p "${ml_builddir}"
- pushd "${ml_builddir}" >/dev/null
-
- export CFLAGS="-m32 -O2 -march=i686 -pipe"
- export CXXFLAGS="${CFLAGS}"
- export LDFLAGS="-m32"
- export CMAKE_BUILD_DIR="${ml_builddir}"
-
- mycmakeargs=(
- $(cmake-utils_use ssl VGL_USESSL)
- -DVGL_DOCDIR=/usr/share/doc/"${P}"
- -DVGL_LIBDIR=/usr/$(get_libdir)
- -DTJPEG_INCLUDE_DIR=/usr/include
- -DTJPEG_LIBRARY=/usr/$(get_libdir)/libturbojpeg.so
- -DCMAKE_LIBRARY_PATH=/usr/lib32
- -DVGL_FAKELIBDIR=/usr/fakelib/32
- )
- cmake-utils_src_configure
- emake || die
- popd >/dev/null
- unset CFLAGS CXXFLAGS LDFLAGS CMAKE_BUILD_DIR
- einfo "Building 64bit libs..."
-}
-
-src_configure() {
- use amd64 && use multilib && ABI=x86 mlib_configure
- mycmakeargs=(
- $(cmake-utils_use ssl VGL_USESSL)
- -DVGL_DOCDIR=/usr/share/doc/"${P}"
- -DVGL_LIBDIR=/usr/$(get_libdir)
- -DTJPEG_INCLUDE_DIR=/usr/include
- -DTJPEG_LIBRARY=/usr/$(get_libdir)/libturbojpeg.so
- -DCMAKE_LIBRARY_PATH=/usr/lib64
- -DVGL_FAKELIBDIR=/usr/fakelib/64
- )
- cmake-utils_src_configure
-}
-
-src_install() {
- use amd64 && use multilib && (
- cd "${ml_builddir}"
- emake DESTDIR="${D}" install || die "Failed to install 32bit libs!"
- cd "${S}"
- )
- cmake-utils_src_install
-
- dodir /etc/VirtualGL
- fowners root:video /etc/VirtualGL
- fperms 0750 /etc/VirtualGL
- newinitd "${FILESDIR}/vgl.initd" vgl
- newconfd "${FILESDIR}/vgl.confd" vgl
- # Rename glxinfo to vglxinfo to avoid conflict with x11-apps/mesa-progs
- mv "${D}"/usr/bin/{,v}glxinfo
-# rm "${D}/usr/bin/vglserver_config" "${D}/usr/bin/vglgenkey"
-}
View
1 x11-misc/virtualgl/virtualgl-9999.ebuild

0 comments on commit 7d52cac

Please sign in to comment.
Something went wrong with that request. Please try again.