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: Thu, 13 Oct 2016 19:07:24
Message-Id: 1476385538.7479b0011097889ab33a7704948057c9aa6e4dd2.grknight@gentoo
1 commit: 7479b0011097889ab33a7704948057c9aa6e4dd2
2 Author: Brian Evans <grknight <AT> gentoo <DOT> org>
3 AuthorDate: Thu Oct 13 19:05:38 2016 +0000
4 Commit: Brian Evans <grknight <AT> gentoo <DOT> org>
5 CommitDate: Thu Oct 13 19:05:38 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7479b001
7
8 www-plugins/freshplayerplugin: Version bump to remove bad dependencies
9
10 chrome-binary-plugins and google-chrome no longer provide flash
11
12 Package-Manager: portage-2.3.2
13
14 .../freshplayerplugin-0.3.5-r2.ebuild | 80 ++++++++++++++++++++++
15 1 file changed, 80 insertions(+)
16
17 diff --git a/www-plugins/freshplayerplugin/freshplayerplugin-0.3.5-r2.ebuild b/www-plugins/freshplayerplugin/freshplayerplugin-0.3.5-r2.ebuild
18 new file mode 100644
19 index 00000000..8adae56
20 --- /dev/null
21 +++ b/www-plugins/freshplayerplugin/freshplayerplugin-0.3.5-r2.ebuild
22 @@ -0,0 +1,80 @@
23 +# Copyright 1999-2016 Gentoo Foundation
24 +# Distributed under the terms of the GNU General Public License v2
25 +# $Id$
26 +
27 +EAPI=6
28 +
29 +CMAKE_MIN_VERSION="2.8.8"
30 +
31 +inherit cmake-utils
32 +
33 +LICENSE="MIT"
34 +HOMEPAGE="https://github.com/i-rinat/freshplayerplugin"
35 +DESCRIPTION="PPAPI-host NPAPI-plugin adapter for flashplayer in npapi based browsers"
36 +SRC_URI="https://github.com/i-rinat/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
37 +SLOT=0
38 +IUSE="gles2 gtk3 jack libav libressl pulseaudio v4l vaapi vdpau"
39 +
40 +KEYWORDS="~amd64"
41 +
42 +HWDEC_DEPEND="
43 + libav? ( media-video/libav:0=[vaapi?,vdpau?] )
44 + !libav? ( media-video/ffmpeg:0=[vaapi?,vdpau?] )
45 + x11-libs/libva
46 + x11-libs/libvdpau
47 +"
48 +
49 +COMMON_DEPEND="
50 + dev-libs/glib:2=
51 + dev-libs/icu:0=
52 + dev-libs/libevent:=[threads]
53 + media-libs/alsa-lib:=
54 + media-libs/freetype:2=
55 + media-libs/mesa:=[egl,gles2?]
56 + x11-libs/cairo:=[X]
57 + x11-libs/libXcursor:=
58 + x11-libs/libXrandr:=
59 + x11-libs/libXrender:=
60 + x11-libs/libdrm:=
61 + x11-libs/pango:=[X]
62 + jack? (
63 + media-sound/jack-audio-connection-kit
64 + media-libs/soxr
65 + )
66 + pulseaudio? ( media-sound/pulseaudio )
67 + !gtk3? ( x11-libs/gtk+:2= )
68 + gtk3? ( x11-libs/gtk+:3= )
69 + libressl? ( dev-libs/libressl:0= )
70 + !libressl? ( dev-libs/openssl:0= )
71 + v4l? ( media-libs/libv4l:0= )
72 + vaapi? ( ${HWDEC_DEPEND} )
73 + vdpau? ( ${HWDEC_DEPEND} )
74 +"
75 +
76 +DEPEND="${COMMON_DEPEND}
77 + dev-util/ragel
78 + virtual/pkgconfig
79 + "
80 +RDEPEND="${COMMON_DEPEND}
81 + www-plugins/adobe-flash:22
82 + "
83 +
84 +PATCHES=( "${FILESDIR}/0.3.5-cmake.patch" "${FILESDIR}/0.3.4-git-revision.patch" )
85 +DOCS=( ChangeLog data/freshwrapper.conf.example README.md )
86 +
87 +src_configure() {
88 + mycmakeargs=(
89 + -DWITH_JACK=$(usex jack)
90 + -DWITH_PULSEAUDIO=$(usex pulseaudio)
91 + -DWITH_GTK=$(usex gtk3 3 2)
92 + -DWITH_GLES2=$(usex gles2)
93 + -DWITH_LIBV4L2=$(usex v4l)
94 + -DCMAKE_SKIP_RPATH=1
95 + )
96 + if use vaapi || use vdpau ; then
97 + mycmakeargs+=( -DWITH_HWDEC=1 )
98 + else
99 + mycmakeargs+=( -DWITH_HWDEC=0 )
100 + fi
101 + cmake-utils_src_configure
102 +}