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