Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-libs/libva/
Date: Fri, 05 Jul 2019 08:41:25
Message-Id: 1562316078.74780d6a86763c496ff6ceba415fcc448f91d937.polynomial-c@gentoo
1 commit: 74780d6a86763c496ff6ceba415fcc448f91d937
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jul 5 08:40:53 2019 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Fri Jul 5 08:41:18 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=74780d6a
7
8 x11-libs/libva: Synced live ebuild.
9
10 Package-Manager: Portage-2.3.68, Repoman-2.3.16
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 x11-libs/libva/libva-9999.ebuild | 27 ++++++++++++++++-----------
14 1 file changed, 16 insertions(+), 11 deletions(-)
15
16 diff --git a/x11-libs/libva/libva-9999.ebuild b/x11-libs/libva/libva-9999.ebuild
17 index 7de898cf6aa..3a85df58500 100644
18 --- a/x11-libs/libva/libva-9999.ebuild
19 +++ b/x11-libs/libva/libva-9999.ebuild
20 @@ -1,20 +1,19 @@
21 # Copyright 1999-2019 Gentoo Authors
22 # Distributed under the terms of the GNU General Public License v2
23
24 -EAPI=5
25 +EAPI=7
26
27 -if [[ ${PV} = *9999* ]] ; then # Live ebuild
28 - inherit git-r3
29 - EGIT_BRANCH=master
30 - EGIT_REPO_URI="https://github.com/intel/libva"
31 - AUTOTOOLS_AUTORECONF="yes"
32 -fi
33 -inherit autotools-multilib eapi7-ver multilib
34 +inherit multilib-minimal
35
36 DESCRIPTION="Video Acceleration (VA) API for Linux"
37 HOMEPAGE="https://01.org/linuxmedia/vaapi"
38
39 -if [[ ${PV} != *9999* ]] ; then
40 +if [[ ${PV} = *9999* ]] ; then # Live ebuild
41 + inherit autotools git-r3
42 + EGIT_BRANCH=master
43 + EGIT_REPO_URI="https://github.com/intel/libva"
44 + AUTOTOOLS_AUTORECONF="yes"
45 +else
46 SRC_URI="https://github.com/intel/libva/releases/download/${PV}/${P}.tar.bz2"
47 KEYWORDS="~amd64 ~arm64 ~x86 ~amd64-linux ~x86-linux"
48 fi
49 @@ -38,7 +37,8 @@ RDEPEND="
50 >=x11-libs/libXfixes-5.0.1[${MULTILIB_USEDEP}]
51 )
52 "
53 -DEPEND="${RDEPEND}
54 +DEPEND="${RDEPEND}"
55 +BDEPEND="
56 virtual/pkgconfig
57 "
58 PDEPEND="video_cards_nvidia? ( >=x11-libs/libva-vdpau-driver-0.7.4-r1[${MULTILIB_USEDEP}] )
59 @@ -62,6 +62,11 @@ MULTILIB_WRAPPED_HEADERS=(
60 /usr/include/va/va_glx.h
61 )
62
63 +src_prepare() {
64 + default
65 + [[ "${PV}" == *9999* ]] && eautoreconf
66 +}
67 +
68 multilib_src_configure() {
69 local myeconfargs=(
70 --with-drivers-path="${EPREFIX}/usr/$(get_libdir)/va/drivers"
71 @@ -70,5 +75,5 @@ multilib_src_configure() {
72 $(use_enable wayland)
73 $(use_enable drm)
74 )
75 - autotools-utils_src_configure
76 + ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
77 }