diff options
author | Jason A. Donenfeld <zx2c4@gentoo.org> | 2016-10-16 23:34:19 +0200 |
---|---|---|
committer | Jason A. Donenfeld <zx2c4@gentoo.org> | 2016-10-16 23:38:18 +0200 |
commit | 5f61c4613f58d92bed8670f63745b18606c43a55 (patch) | |
tree | 72f088261e0a7a6da7781dd2b4d2a092d5e66a11 /x11-misc/primus | |
parent | media-plugins/vdr-mailbox: newline fix (diff) | |
download | gentoo-5f61c4613f58d92bed8670f63745b18606c43a55.tar.gz gentoo-5f61c4613f58d92bed8670f63745b18606c43a55.tar.bz2 gentoo-5f61c4613f58d92bed8670f63745b18606c43a55.zip |
x11-misc/primus: import just-released version
Package-Manager: portage-2.3.2
Diffstat (limited to 'x11-misc/primus')
-rw-r--r-- | x11-misc/primus/Manifest | 1 | ||||
-rw-r--r-- | x11-misc/primus/metadata.xml | 19 | ||||
-rw-r--r-- | x11-misc/primus/primus-0.2.ebuild | 41 |
3 files changed, 61 insertions, 0 deletions
diff --git a/x11-misc/primus/Manifest b/x11-misc/primus/Manifest new file mode 100644 index 000000000000..ba79c4ac963c --- /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 000000000000..721c730bea93 --- /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>zx2c4@gentoo.org</email> + <name>Jason A. Donenfeld</name> + </maintainer> + <maintainer type="person"> + <email>amonakov@ispras.ru</email> + <name>Alexander Monakov</name> + </maintainer> + <maintainer type="project"> + <email>proxy-maint@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 000000000000..e6b14f2291cd --- /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 +} |