diff options
author | BlackNoxis <steven.darklight@gmail.com> | 2014-10-27 18:38:05 +0200 |
---|---|---|
committer | BlackNoxis <steven.darklight@gmail.com> | 2014-10-27 18:38:05 +0200 |
commit | 24934e623441310f644e5f72855b0f2bf9f3cd1a (patch) | |
tree | a453939bf58199bc2c3ff27bcf0accf2b221c6c4 /x11-drivers/xf86-video-ati/xf86-video-ati-7.2.0.ebuild | |
parent | 687f45092b4f4ccf33765cee7427f054bae22344 (diff) |
Incoming! Moving Rogento.git to kogaion-desktop. Finally
Diffstat (limited to 'x11-drivers/xf86-video-ati/xf86-video-ati-7.2.0.ebuild')
-rw-r--r-- | x11-drivers/xf86-video-ati/xf86-video-ati-7.2.0.ebuild | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/x11-drivers/xf86-video-ati/xf86-video-ati-7.2.0.ebuild b/x11-drivers/xf86-video-ati/xf86-video-ati-7.2.0.ebuild new file mode 100644 index 00000000..e74243d3 --- /dev/null +++ b/x11-drivers/xf86-video-ati/xf86-video-ati-7.2.0.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/x11-drivers/xf86-video-ati/xf86-video-ati-7.2.0.ebuild,v 1.1 2013/08/07 13:36:09 chithanh Exp $ + +EAPI=5 + +XORG_DRI=always +inherit linux-info xorg-2 + +DESCRIPTION="ATI video driver" + +KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="glamor udev" + +RDEPEND=">=x11-libs/libdrm-2.4.46[video_cards_radeon] + glamor? ( x11-libs/glamor ) + udev? ( virtual/udev )" +DEPEND="${RDEPEND}" + +pkg_pretend() { + if use kernel_linux ; then + if kernel_is -ge 3 9; then + CONFIG_CHECK="~!DRM_RADEON_UMS ~!FB_RADEON" + else + CONFIG_CHECK="~DRM_RADEON_KMS ~!FB_RADEON" + fi + fi + check_extra_config +} + +src_configure() { + XORG_CONFIGURE_OPTIONS=( + $(use_enable glamor) + $(use_enable udev) + ) + xorg-2_src_configure +} + +pkg_preinst() { + # "untrack" radeon.conf, starting from kernel 3.6, this is + # no longer needed. However, we don't want to break the current + # status-quo. + if [ -f "${EROOT}/etc/modprobe.d/radeon.conf" ]; then + cp "${EROOT}/etc/modprobe.d/"{radeon.conf,radeon.conf.untracked} || die + fi +} + +pkg_postinst() { + if [ -f "${EROOT}/etc/modprobe.d/radeon.conf.untracked" ]; then + mv "${EROOT}/etc/modprobe.d/"{radeon.conf.untracked,radeon.conf} || die + fi +} |