Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-video/libva-utils/
Date: Thu, 21 Feb 2019 16:06:33
Message-Id: 1550765145.55442aa2f84df48dc307f97672bbcf41faf1fb8f.asturm@gentoo
1 commit: 55442aa2f84df48dc307f97672bbcf41faf1fb8f
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Thu Feb 21 15:50:02 2019 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Thu Feb 21 16:05:45 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=55442aa2
7
8 media-video/libva-utils: EAPI-7 bump
9
10 Sort DEPENDs
11
12 Package-Manager: Portage-2.3.62, Repoman-2.3.12
13 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
14
15 media-video/libva-utils/libva-utils-9999.ebuild | 53 +++++++++++--------------
16 1 file changed, 23 insertions(+), 30 deletions(-)
17
18 diff --git a/media-video/libva-utils/libva-utils-9999.ebuild b/media-video/libva-utils/libva-utils-9999.ebuild
19 index 6c7521ce078..6388f612168 100644
20 --- a/media-video/libva-utils/libva-utils-9999.ebuild
21 +++ b/media-video/libva-utils/libva-utils-9999.ebuild
22 @@ -1,63 +1,56 @@
23 -# Copyright 1999-2018 Gentoo Foundation
24 +# Copyright 1999-2019 Gentoo Authors
25 # Distributed under the terms of the GNU General Public License v2
26
27 -EAPI=5
28 +EAPI=7
29
30 -SCM=""
31 -if [ "${PV%9999}" != "${PV}" ] ; then # Live ebuild
32 - SCM=git-r3
33 - EGIT_BRANCH=master
34 +if [[ ${PV} = *9999* ]] ; then # Live ebuild
35 + inherit git-r3
36 EGIT_REPO_URI="https://github.com/intel/libva-utils"
37 fi
38 -
39 -AUTOTOOLS_AUTORECONF="yes"
40 -inherit autotools-utils ${SCM} multilib
41 +inherit autotools
42
43 DESCRIPTION="Collection of utilities and tests for VA-API"
44 HOMEPAGE="https://01.org/linuxmedia/vaapi"
45 -if [ "${PV%9999}" != "${PV}" ] ; then # Live ebuild
46 - SRC_URI=""
47 -else
48 - SRC_URI="https://github.com/intel/libva-utils/archive/${PV}.tar.gz -> ${P}.tar.gz"
49 +if [[ ${PV} != *9999* ]] ; then
50 + SRC_URI="https://github.com/intel/libva-utils/releases/download/${PV}/${P}.tar.bz2"
51 + KEYWORDS="~amd64 ~arm64 ~x86 ~amd64-linux ~x86-linux"
52 fi
53
54 LICENSE="MIT"
55 SLOT="0"
56 -if [ "${PV%9999}" = "${PV}" ] ; then
57 - KEYWORDS="~amd64 ~arm64 ~x86 ~amd64-linux ~x86-linux"
58 -else
59 - KEYWORDS=""
60 -fi
61 IUSE="+drm test wayland X"
62
63 -RDEPEND="
64 +REQUIRED_USE="|| ( drm wayland X )"
65 +
66 +BDEPEND="
67 + virtual/pkgconfig
68 +"
69 +DEPEND="
70 >=x11-libs/libva-2.0.0:=[drm?,wayland?,X?]
71 drm? ( >=x11-libs/libdrm-2.4 )
72 + wayland? ( >=dev-libs/wayland-1.0.6 )
73 X? (
74 >=x11-libs/libX11-1.6.2
75 >=x11-libs/libXext-1.3.2
76 >=x11-libs/libXfixes-5.0.1
77 )
78 - wayland? ( >=dev-libs/wayland-1.0.6 )"
79 +"
80 +RDEPEND="${DEPEND}"
81
82 -DEPEND="${RDEPEND}
83 - virtual/pkgconfig"
84 -
85 -REQUIRED_USE="|| ( drm wayland X )"
86 -
87 -DOCS=( CONTRIBUTING.md README.md )
88 +DOCS=( CONTRIBUTING.md NEWS README.md )
89
90 src_prepare() {
91 + default
92 sed -e 's/-Werror//' -i test/Makefile.am || die
93 - autotools-utils_src_prepare
94 + eautoreconf
95 }
96
97 src_configure() {
98 local myeconfargs=(
99 - $(use_enable X x11)
100 - $(use_enable wayland)
101 $(use_enable drm)
102 $(use_enable test tests)
103 + $(use_enable wayland)
104 + $(use_enable X x11)
105 )
106 - autotools-utils_src_configure
107 + econf "${myeconfargs[@]}"
108 }