diff options
author | Fabian Groffen <grobian@gentoo.org> | 2012-03-24 19:15:12 +0000 |
---|---|---|
committer | Fabian Groffen <grobian@gentoo.org> | 2012-03-24 19:15:12 +0000 |
commit | 986f8c1ddac050438f65e9d83939eacee6c3d13d (patch) | |
tree | 50624d59b73631502149bb76552734ccd7527a9e /app-admin/eselect-opengl/eselect-opengl-1.2.5-r1.ebuild | |
parent | sys-kernel/hardened-sources: Based on 3.2.12 + genpatches-3.2-12 + grsecurity... (diff) | |
download | gentoo-2-986f8c1ddac050438f65e9d83939eacee6c3d13d.tar.gz gentoo-2-986f8c1ddac050438f65e9d83939eacee6c3d13d.tar.bz2 gentoo-2-986f8c1ddac050438f65e9d83939eacee6c3d13d.zip |
Make activation work on Darwin, where libGL.so doesn't exist (but libGL.dylib does), bug #408517
(Portage version: 2.2.01.20271-prefix/cvs/Darwin i386)
Diffstat (limited to 'app-admin/eselect-opengl/eselect-opengl-1.2.5-r1.ebuild')
-rw-r--r-- | app-admin/eselect-opengl/eselect-opengl-1.2.5-r1.ebuild | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/app-admin/eselect-opengl/eselect-opengl-1.2.5-r1.ebuild b/app-admin/eselect-opengl/eselect-opengl-1.2.5-r1.ebuild index 10661a2874f7..2ad11ce0a04c 100644 --- a/app-admin/eselect-opengl/eselect-opengl-1.2.5-r1.ebuild +++ b/app-admin/eselect-opengl/eselect-opengl-1.2.5-r1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-admin/eselect-opengl/eselect-opengl-1.2.5-r1.ebuild,v 1.1 2012/03/05 10:53:35 scarabeus Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-admin/eselect-opengl/eselect-opengl-1.2.5-r1.ebuild,v 1.2 2012/03/24 19:15:12 grobian Exp $ EAPI=4 @@ -35,6 +35,13 @@ pkg_postinst() { fi } +src_prepare() { + # don't die on Darwin users + if [[ ${CHOST} == *-darwin* ]] ; then + sed -i -e 's/libGL\.so/libGL.dylib/' opengl.eselect || die + fi +} + src_install() { insinto "/usr/share/eselect/modules" doins opengl.eselect |