Gentoo Archives: gentoo-commits

From: Matt Turner <mattst88@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-libs/libdrm/
Date: Mon, 01 May 2017 18:14:20
Message-Id: 1493662442.c42055c1ad7d2da55514039dd4a68dc03a40f72a.mattst88@gentoo
1 commit: c42055c1ad7d2da55514039dd4a68dc03a40f72a
2 Author: Matt Turner <mattst88 <AT> gentoo <DOT> org>
3 AuthorDate: Mon May 1 18:13:53 2017 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Mon May 1 18:14:02 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c42055c1
7
8 x11-libs/libdrm: Version bump to 2.4.80
9
10 x11-libs/libdrm/Manifest | 1 +
11 x11-libs/libdrm/libdrm-2.4.80.ebuild | 63 ++++++++++++++++++++++++++++++++++++
12 2 files changed, 64 insertions(+)
13
14 diff --git a/x11-libs/libdrm/Manifest b/x11-libs/libdrm/Manifest
15 index 2bc1a0c38fd..063c383bafe 100644
16 --- a/x11-libs/libdrm/Manifest
17 +++ b/x11-libs/libdrm/Manifest
18 @@ -1,2 +1,3 @@
19 DIST libdrm-2.4.75.tar.bz2 774589 SHA256 2d5a500eef412cc287d12268eed79d571e262d4957a2ec9258073f305985054f SHA512 7d30029dfc384024eb6a82a04122064366572f5888ac4594fd9e02bc0a22ed2d154bef1840bd24f0543b77460d6359d7e424d424e10f4256ee3c898041be2292 WHIRLPOOL 24134409e59fe48bae02890b8153c063a49b114bcad9911487aa25ee594fe622ba04a3b2e486a2944ebe4177e205a8a970dd8d584550022780a70cb0447decf9
20 DIST libdrm-2.4.79.tar.bz2 783711 SHA256 c6aaf319293bce38023e9a637471b0f45c93c807d2a279060d741fc7a2e5b197 SHA512 62d6dbdf5e4e73e948fcb128a3ee76c88843d0aabf0af5751526829e9b95cff151a121af88ba9625acc7f5bc4ecfa71f9a3762005d5da76cff1d91dfc8ea8ea7 WHIRLPOOL 38e64cad8cd49a44931b598896d9ced625560a0d9da4f095d4d76eff3b64d8ab80285a6df2ff3c27ab41946fa0dcc718960cf01ac662be891c0f561997058208
21 +DIST libdrm-2.4.80.tar.bz2 771243 SHA256 a82a519601e9cdfad795e760807eb07ac8913b225e25fc8fe9bc03e3be6549f1 SHA512 478f64bcc6f4815368ae86d023f11ba6b37595bb9d8baa588b466c6c0e2aae48a50a489137750ed21fbabef5afabf183c78c152eb770bfe316fa7401b191a30b WHIRLPOOL 210f62c21aa27fb93eba3a8303daeab80b9da4b20ec6a70649fbad88f4277559a58018fbb12ff4b92bc6b8dc16b7ccbec1724bfcafe353382673352e9ac6d16d
22
23 diff --git a/x11-libs/libdrm/libdrm-2.4.80.ebuild b/x11-libs/libdrm/libdrm-2.4.80.ebuild
24 new file mode 100644
25 index 00000000000..464b3a444eb
26 --- /dev/null
27 +++ b/x11-libs/libdrm/libdrm-2.4.80.ebuild
28 @@ -0,0 +1,63 @@
29 +# Copyright 1999-2017 Gentoo Foundation
30 +# Distributed under the terms of the GNU General Public License v2
31 +
32 +EAPI=5
33 +
34 +XORG_MULTILIB=yes
35 +inherit xorg-2
36 +
37 +DESCRIPTION="X.Org libdrm library"
38 +HOMEPAGE="https://dri.freedesktop.org/"
39 +if [[ ${PV} = 9999* ]]; then
40 + EGIT_REPO_URI="git://anongit.freedesktop.org/git/mesa/drm"
41 +else
42 + SRC_URI="https://dri.freedesktop.org/${PN}/${P}.tar.bz2"
43 +fi
44 +
45 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux"
46 +VIDEO_CARDS="amdgpu exynos freedreno intel nouveau omap radeon tegra vc4 vivante vmware"
47 +for card in ${VIDEO_CARDS}; do
48 + IUSE_VIDEO_CARDS+=" video_cards_${card}"
49 +done
50 +
51 +IUSE="${IUSE_VIDEO_CARDS} libkms valgrind"
52 +RESTRICT="test" # see bug #236845
53 +
54 +RDEPEND=">=dev-libs/libpthread-stubs-0.3-r1:=[${MULTILIB_USEDEP}]
55 + video_cards_intel? ( >=x11-libs/libpciaccess-0.13.1-r1:=[${MULTILIB_USEDEP}] )
56 + abi_x86_32? ( !app-emulation/emul-linux-x86-opengl[-abi_x86_32(-)] )"
57 +DEPEND="${RDEPEND}
58 + valgrind? ( dev-util/valgrind )"
59 +
60 +src_prepare() {
61 + if [[ ${PV} = 9999* ]]; then
62 + # tests are restricted, no point in building them
63 + sed -ie 's/tests //' "${S}"/Makefile.am
64 + fi
65 + xorg-2_src_prepare
66 + epatch_user
67 +}
68 +
69 +src_configure() {
70 + XORG_CONFIGURE_OPTIONS=(
71 + # Udev is only used by tests now.
72 + --disable-udev
73 + --disable-cairo-tests
74 + $(use_enable video_cards_amdgpu amdgpu)
75 + $(use_enable video_cards_exynos exynos-experimental-api)
76 + $(use_enable video_cards_freedreno freedreno)
77 + $(use_enable video_cards_intel intel)
78 + $(use_enable video_cards_nouveau nouveau)
79 + $(use_enable video_cards_omap omap-experimental-api)
80 + $(use_enable video_cards_radeon radeon)
81 + $(use_enable video_cards_tegra tegra-experimental-api)
82 + $(use_enable video_cards_vc4 vc4)
83 + $(use_enable video_cards_vivante etnaviv-experimental-api)
84 + $(use_enable video_cards_vmware vmwgfx)
85 + $(use_enable libkms)
86 + # valgrind installs its .pc file to the pkgconfig for the primary arch
87 + --enable-valgrind=$(usex valgrind auto no)
88 + )
89 +
90 + xorg-2_src_configure
91 +}