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: Thu, 01 Mar 2018 05:39:09
Message-Id: 1519882736.a5c01af508f0951513133787c1699c5058d51ca1.mattst88@gentoo
1 commit: a5c01af508f0951513133787c1699c5058d51ca1
2 Author: Matt Turner <mattst88 <AT> gentoo <DOT> org>
3 AuthorDate: Thu Mar 1 05:37:23 2018 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Thu Mar 1 05:38:56 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a5c01af5
7
8 x11-libs/libdrm: Switch to using Meson build system
9
10 x11-libs/libdrm/libdrm-9999.ebuild | 79 ++++++++++++++++++++++----------------
11 1 file changed, 46 insertions(+), 33 deletions(-)
12
13 diff --git a/x11-libs/libdrm/libdrm-9999.ebuild b/x11-libs/libdrm/libdrm-9999.ebuild
14 index 092c800d11d..e516fe208c8 100644
15 --- a/x11-libs/libdrm/libdrm-9999.ebuild
16 +++ b/x11-libs/libdrm/libdrm-9999.ebuild
17 @@ -1,15 +1,20 @@
18 -# Copyright 1999-2017 Gentoo Foundation
19 +# Copyright 1999-2018 Gentoo Foundation
20 # Distributed under the terms of the GNU General Public License v2
21
22 -EAPI=5
23 +EAPI=6
24
25 -XORG_MULTILIB=yes
26 -inherit xorg-2
27 +EGIT_REPO_URI="https://anongit.freedesktop.org/git/mesa/drm.git"
28 +
29 +if [[ ${PV} = 9999* ]]; then
30 + GIT_ECLASS="git-r3"
31 +fi
32 +
33 +inherit ${GIT_ECLASS} meson multilib-minimal
34
35 DESCRIPTION="X.Org libdrm library"
36 HOMEPAGE="https://dri.freedesktop.org/"
37 if [[ ${PV} = 9999* ]]; then
38 - EGIT_REPO_URI="https://anongit.freedesktop.org/git/mesa/drm.git"
39 + SRC_URI=""
40 else
41 SRC_URI="https://dri.freedesktop.org/libdrm/${P}.tar.bz2"
42 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux"
43 @@ -22,42 +27,50 @@ done
44
45 IUSE="${IUSE_VIDEO_CARDS} libkms valgrind"
46 RESTRICT="test" # see bug #236845
47 +LICENSE="MIT"
48 +SLOT="0"
49
50 -RDEPEND=">=dev-libs/libpthread-stubs-0.3-r1:=[${MULTILIB_USEDEP}]
51 - video_cards_intel? ( >=x11-libs/libpciaccess-0.13.1-r1:=[${MULTILIB_USEDEP}] )
52 - abi_x86_32? ( !app-emulation/emul-linux-x86-opengl[-abi_x86_32(-)] )"
53 +RDEPEND="elibc_FreeBSD? ( >=dev-libs/libpthread-stubs-0.4:=[${MULTILIB_USEDEP}] )
54 + video_cards_intel? ( >=x11-libs/libpciaccess-0.13.1-r1:=[${MULTILIB_USEDEP}] )"
55 DEPEND="${RDEPEND}
56 valgrind? ( dev-util/valgrind )"
57
58 -src_prepare() {
59 - if [[ ${PV} = 9999* ]]; then
60 - # tests are restricted, no point in building them
61 - sed -ie 's/tests //' "${S}"/Makefile.am
62 - fi
63 - xorg-2_src_prepare
64 - epatch_user
65 +src_unpack() {
66 + default
67 + [[ $PV = 9999* ]] && git-r3_src_unpack
68 }
69
70 -src_configure() {
71 - XORG_CONFIGURE_OPTIONS=(
72 +multilib_src_configure() {
73 + local emesonargs=(
74 # Udev is only used by tests now.
75 - --disable-udev
76 - --disable-cairo-tests
77 - $(use_enable video_cards_amdgpu amdgpu)
78 - $(use_enable video_cards_exynos exynos-experimental-api)
79 - $(use_enable video_cards_freedreno freedreno)
80 - $(use_enable video_cards_intel intel)
81 - $(use_enable video_cards_nouveau nouveau)
82 - $(use_enable video_cards_omap omap-experimental-api)
83 - $(use_enable video_cards_radeon radeon)
84 - $(use_enable video_cards_tegra tegra-experimental-api)
85 - $(use_enable video_cards_vc4 vc4)
86 - $(use_enable video_cards_vivante etnaviv-experimental-api)
87 - $(use_enable video_cards_vmware vmwgfx)
88 - $(use_enable libkms)
89 + -Dudev=false
90 + -Dcairo-tests=false
91 + -Damdgpu=$(usex video_cards_amdgpu true false)
92 + -Dexynos=$(usex video_cards_exynos true false)
93 + -Dfreedreno=$(usex video_cards_freedreno true false)
94 + -Dintel=$(usex video_cards_intel true false)
95 + -Dnouveau=$(usex video_cards_nouveau true false)
96 + -Domap=$(usex video_cards_omap true false)
97 + -Dradeon=$(usex video_cards_radeon true false)
98 + -Dtegra=$(usex video_cards_tegra true false)
99 + -Dvc4=$(usex video_cards_vc4 true false)
100 + -Detnaviv=$(usex video_cards_vivante true false)
101 + -Dvmwgfx=$(usex video_cards_vmware true false)
102 + -Dlibkms=$(usex libkms true false)
103 # valgrind installs its .pc file to the pkgconfig for the primary arch
104 - --enable-valgrind=$(usex valgrind auto no)
105 + -Dvalgrind=$(usex valgrind auto false)
106 )
107 + meson_src_configure
108 +}
109 +
110 +multilib_src_compile() {
111 + meson_src_compile
112 +}
113 +
114 +multilib_src_test() {
115 + meson_src_test
116 +}
117
118 - xorg-2_src_configure
119 +multilib_src_install() {
120 + meson_src_install
121 }