| 1 |
# Copyright 1999-2013 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/app-admin/eselect-mesa/eselect-mesa-0.0.10.ebuild,v 1.13 2013/01/20 20:21:16 vapier Exp $
|
| 4 |
|
| 5 |
EAPI=3
|
| 6 |
|
| 7 |
DESCRIPTION="Utility to change the Mesa OpenGL driver being used"
|
| 8 |
HOMEPAGE="http://www.gentoo.org/"
|
| 9 |
|
| 10 |
SRC_URI="mirror://gentoo/${P}.tar.gz"
|
| 11 |
|
| 12 |
LICENSE="GPL-2"
|
| 13 |
SLOT="0"
|
| 14 |
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~sparc-solaris ~x86-solaris"
|
| 15 |
IUSE=""
|
| 16 |
|
| 17 |
DEPEND=""
|
| 18 |
RDEPEND=">=app-admin/eselect-1.2.4
|
| 19 |
>=app-shells/bash-4"
|
| 20 |
|
| 21 |
src_install() {
|
| 22 |
insinto /usr/share/eselect/modules
|
| 23 |
doins mesa.eselect || die
|
| 24 |
}
|
| 25 |
|
| 26 |
pkg_postinst() {
|
| 27 |
if has_version ">=media-libs/mesa-7.9" && \
|
| 28 |
! [ -f "${EROOT}"/usr/share/mesa/eselect-mesa.conf ]; then
|
| 29 |
eerror "Rebuild media-libs/mesa for ${PN} to work."
|
| 30 |
fi
|
| 31 |
}
|