Gentoo Archives: gentoo-commits

From: Brian Evans <grknight@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-plugins/freshplayerplugin/
Date: Tue, 29 Dec 2015 02:56:46
Message-Id: 1451357771.634168a2536a434aa51e93f03c7ca213d16827ba.grknight@gentoo
1 commit: 634168a2536a434aa51e93f03c7ca213d16827ba
2 Author: Brian Evans <grknight <AT> gentoo <DOT> org>
3 AuthorDate: Tue Dec 29 02:56:11 2015 +0000
4 Commit: Brian Evans <grknight <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 29 02:56:11 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=634168a2
7
8 www-plugins/freshplayerplugin: Revbump to fix dependencies wrt bug 569964
9
10 Package-Manager: portage-2.2.26
11
12 .../freshplayerplugin-0.3.4-r1.ebuild | 84 ++++++++++++++++++++++
13 www-plugins/freshplayerplugin/metadata.xml | 2 +
14 2 files changed, 86 insertions(+)
15
16 diff --git a/www-plugins/freshplayerplugin/freshplayerplugin-0.3.4-r1.ebuild b/www-plugins/freshplayerplugin/freshplayerplugin-0.3.4-r1.ebuild
17 new file mode 100644
18 index 0000000..5c5f5c1
19 --- /dev/null
20 +++ b/www-plugins/freshplayerplugin/freshplayerplugin-0.3.4-r1.ebuild
21 @@ -0,0 +1,84 @@
22 +# Copyright 1999-2015 Gentoo Foundation
23 +# Distributed under the terms of the GNU General Public License v2
24 +# $Id$
25 +
26 +EAPI=5
27 +
28 +CMAKE_MIN_VERSION="2.8.8"
29 +
30 +inherit cmake-utils multilib
31 +
32 +LICENSE="MIT"
33 +HOMEPAGE="https://github.com/i-rinat/freshplayerplugin"
34 +DESCRIPTION="PPAPI-host NPAPI-plugin adapter for flashplayer in npapi based browsers"
35 +SRC_URI="https://github.com/i-rinat/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
36 +SLOT=0
37 +IUSE="gles2 gtk3 jack libav libressl pulseaudio v4l vaapi vdpau"
38 +
39 +KEYWORDS="~amd64 ~x86"
40 +
41 +HWDEC_DEPEND="
42 + libav? ( media-video/libav:0=[vaapi?,vdpau?] )
43 + !libav? ( media-video/ffmpeg:0=[vaapi?,vdpau?] )
44 + x11-libs/libva
45 + x11-libs/libvdpau
46 +"
47 +
48 +COMMON_DEPEND="
49 + dev-libs/glib:2=
50 + dev-libs/libevent:=[threads]
51 + media-libs/alsa-lib:=
52 + media-libs/freetype:2=
53 + media-libs/mesa:=[egl,gles2?]
54 + x11-libs/cairo:=[X]
55 + x11-libs/libXcursor:=
56 + x11-libs/libXrandr:=
57 + x11-libs/libXrender:=
58 + x11-libs/libdrm:=
59 + x11-libs/pango:=[X]
60 + jack? (
61 + media-sound/jack-audio-connection-kit
62 + media-libs/soxr
63 + )
64 + pulseaudio? ( media-sound/pulseaudio )
65 + !gtk3? ( x11-libs/gtk+:2= )
66 + gtk3? ( x11-libs/gtk+:3= )
67 + libressl? ( dev-libs/libressl:0= )
68 + !libressl? ( dev-libs/openssl:0= )
69 + v4l? ( media-libs/libv4l:0= )
70 + vaapi? ( ${HWDEC_DEPEND} )
71 + vdpau? ( ${HWDEC_DEPEND} )
72 +"
73 +
74 +DEPEND="${COMMON_DEPEND}
75 + dev-util/ragel
76 + virtual/pkgconfig
77 + "
78 +RDEPEND="${COMMON_DEPEND}
79 + || (
80 + www-plugins/chrome-binary-plugins[flash]
81 + www-client/google-chrome
82 + www-client/google-chrome-beta
83 + www-client/google-chrome-unstable
84 + )
85 + "
86 +
87 +PATCHES=( "${FILESDIR}/0.3.4-cmake.patch" "${FILESDIR}/0.3.4-git-revision.patch" )
88 +DOCS=( ChangeLog data/freshwrapper.conf.example README.md )
89 +
90 +src_configure() {
91 + mycmakeargs=(
92 + -DWITH_JACK=$(usex jack)
93 + -DWITH_PULSEAUDIO=$(usex pulseaudio)
94 + -DWITH_GTK=$(usex gtk3 3 2)
95 + -DWITH_GLES2=$(usex gles2)
96 + -DWITH_LIBV4L2=$(usex v4l)
97 + -DCMAKE_SKIP_RPATH=1
98 + )
99 + if use vaapi || use vdpau ; then
100 + mycmakeargs+=( -DWITH_HWDEC=1 )
101 + else
102 + mycmakeargs+=( -DWITH_HWDEC=0 )
103 + fi
104 + cmake-utils_src_configure
105 +}
106
107 diff --git a/www-plugins/freshplayerplugin/metadata.xml b/www-plugins/freshplayerplugin/metadata.xml
108 index a2941a2..e515579 100644
109 --- a/www-plugins/freshplayerplugin/metadata.xml
110 +++ b/www-plugins/freshplayerplugin/metadata.xml
111 @@ -6,7 +6,9 @@
112 <name>Brian Evans</name>
113 </maintainer>
114 <use>
115 + <flag name="gles2">Use system GLESv2 libraries instead of ANGLE for shader translation</flag>
116 <flag name="gtk3">Build with GTK+ 3 instead of GTK+ 2</flag>
117 + <flag name="v4l">Use libv4l2 for colorspace conversion</flag>
118 </use>
119 <upstream>
120 <remote-id type="github">i-rinat/freshplayerplugin</remote-id>