diff options
author | Stefan Cristian B. <steven.darklight@gmail.com> | 2015-01-11 15:49:46 +0200 |
---|---|---|
committer | Stefan Cristian B. <steven.darklight@gmail.com> | 2015-01-11 15:49:46 +0200 |
commit | 2672c6f322dbfa57e61f77d8dc96dbc2b88cd1c7 (patch) | |
tree | 8df6e5dcdd2157b6098a175b586410c57197ef61 | |
parent | b1897082076a599128bab38c3edebf07ca667a1a (diff) | |
parent | cc1842ab777215040ec7f0b6643718624ff22db5 (diff) |
Merge pull request #25 from V3n3RiX/master
proper multilib ebuild for primus
-rw-r--r-- | x11-misc/primus/primus-9999.ebuild | 27 |
1 files changed, 11 insertions, 16 deletions
diff --git a/x11-misc/primus/primus-9999.ebuild b/x11-misc/primus/primus-9999.ebuild index 0df46970..595ae948 100644 --- a/x11-misc/primus/primus-9999.ebuild +++ b/x11-misc/primus/primus-9999.ebuild @@ -1,10 +1,10 @@ -# Copyright 1999-2012 Gentoo Foundation +# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ -EAPI=4 +EAPI=5 -inherit multilib git-2 +inherit multilib-build git-2 DESCRIPTION="Faster OpenGL offloading for Bumblebee" HOMEPAGE="https://github.com/amonakov/primus" @@ -14,32 +14,27 @@ EGIT_REPO_URI="git://github.com/amonakov/primus.git https://github.com/amonakov/ LICENSE="ISC" SLOT="0" KEYWORDS="" -IUSE="multilib" +IUSE="" RDEPEND="x11-misc/bumblebee[video_cards_nvidia] - multilib? ( app-emulation/emul-linux-x86-xlibs app-emulation/emul-linux-x86-baselibs )" +" DEPEND="virtual/opengl" src_compile() { export PRIMUS_libGLa='/usr/$$LIB/opengl/nvidia/lib/libGL.so.1' - emake LIBDIR=$(get_libdir) - if use multilib; then - local ABI=x86 - local CXXFLAGS="${CXXFLAGS} -m32" + mymake() { emake LIBDIR=$(get_libdir) - fi + } + multilib_parallel_foreach_abi mymake } src_install() { sed -i -e "s#^PRIMUS_libGL=.*#PRIMUS_libGL='/usr/\$LIB/primus'#" primusrun - sed -i -e "s/^# PRIMUS_libGL=/PRIMUS_libGL=/" primusrun dobin primusrun - insinto /usr/$(get_libdir)/primus - doins ${S}/$(get_libdir)/libGL.so.1 - if use multilib; then - local ABI=x86 + myinst() { insinto /usr/$(get_libdir)/primus doins ${S}/$(get_libdir)/libGL.so.1 - fi + } + multilib_foreach_abi myinst } |