diff options
author | Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org> | 2010-05-21 12:15:49 +0000 |
---|---|---|
committer | Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org> | 2010-05-21 12:15:49 +0000 |
commit | 9e54554741dd5cba9c71d45d713c1a65cef5b9ad (patch) | |
tree | ccc57b409bb7fd47238fedaba5f28f6fef3a6cde /x11-base/nouveau-drm/nouveau-drm-20100520.ebuild | |
parent | add 0.5.11.6; fixes xv unpack support (diff) | |
download | gentoo-2-9e54554741dd5cba9c71d45d713c1a65cef5b9ad.tar.gz gentoo-2-9e54554741dd5cba9c71d45d713c1a65cef5b9ad.tar.bz2 gentoo-2-9e54554741dd5cba9c71d45d713c1a65cef5b9ad.zip |
New snapshot, fixes bug #320811
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'x11-base/nouveau-drm/nouveau-drm-20100520.ebuild')
-rw-r--r-- | x11-base/nouveau-drm/nouveau-drm-20100520.ebuild | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/x11-base/nouveau-drm/nouveau-drm-20100520.ebuild b/x11-base/nouveau-drm/nouveau-drm-20100520.ebuild new file mode 100644 index 000000000000..ed05819b546e --- /dev/null +++ b/x11-base/nouveau-drm/nouveau-drm-20100520.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/x11-base/nouveau-drm/nouveau-drm-20100520.ebuild,v 1.1 2010/05/21 12:15:49 chithanh Exp $ + +EAPI=2 + +inherit linux-info linux-mod + +DESCRIPTION="Nouveau DRM Kernel Modules for X11" +HOMEPAGE="http://nouveau.freedesktop.org/" +SRC_URI="mirror://gentoo/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +IUSE="" + +DEPEND="virtual/linux-sources" +RDEPEND="${DEPEND}" + +S=${WORKDIR}/master + +CONFIG_CHECK="~BACKLIGHT_CLASS_DEVICE ~DEBUG_FS !DRM ~FB_CFB_FILLRECT ~FB_CFB_COPYAREA ~FB_CFB_IMAGEBLIT ~FRAMEBUFFER_CONSOLE ~!FB_NVIDIA ~!FB_RIVA ~!FB_UVESA ~!FB_VGA16 ~I2C_ALGOBIT ~VGA_ARB" + +pkg_setup() { + linux-mod_pkg_setup + if kernel_is lt 2 6 34; then + eerror "You need kernel 2.6.34 for this version of nouveau-drm" + die "Incompatible kernel version" + fi + elog "For newer kernels newer than 2.6.32 there is integrated nouveau DRM." + elog "Use that if you experience build issues." +} + +src_compile() { + set_arch_to_kernel + emake \ + LINUXDIR="${KERNEL_DIR}" \ + NOUVEAUROOTDIR="${PWD}" \ + -f "${FILESDIR}"/${PN}-20100212-Makefile \ + || die "Compiling kernel modules failed" +} + +src_install() { + insinto /lib/modules/${KV_FULL}/${PN} + doins drivers/gpu/drm/{*/,}*.ko || die "doins failed" +} |