commit:     5f61c4613f58d92bed8670f63745b18606c43a55
Author:     Jason A. Donenfeld <zx2c4 <AT> gentoo <DOT> org>
AuthorDate: Sun Oct 16 21:34:19 2016 +0000
Commit:     Jason Donenfeld <zx2c4 <AT> gentoo <DOT> org>
CommitDate: Sun Oct 16 21:38:18 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5f61c461

x11-misc/primus: import just-released version

Package-Manager: portage-2.3.2

 x11-misc/primus/Manifest          |  1 +
 x11-misc/primus/metadata.xml      | 19 ++++++++++++++++++
 x11-misc/primus/primus-0.2.ebuild | 41 +++++++++++++++++++++++++++++++++++++++
 3 files changed, 61 insertions(+)

diff --git a/x11-misc/primus/Manifest b/x11-misc/primus/Manifest
new file mode 100644
index 00000000..ba79c4a
--- /dev/null
+++ b/x11-misc/primus/Manifest
@@ -0,0 +1 @@
+DIST primus-0.2.tar.gz 26248 SHA256 
beccce83d6e493ecb45589fd02d7b0b0e5b406b136f4ad62d20d4cbac9d54fec SHA512 
4108f4e721c9cd8f8dc592a41706230b29bbcfcb8ba49e61d1f07f715c81304471e0d00407bc59a314568b3b42e19f0962ba1dbb8ef1996fe0d4ac13af2e3d2b
 WHIRLPOOL 
13eec30fea2341bb2f35590a2122a406e181726bb2e5ed86078bc0643fe608c70e5d5677b74a301e2af0315f9e208156c3728a94106017f016a7e73ed1ad7eb5

diff --git a/x11-misc/primus/metadata.xml b/x11-misc/primus/metadata.xml
new file mode 100644
index 00000000..721c730
--- /dev/null
+++ b/x11-misc/primus/metadata.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="person">
+               <email>zx...@gentoo.org</email>
+               <name>Jason A. Donenfeld</name>
+       </maintainer>
+       <maintainer type="person">
+               <email>amona...@ispras.ru</email>
+               <name>Alexander Monakov</name>
+       </maintainer>
+       <maintainer type="project">
+               <email>proxy-ma...@gentoo.org</email>
+               <name>Proxy Maintainers</name>
+       </maintainer>
+       <upstream>
+               <remote-id type="github">amonakov/primus</remote-id>
+       </upstream>
+</pkgmetadata>

diff --git a/x11-misc/primus/primus-0.2.ebuild 
b/x11-misc/primus/primus-0.2.ebuild
new file mode 100644
index 00000000..e6b14f2
--- /dev/null
+++ b/x11-misc/primus/primus-0.2.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+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="git://github.com/amonakov/primus.git 
https://github.com/amonakov/primus.git";
+
+LICENSE="ISC"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="
+       x11-misc/bumblebee
+       x11-drivers/nvidia-drivers[compat]
+"
+DEPEND="virtual/opengl"
+
+src_compile() {
+       export PRIMUS_libGLa='/usr/$$LIB/opengl/nvidia/lib/libGL.so.1'
+       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