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/primus |
reinit the tree, so we can have metadata
Diffstat (limited to 'x11-misc/primus')
-rw-r--r-- | x11-misc/primus/Manifest | 4 | ||||
-rw-r--r-- | x11-misc/primus/metadata.xml | 11 | ||||
-rw-r--r-- | x11-misc/primus/primus-0.2.ebuild | 40 |
3 files changed, 55 insertions, 0 deletions
diff --git a/x11-misc/primus/Manifest b/x11-misc/primus/Manifest new file mode 100644 index 000000000000..ccf9016fe6e3 --- /dev/null +++ b/x11-misc/primus/Manifest @@ -0,0 +1,4 @@ +DIST primus-0.2.tar.gz 26248 SHA256 beccce83d6e493ecb45589fd02d7b0b0e5b406b136f4ad62d20d4cbac9d54fec SHA512 4108f4e721c9cd8f8dc592a41706230b29bbcfcb8ba49e61d1f07f715c81304471e0d00407bc59a314568b3b42e19f0962ba1dbb8ef1996fe0d4ac13af2e3d2b WHIRLPOOL 13eec30fea2341bb2f35590a2122a406e181726bb2e5ed86078bc0643fe608c70e5d5677b74a301e2af0315f9e208156c3728a94106017f016a7e73ed1ad7eb5 +EBUILD primus-0.2.ebuild 919 SHA256 ba6a59deec57491cb3d8bd063db93bdecaec01b39b60c587299d08fb78fca110 SHA512 9c967343163ac52b2ef9e5e061b8ca6be8d3cb0b7be1e51ad0a913c8fd9953ee486fa70a697b41814440d5739eebf39f3d6b84f09d2c3cdbc4082a75ee7debe3 WHIRLPOOL edb87f15fad0f221908dd890fb319753013d584d0dd47ebe606f75dd930f20d4421b422eceb6ed41a578bfb626a048639b01c4f9de62ed912e795e49cc41931e +MISC ChangeLog 318 SHA256 32a7ec37dfe7c53986b34919ca48046b3e14ea9447284258e509fa86fe30269b SHA512 ac51e646b6ba46fdf52e2999d58f386fe27947b64a715bdf6fbe56f5ccd9b2b1634df94a2fb8f7e3580ab88c3128aff49135f71852b1e94352d79637a57c59a0 WHIRLPOOL bca7e6eb6e27b45eb8f57943862ec7cbdca7b7aa8aa71b36cf8b45ae9ca70aa7c3c2694f3c72e4449f1e21384f80fed58f525b9a58d57f81e643fd6d9aafe340 +MISC metadata.xml 330 SHA256 8397d392f47b2e1b0dd80cd127e45e55e16fa91f4b6ada32f26a1bf1377125cf SHA512 1dc5d48fe52eeb8db3b6f369ce5acad4c7f03811d02cf4e6175aea37ffe117763e5601cc02124a3b7218d85d380504f5db6dddf18be6e04a469b4f6b27ded552 WHIRLPOOL 25deaf3bc37826cf6582397e6f80e87caa4e66002eed435fd6bdffba952c96b150f5e3187a814b9f1e373fb4f1c5accebd006a68a99b172a901c1cef790cdbbb diff --git a/x11-misc/primus/metadata.xml b/x11-misc/primus/metadata.xml new file mode 100644 index 000000000000..7eea5579ed48 --- /dev/null +++ b/x11-misc/primus/metadata.xml @@ -0,0 +1,11 @@ +<?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> + <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..6cd89d1ee185 --- /dev/null +++ b/x11-misc/primus/primus-0.2.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2017 Gentoo Foundation +# 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 ~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 +} |