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: Fri, 05 Jan 2018 18:11:38
Message-Id: 1515175858.81d300b0339ed621ca3203d1a609c4fba359efb4.mattst88@gentoo
1 commit: 81d300b0339ed621ca3203d1a609c4fba359efb4
2 Author: Matt Turner <mattst88 <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jan 5 18:06:47 2018 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Fri Jan 5 18:10:58 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=81d300b0
7
8 x11-libs/libdrm: Version bump to 2.4.89
9
10 Bug: https://bugs.gentoo.org/643482
11
12 x11-libs/libdrm/Manifest | 1 +
13 x11-libs/libdrm/libdrm-2.4.89.ebuild | 63 ++++++++++++++++++++++++++++++++++++
14 2 files changed, 64 insertions(+)
15
16 diff --git a/x11-libs/libdrm/Manifest b/x11-libs/libdrm/Manifest
17 index 8f08cdd4ba6..c9fbe8ab299 100644
18 --- a/x11-libs/libdrm/Manifest
19 +++ b/x11-libs/libdrm/Manifest
20 @@ -1,2 +1,3 @@
21 DIST libdrm-2.4.82.tar.bz2 754053 BLAKE2B 83d0a7203826c093bfb6b3ce4836f3ec6182a75f08f4cecb142e5707eb525cfbba9a123a94235b09370ac53cb7beb443604cb7dfba4cf375e0d0a74f71ce8bb4 SHA512 e69fd8c2b392daabbb3a548179e3a21a555d5174c11d76a288eb2a08850849aa867c7777b67798ec00e026e998a3b128c22698f05a7b44eb24cddc5c8a3a02d0
22 DIST libdrm-2.4.88.tar.bz2 796583 BLAKE2B 4130633fea39e12514e6c6e7a926ca7ccca618ecb15a67cd27ee577a4ad56ecf6d09e20a323546a2b9698d7e41bd28377e7e04e8f478a3ca957868e1ac51cf98 SHA512 0d9d4bcc0d9be1fb6b1ca075339b22b0f927288a4c02bbcbf95406b5c095051890f3d2e0d32e529ef9b6952ce1250afd1e0765ad3188c2bac924dda8c33afabb
23 +DIST libdrm-2.4.89.tar.bz2 792940 BLAKE2B 86c8227a06060e827f39da9f1debae54784e38e34becfb3ace1329f68b0fa4cfb90532606cd3618987af2cb48b53f0277e4032055eccc164f7e6b910d3c055e0 SHA512 380e4e46cd3971a73264bd1b482791fab0503268adb65ac81b674df009662cfb8ef5741e362f19670b2a43b1c46f022d857706c9a4bebed2b1cddaa317b7706d
24
25 diff --git a/x11-libs/libdrm/libdrm-2.4.89.ebuild b/x11-libs/libdrm/libdrm-2.4.89.ebuild
26 new file mode 100644
27 index 00000000000..f9f91008a7a
28 --- /dev/null
29 +++ b/x11-libs/libdrm/libdrm-2.4.89.ebuild
30 @@ -0,0 +1,63 @@
31 +# Copyright 1999-2018 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=5
35 +
36 +XORG_MULTILIB=yes
37 +inherit xorg-2
38 +
39 +DESCRIPTION="X.Org libdrm library"
40 +HOMEPAGE="https://dri.freedesktop.org/"
41 +if [[ ${PV} = 9999* ]]; then
42 + EGIT_REPO_URI="https://anongit.freedesktop.org/git/mesa/drm.git"
43 +else
44 + SRC_URI="https://dri.freedesktop.org/libdrm/${P}.tar.bz2"
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 +fi
47 +
48 +VIDEO_CARDS="amdgpu exynos freedreno intel nouveau omap radeon tegra vc4 vivante vmware"
49 +for card in ${VIDEO_CARDS}; do
50 + IUSE_VIDEO_CARDS+=" video_cards_${card}"
51 +done
52 +
53 +IUSE="${IUSE_VIDEO_CARDS} libkms valgrind"
54 +RESTRICT="test" # see bug #236845
55 +
56 +RDEPEND=">=dev-libs/libpthread-stubs-0.3-r1:=[${MULTILIB_USEDEP}]
57 + video_cards_intel? ( >=x11-libs/libpciaccess-0.13.1-r1:=[${MULTILIB_USEDEP}] )
58 + abi_x86_32? ( !app-emulation/emul-linux-x86-opengl[-abi_x86_32(-)] )"
59 +DEPEND="${RDEPEND}
60 + valgrind? ( dev-util/valgrind )"
61 +
62 +src_prepare() {
63 + if [[ ${PV} = 9999* ]]; then
64 + # tests are restricted, no point in building them
65 + sed -ie 's/tests //' "${S}"/Makefile.am
66 + fi
67 + xorg-2_src_prepare
68 + epatch_user
69 +}
70 +
71 +src_configure() {
72 + XORG_CONFIGURE_OPTIONS=(
73 + # Udev is only used by tests now.
74 + --disable-udev
75 + --disable-cairo-tests
76 + $(use_enable video_cards_amdgpu amdgpu)
77 + $(use_enable video_cards_exynos exynos-experimental-api)
78 + $(use_enable video_cards_freedreno freedreno)
79 + $(use_enable video_cards_intel intel)
80 + $(use_enable video_cards_nouveau nouveau)
81 + $(use_enable video_cards_omap omap-experimental-api)
82 + $(use_enable video_cards_radeon radeon)
83 + $(use_enable video_cards_tegra tegra-experimental-api)
84 + $(use_enable video_cards_vc4 vc4)
85 + $(use_enable video_cards_vivante etnaviv-experimental-api)
86 + $(use_enable video_cards_vmware vmwgfx)
87 + $(use_enable libkms)
88 + # valgrind installs its .pc file to the pkgconfig for the primary arch
89 + --enable-valgrind=$(usex valgrind auto no)
90 + )
91 +
92 + xorg-2_src_configure
93 +}