commit:     5bb76bb8b75946cb7fe651c8944fd013e15bf4a1
Author:     Manuel Rüger <mrueg <AT> gentoo <DOT> org>
AuthorDate: Sun Feb 14 21:30:56 2016 +0000
Commit:     Manuel Rüger <mrueg <AT> gentoo <DOT> org>
CommitDate: Sun Feb 14 21:30:56 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5bb76bb8

x11-drivers/xf86-video-intel: Update snapshot. Add dri3 support. Fix deps.

Gentoo-Bugs: 574732 572880 565506

Package-Manager: portage-2.2.27

 x11-drivers/xf86-video-intel/Manifest              |  1 +
 x11-drivers/xf86-video-intel/metadata.xml          |  1 +
 .../xf86-video-intel-2.99.917_p20160213.ebuild     | 79 ++++++++++++++++++++++
 3 files changed, 81 insertions(+)

diff --git a/x11-drivers/xf86-video-intel/Manifest 
b/x11-drivers/xf86-video-intel/Manifest
index 0d36747..fee7cef 100644
--- a/x11-drivers/xf86-video-intel/Manifest
+++ b/x11-drivers/xf86-video-intel/Manifest
@@ -3,3 +3,4 @@ DIST xf86-video-intel-2.9.1.tar.bz2 789001 SHA256 
95347c88854c2b41c07ab3bcdfadd1
 DIST xf86-video-intel-2.99.917.tar.bz2 2259040 SHA256 
00b781eea055582820a123c47b62411bdf6aabf4f03dc0568faec55faf9667c9 SHA512 
cbf4d46ad1ad5e5587c0f1f620ff534ef0645270517b60056b9f03e83d8216e2f456de46352a06c37c0c46963cc4ed20b71b815b20ec1bf680ff046e535f580f
 WHIRLPOOL 
b26f1b303a27825120e1036f15493119e8869ebae74a2663204fe1ee63cf9fc217e593c469d6c33151a73c9ea6e9df88d0e3a0bb74ece5109b51593785fd4d7d
 DIST xf86-video-intel-2.99.917_p20160122.tar.xz 931472 SHA256 
7e1b9b9a183078c5c11d9962ad8782a0f8ba6d64dd8267a457563a91bc90a990 SHA512 
e109826b6a08cbd8d9ae7918e0c3fa1f47a56715691552d293e50dbcd92efd3e1a49f3a0db44209fec1e2cce885cc930d520f24bcd5ecb7fb83e5b71a87b1d17
 WHIRLPOOL 
5eee92198c63dad7883b746cfd01025391fab6176f02222e61e784fc4be70903533583312c71058660043a0b6ec2624cdeaf30d723c52acd369358451fc8e1a4
 DIST xf86-video-intel-2.99.917_p20160203.tar.xz 932800 SHA256 
a40792f8bcb7d48593d60d4a97a957dd0a2b505e13f15638087abd20ba98df60 SHA512 
e0bdbcbe297686c3d05573932ad929d7681de52bf9b02e37b51550da55ae0841f515b740dd67bf9053048acb8b6be05eb3b7d6121d7021abbae2b31dd2a30698
 WHIRLPOOL 
3ede81189f4040d26e6ab4b33d539a67ee0f11553a7db84eb6e15d6f6d6cb5345244e1515e072c48874689bc07ed159ee01f9544aabc7690320e017b245ad1dc
+DIST xf86-video-intel-2.99.917_p20160213.tar.xz 933036 SHA256 
0c0b67ef52d02080f1361bde45b7bd4f901e6d64028e1a768223d63769f72616 SHA512 
b762afdde5ef8eaf0e310985fbfd0c192f7463b3114507e3ed7edb16c99bbcf28e4c439d257d59d937c5b1e9f240d512a1025ebd23a0984160a8339df3a30995
 WHIRLPOOL 
723474bba515f222f2aa5392fc9dc8dc6d3cf548f6ffd1b0396f9c78b148588424da703fe9ade5730bd33f99ce10f4de77738e6a7d46212f1425ab2e82faa205

diff --git a/x11-drivers/xf86-video-intel/metadata.xml 
b/x11-drivers/xf86-video-intel/metadata.xml
index e150cb4..d181613 100644
--- a/x11-drivers/xf86-video-intel/metadata.xml
+++ b/x11-drivers/xf86-video-intel/metadata.xml
@@ -6,6 +6,7 @@
                <name>X11</name>
        </maintainer>
        <use>
+               <flag name="dri3">Enable DRI3 support</flag>
                <flag name="glamor">Enable Glamor OpenGL 2D acceleration</flag>
                <flag name="sna">Enable SandyBridge's New Acceleration (useful 
on all chipsets, not just SandyBridge)</flag>
                <flag name="uxa">Enable UMA Acceleration Architecture</flag>

diff --git 
a/x11-drivers/xf86-video-intel/xf86-video-intel-2.99.917_p20160213.ebuild 
b/x11-drivers/xf86-video-intel/xf86-video-intel-2.99.917_p20160213.ebuild
new file mode 100644
index 0000000..c1c92f1
--- /dev/null
+++ b/x11-drivers/xf86-video-intel/xf86-video-intel-2.99.917_p20160213.ebuild
@@ -0,0 +1,79 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+XORG_DRI=dri
+inherit linux-info xorg-2
+
+DESCRIPTION="X.Org driver for Intel cards"
+
+KEYWORDS="~amd64 ~x86 ~amd64-fbsd -x86-fbsd"
+IUSE="debug dri3 +sna +udev uxa xvmc"
+COMMIT_ID="636b52913cac10e691834a699cff10fb94d395fa"
+SRC_URI="http://cgit.freedesktop.org/xorg/driver/xf86-video-intel/snapshot/${COMMIT_ID}.tar.xz
 -> ${P}.tar.xz"
+
+S=${WORKDIR}/${COMMIT_ID}
+
+REQUIRED_USE="
+       || ( sna uxa )
+"
+RDEPEND="x11-libs/libXext
+       x11-libs/libXfixes
+       >=x11-libs/pixman-0.27.1
+       >=x11-libs/libdrm-2.4.29[video_cards_intel]
+       dri3? ( 
+               >=x11-base/xorg-server-1.18
+       )
+       sna? (
+               >=x11-base/xorg-server-1.10
+       )
+       udev? (
+               virtual/udev
+       )
+       xvmc? (
+               x11-libs/libXvMC
+               >=x11-libs/libxcb-1.5
+               x11-libs/xcb-util
+       )
+"
+DEPEND="${RDEPEND}
+       x11-misc/util-macros
+       >=x11-proto/dri2proto-2.6
+       x11-proto/dri3proto
+       x11-proto/presentproto
+       x11-proto/resourceproto"
+
+src_prepare() {
+       eautoreconf
+}
+
+src_configure() {
+       XORG_CONFIGURE_OPTIONS=(
+               $(use_enable debug)
+               $(use_enable dri)
+               $(use_enable dri3)
+               $(usex dri3 "--with-default-dri=3")
+               $(use_enable sna)
+               $(use_enable udev)
+               $(use_enable uxa)
+               $(use_enable xvmc)
+       )
+       xorg-2_src_configure
+}
+
+pkg_postinst() {
+       if linux_config_exists \
+               kernel_is -lt 4 3 && ! linux_chkconfig_present DRM_I915_KMS; 
then
+               echo
+               ewarn "This driver requires KMS support in your kernel"
+               ewarn "  Device Drivers --->"
+               ewarn "    Graphics support --->"
+               ewarn "      Direct Rendering Manager (XFree86 4.1.0 and higher 
DRI support)  --->"
+               ewarn "      <*>   Intel 830M, 845G, 852GM, 855GM, 865G (i915 
driver)  --->"
+               ewarn "       i915 driver"
+               ewarn "      [*]       Enable modesetting on intel by default"
+               echo
+       fi
+}

Reply via email to