commit:     4dade50c47767d93116ce1331535b9cc63193299
Author:     Michael Mair-Keimberger <mmk <AT> levelnine <DOT> at>
AuthorDate: Wed May 29 19:10:34 2024 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Thu May 30 05:55:31 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4dade50c

x11-misc/primus: remove old

Signed-off-by: Michael Mair-Keimberger <mmk <AT> levelnine.at>
Closes: https://github.com/gentoo/gentoo/pull/36890
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 x11-misc/primus/primus-0.2-r3.ebuild | 62 ------------------------------------
 1 file changed, 62 deletions(-)

diff --git a/x11-misc/primus/primus-0.2-r3.ebuild 
b/x11-misc/primus/primus-0.2-r3.ebuild
deleted file mode 100644
index 3a4c0197ea9a..000000000000
--- a/x11-misc/primus/primus-0.2-r3.ebuild
+++ /dev/null
@@ -1,62 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-inherit multilib-build
-
-DESCRIPTION="Faster OpenGL offloading for Bumblebee"
-HOMEPAGE="https://github.com/amonakov/primus";
-SRC_URI="https://github.com/amonakov/${PN}/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
-EGIT_REPO_URI="https://github.com/amonakov/${PN}.git";
-
-LICENSE="ISC"
-SLOT="0"
-KEYWORDS="~amd64"
-IUSE="+libglvnd"
-
-RDEPEND="
-       x11-misc/bumblebee
-       x11-drivers/nvidia-drivers[libglvnd(+)=]
-"
-DEPEND="virtual/opengl"
-
-PATCHES=(
-       "${FILESDIR}/primus-0.2-libglvnd-workaround.patch"
-       "${FILESDIR}/primus-0.2-respect-ldflags.patch"
-)
-
-src_prepare() {
-       default
-       # Exported values don't always seem to be used.  Until source fixed,
-       # patch primusrun script
-       if use libglvnd; then
-               sed -i "/libGLa/a export 
PRIMUS_libGLa='\/usr\/\$LIB\/libGLX_nvidia.so.0'" primusrun || die
-               sed -i "/libGLd/a export 
PRIMUS_libGLd='\/usr\/\$LIB\/libGLX.so.0'" primusrun || die
-       else
-               sed -i "/libGLa/a export 
PRIMUS_libGLa='\/usr\/$$LIB\/opengl\/nvidia\/lib/libGL.so.1'" primusrun || die
-       fi
-}
-
-src_compile() {
-       if use libglvnd; then
-               export PRIMUS_libGLa='/usr/$$LIB/libGLX_nvidia.so.0'
-               export PRIMUS_libGLd='/usr/$$LIB/libGLX.so.0'
-       else
-               export PRIMUS_libGLa='/usr/$$LIB/opengl/nvidia/lib/libGL.so.1'
-       fi
-       mymake() {
-               emake LIBDIR=$(get_libdir)
-       }
-       multilib_parallel_foreach_abi mymake
-}
-
-src_install() {
-       sed -i -e "s#^PRIMUS_libGL=.*#PRIMUS_libGL='/usr/\$LIB/primus'#" 
primusrun
-       dobin primusrun
-       myinst() {
-               insinto /usr/$(get_libdir)/primus
-               doins "${S}"/$(get_libdir)/libGL.so.1
-       }
-       multilib_foreach_abi myinst
-}

Reply via email to