Gentoo Archives: gentoo-commits

From: "Anthony G. Basile" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/musl:master commit in: x11-libs/libva-vdpau-driver/files/, x11-libs/libva-vdpau-driver/
Date: Sun, 18 Aug 2019 23:59:38
Message-Id: 1566172719.57a61bd634fbd53e799719d31c3d960fbf1747ce.blueness@gentoo
1 commit: 57a61bd634fbd53e799719d31c3d960fbf1747ce
2 Author: g3ngr33n <gengreen <AT> tutanota <DOT> com>
3 AuthorDate: Sun Aug 11 06:53:37 2019 +0000
4 Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
5 CommitDate: Sun Aug 18 23:58:39 2019 +0000
6 URL: https://gitweb.gentoo.org/proj/musl.git/commit/?id=57a61bd6
7
8 x11-libs/libva-vdpau-driver:
9
10 Bump 0.7.4-r5
11 - Fix headers time.h
12
13 Package-Manager: Portage-2.3.69, Repoman-2.3.16
14 Signed-off-by: Anthony G. Basile <blueness <AT> gentoo.org>
15
16 x11-libs/libva-vdpau-driver/Manifest | 2 +-
17 .../files/0001-fix-headers-musl.patch | 10 +++++++
18 .../libva-vdpau-driver-0.7.4-r4.ebuild | 2 +-
19 ...4.ebuild => libva-vdpau-driver-0.7.4-r5.ebuild} | 33 +++++++++++++---------
20 4 files changed, 31 insertions(+), 16 deletions(-)
21
22 diff --git a/x11-libs/libva-vdpau-driver/Manifest b/x11-libs/libva-vdpau-driver/Manifest
23 index b79becd..3c4075e 100644
24 --- a/x11-libs/libva-vdpau-driver/Manifest
25 +++ b/x11-libs/libva-vdpau-driver/Manifest
26 @@ -1 +1 @@
27 -DIST libva-vdpau-driver-0.7.4.tar.bz2 316729 SHA256 155c1982f0ac3f5435ba20b221bcaa11be212c37db548cd1f2a030ffa17e9bb9 SHA512 89f98dc1d7d590fb68f440dd1e37e025d64a621324e013e85dd1367681c07b09132fd2089539fc5b48934624648887a8a97539b4f07ddf9f56a8a456ad030094 WHIRLPOOL b6ba281a482dc944acff67d83d26d5a5ac7f15ea1de05c921383bdf0f6dae769d0389e6d15b607e01a8d4e18d3254f66391bbd497aa4e0eed2adbab54a13bce1
28 +DIST libva-vdpau-driver-0.7.4.tar.bz2 316729 BLAKE2B b9cd0bbbe1e638ad29363cd0d8c6452de222023017283ce81f138730c7ba3396f3ffca40478746cab4b93a8855e73de405aa783e44e6c1179c5e347bd7eff657 SHA512 89f98dc1d7d590fb68f440dd1e37e025d64a621324e013e85dd1367681c07b09132fd2089539fc5b48934624648887a8a97539b4f07ddf9f56a8a456ad030094
29
30 diff --git a/x11-libs/libva-vdpau-driver/files/0001-fix-headers-musl.patch b/x11-libs/libva-vdpau-driver/files/0001-fix-headers-musl.patch
31 new file mode 100644
32 index 0000000..2529fb2
33 --- /dev/null
34 +++ b/x11-libs/libva-vdpau-driver/files/0001-fix-headers-musl.patch
35 @@ -0,0 +1,10 @@
36 +--- a/src/utils.c
37 ++++ b/src/utils.c
38 +@@ -21,6 +21,7 @@
39 + #include "sysdeps.h"
40 + #include "utils.h"
41 + #include <time.h>
42 ++#include <sys/time.h>
43 + #include <errno.h>
44 +
45 + #define DEBUG 1
46
47 diff --git a/x11-libs/libva-vdpau-driver/libva-vdpau-driver-0.7.4-r4.ebuild b/x11-libs/libva-vdpau-driver/libva-vdpau-driver-0.7.4-r4.ebuild
48 index c7a8a2e..cb8f67d 100644
49 --- a/x11-libs/libva-vdpau-driver/libva-vdpau-driver-0.7.4-r4.ebuild
50 +++ b/x11-libs/libva-vdpau-driver/libva-vdpau-driver-0.7.4-r4.ebuild
51 @@ -1,4 +1,4 @@
52 -# Copyright 1999-2016 Gentoo Foundation
53 +# Copyright 1999-2019 Gentoo Authors
54 # Distributed under the terms of the GNU General Public License v2
55
56 EAPI=5
57
58 diff --git a/x11-libs/libva-vdpau-driver/libva-vdpau-driver-0.7.4-r4.ebuild b/x11-libs/libva-vdpau-driver/libva-vdpau-driver-0.7.4-r5.ebuild
59 similarity index 55%
60 copy from x11-libs/libva-vdpau-driver/libva-vdpau-driver-0.7.4-r4.ebuild
61 copy to x11-libs/libva-vdpau-driver/libva-vdpau-driver-0.7.4-r5.ebuild
62 index c7a8a2e..23e613e 100644
63 --- a/x11-libs/libva-vdpau-driver/libva-vdpau-driver-0.7.4-r4.ebuild
64 +++ b/x11-libs/libva-vdpau-driver/libva-vdpau-driver-0.7.4-r5.ebuild
65 @@ -1,10 +1,9 @@
66 -# Copyright 1999-2016 Gentoo Foundation
67 +# Copyright 1999-2019 Gentoo Authors
68 # Distributed under the terms of the GNU General Public License v2
69
70 -EAPI=5
71 +EAPI=7
72
73 -AUTOTOOLS_AUTORECONF="yes"
74 -inherit autotools-multilib eutils
75 +inherit autotools multilib-minimal
76
77 DESCRIPTION="VDPAU Backend for Video Acceleration (VA) API"
78 HOMEPAGE="https://www.freedesktop.org/wiki/Software/vaapi"
79 @@ -12,27 +11,32 @@ SRC_URI="https://www.freedesktop.org/software/vaapi/releases/libva-vdpau-driver/
80
81 LICENSE="GPL-2"
82 SLOT="0"
83 -KEYWORDS="amd64 x86"
84 +KEYWORDS="~amd64 ~arm64 ~x86"
85 IUSE="debug opengl"
86
87 -RDEPEND=">=x11-libs/libva-1.2.1-r1[X,opengl?,${MULTILIB_USEDEP}]
88 +RDEPEND=">=x11-libs/libva-1.2.1-r1:=[X,opengl?,${MULTILIB_USEDEP}]
89 opengl? ( >=virtual/opengl-7.0-r1[${MULTILIB_USEDEP}] )
90 >=x11-libs/libvdpau-0.8[${MULTILIB_USEDEP}]
91 !x11-libs/vdpau-video"
92
93 -DEPEND="${DEPEND}
94 +DEPEND="${RDEPEND}
95 virtual/pkgconfig"
96
97 DOCS=( NEWS README AUTHORS )
98
99 +PATCHES=(
100 + "${FILESDIR}"/${P}-glext-missing-definition.patch
101 + "${FILESDIR}"/${P}-VAEncH264VUIBufferType.patch
102 + "${FILESDIR}"/${P}-libvdpau-0.8.patch
103 + "${FILESDIR}"/${P}-sigfpe-crash.patch
104 + "${FILESDIR}"/${P}-include-linux-videodev2.h.patch
105 + "${FILESDIR}"/0001-fix-headers-musl.patch
106 +)
107 +
108 src_prepare() {
109 - epatch \
110 - "${FILESDIR}"/${P}-glext-missing-definition.patch \
111 - "${FILESDIR}"/${P}-VAEncH264VUIBufferType.patch \
112 - "${FILESDIR}"/${P}-libvdpau-0.8.patch \
113 - "${FILESDIR}"/${P}-missing-sys_time_h.patch
114 + default
115 sed -i 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' configure.ac || die
116 - autotools-multilib_src_prepare
117 + eautoreconf
118 }
119
120 multilib_src_configure() {
121 @@ -40,5 +44,6 @@ multilib_src_configure() {
122 $(use_enable debug)
123 $(use_enable opengl glx)
124 )
125 - autotools-utils_src_configure
126 +
127 + ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
128 }