1 |
commit: 6571257c67a8e9f3fd5eb8ef5e9c5a0dab9ac7f1 |
2 |
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Feb 28 22:10:53 2019 +0000 |
4 |
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Feb 28 22:11:09 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6571257c |
7 |
|
8 |
x11-libs/libvdpau: Add live ebuild |
9 |
|
10 |
Package-Manager: Portage-2.3.62, Repoman-2.3.12 |
11 |
Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org> |
12 |
|
13 |
x11-libs/libvdpau/libvdpau-99999.ebuild | 56 +++++++++++++++++++++++++++++++++ |
14 |
1 file changed, 56 insertions(+) |
15 |
|
16 |
diff --git a/x11-libs/libvdpau/libvdpau-99999.ebuild b/x11-libs/libvdpau/libvdpau-99999.ebuild |
17 |
new file mode 100644 |
18 |
index 00000000000..ecc84d2648b |
19 |
--- /dev/null |
20 |
+++ b/x11-libs/libvdpau/libvdpau-99999.ebuild |
21 |
@@ -0,0 +1,56 @@ |
22 |
+# Copyright 1999-2019 Gentoo Authors |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=7 |
26 |
+VIRTUALX_REQUIRED="test" |
27 |
+inherit flag-o-matic git-r3 meson virtualx multilib-minimal |
28 |
+ |
29 |
+DESCRIPTION="VDPAU wrapper and trace libraries" |
30 |
+HOMEPAGE="https://www.freedesktop.org/wiki/Software/VDPAU" |
31 |
+EGIT_REPO_URI="https://gitlab.freedesktop.org/vdpau/${PN}/" |
32 |
+ |
33 |
+LICENSE="MIT" |
34 |
+SLOT="0" |
35 |
+KEYWORDS="" |
36 |
+IUSE="doc dri" |
37 |
+ |
38 |
+RDEPEND=" |
39 |
+ >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}] |
40 |
+ dri? ( >=x11-libs/libXext-1.3.2[${MULTILIB_USEDEP}] ) |
41 |
+" |
42 |
+DEPEND=" |
43 |
+ ${RDEPEND} |
44 |
+ virtual/pkgconfig |
45 |
+ doc? ( |
46 |
+ app-doc/doxygen |
47 |
+ media-gfx/graphviz |
48 |
+ virtual/latex-base |
49 |
+ ) |
50 |
+ dri? ( x11-base/xorg-proto ) |
51 |
+" |
52 |
+ |
53 |
+src_prepare() { |
54 |
+ sed -i -e "/^docdir/s|${PN}|${PF}|g" doc/meson.build || die |
55 |
+ default |
56 |
+} |
57 |
+ |
58 |
+multilib_src_configure() { |
59 |
+ append-cppflags -D_GNU_SOURCE |
60 |
+ local emesonargs=( |
61 |
+ -Ddri2=$(usex dri true false) |
62 |
+ -Ddocumentation=$(usex doc true false) |
63 |
+ ) |
64 |
+ meson_src_configure |
65 |
+} |
66 |
+ |
67 |
+multilib_src_compile() { |
68 |
+ meson_src_compile |
69 |
+} |
70 |
+multilib_src_test() { |
71 |
+ virtx meson_src_test |
72 |
+} |
73 |
+ |
74 |
+multilib_src_install() { |
75 |
+ meson_src_install |
76 |
+ find "${ED}" -name '*.la' -delete || die |
77 |
+} |