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: Sat, 19 Dec 2015 19:07:16
Message-Id: 1450552019.ff1eb9646b9d754d931f111c3439d4b42ef1eea2.grknight@gentoo
1 commit: ff1eb9646b9d754d931f111c3439d4b42ef1eea2
2 Author: Brian Evans <grknight <AT> gentoo <DOT> org>
3 AuthorDate: Sat Dec 19 19:06:59 2015 +0000
4 Commit: Brian Evans <grknight <AT> gentoo <DOT> org>
5 CommitDate: Sat Dec 19 19:06:59 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ff1eb964
7
8 www-plugins/freshplayerplugin: Revbump to fix missing dependency wrt bug 568804
9
10 Package-Manager: portage-2.2.26
11
12 .../freshplayerplugin-0.3.3-r2.ebuild | 85 ++++++++++++++++++++++
13 1 file changed, 85 insertions(+)
14
15 diff --git a/www-plugins/freshplayerplugin/freshplayerplugin-0.3.3-r2.ebuild b/www-plugins/freshplayerplugin/freshplayerplugin-0.3.3-r2.ebuild
16 new file mode 100644
17 index 0000000..026762b
18 --- /dev/null
19 +++ b/www-plugins/freshplayerplugin/freshplayerplugin-0.3.3-r2.ebuild
20 @@ -0,0 +1,85 @@
21 +# Copyright 1999-2015 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +# $Id$
24 +
25 +EAPI=5
26 +
27 +CMAKE_MIN_VERSION="2.8.8"
28 +
29 +inherit cmake-utils multilib
30 +
31 +LICENSE="MIT"
32 +HOMEPAGE="https://github.com/i-rinat/freshplayerplugin"
33 +DESCRIPTION="PPAPI-host NPAPI-plugin adapter for flashplayer in npapi based browsers"
34 +SRC_URI="https://github.com/i-rinat/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
35 +SLOT=0
36 +IUSE="gtk3 jack libav libressl pulseaudio vaapi vdpau"
37 +
38 +KEYWORDS="~amd64 ~x86"
39 +
40 +HWDEC_DEPEND="
41 + libav? ( media-video/libav:0=[vaapi?,vdpau?,x264] )
42 + !libav? ( media-video/ffmpeg:0=[vaapi?,vdpau?,x264] )
43 + x11-libs/libva
44 + x11-libs/libvdpau
45 +"
46 +
47 +COMMON_DEPEND="
48 + dev-libs/glib:2=
49 + dev-libs/libevent:=[threads]
50 + media-libs/alsa-lib:=
51 + media-libs/freetype:2=
52 + media-libs/libv4l:0=
53 + media-libs/mesa:=[egl,gles2]
54 + x11-libs/libXrandr:=
55 + x11-libs/libXrender:=
56 + x11-libs/libdrm:=
57 + x11-libs/pango:=[X]
58 + jack? (
59 + media-sound/jack-audio-connection-kit
60 + media-libs/soxr
61 + )
62 + pulseaudio? ( media-sound/pulseaudio )
63 + !gtk3? ( x11-libs/gtk+:2= )
64 + gtk3? ( x11-libs/gtk+:3= )
65 + libressl? ( dev-libs/libressl:0= )
66 + !libressl? ( dev-libs/openssl:0= )
67 + vaapi? ( ${HWDEC_DEPEND} )
68 + vdpau? ( ${HWDEC_DEPEND} )
69 +"
70 +
71 +DEPEND="${COMMON_DEPEND}
72 + dev-util/ragel
73 + virtual/pkgconfig
74 + "
75 +RDEPEND="${COMMON_DEPEND}
76 + || (
77 + www-plugins/chrome-binary-plugins[flash]
78 + www-client/google-chrome
79 + www-client/google-chrome-beta
80 + www-client/google-chrome-unstable
81 + )
82 + "
83 +
84 +PATCHES=( "${FILESDIR}/0.2.4-cmake.patch" )
85 +
86 +src_configure() {
87 + mycmakeargs=(
88 + $(cmake-utils_use_with jack JACK)
89 + $(cmake-utils_use_with pulseaudio PULSEAUDIO)
90 + -DWITH_GTK=$(usex gtk3 3 2)
91 + -DCMAKE_SKIP_RPATH=1
92 + )
93 + if use vaapi || use vdpau ; then
94 + mycmakeargs+=( -DWITH_HWDEC=1 )
95 + else
96 + mycmakeargs+=( -DWITH_HWDEC=0 )
97 + fi
98 + cmake-utils_src_configure
99 +}
100 +
101 +src_install() {
102 + dodoc ChangeLog data/freshwrapper.conf.example README.md
103 + exeinto /usr/$(get_libdir)/nsbrowser/plugins
104 + doexe "${BUILD_DIR}/libfreshwrapper-flashplayer.so"
105 +}