1 |
commit: 9c6483fca11590c6002e58f1607425eb5ce4eafd |
2 |
Author: Brian Evans <grknight <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Aug 29 23:12:20 2016 +0000 |
4 |
Commit: Brian Evans <grknight <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Aug 29 23:12:20 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9c6483fc |
7 |
|
8 |
www-plugins/freshplayerplugin: Version bump wrt bug 581228 |
9 |
|
10 |
Package-Manager: portage-2.3.0 |
11 |
|
12 |
www-plugins/freshplayerplugin/Manifest | 1 + |
13 |
.../freshplayerplugin/files/0.3.5-cmake.patch | 70 ++++++++++++++++++ |
14 |
.../freshplayerplugin-0.3.5.ebuild | 85 ++++++++++++++++++++++ |
15 |
3 files changed, 156 insertions(+) |
16 |
|
17 |
diff --git a/www-plugins/freshplayerplugin/Manifest b/www-plugins/freshplayerplugin/Manifest |
18 |
index 097bfb4..2f5763a 100644 |
19 |
--- a/www-plugins/freshplayerplugin/Manifest |
20 |
+++ b/www-plugins/freshplayerplugin/Manifest |
21 |
@@ -2,3 +2,4 @@ DIST freshplayerplugin-0.3.1.tar.gz 2711793 SHA256 4ed582896fff618d8025dd51bbf2f |
22 |
DIST freshplayerplugin-0.3.2.tar.gz 2713241 SHA256 b3687b9d67ab88c64fea32b17f281f142bf861e33d9135b00da5d90d385d9ce5 SHA512 9c908ce1a168c0797dc3b0da8e98d722cc32d729acb1c4a8f38b7e95c23fe870baabe4b3f8790d021711578fdb9a61f44aba27cebb924fec9aabcf8cd91323e5 WHIRLPOOL 2e9b78bcc3605409ec6853caf31aab03658c044e0d05449a620b31261323856503db8db960db9992d6db4fd61df8f9feb05800124c2f4a450c4ff65b22fc7c34 |
23 |
DIST freshplayerplugin-0.3.3.tar.gz 2722467 SHA256 0dc20d6ca083b24225d8bbab88be1ed483034bde71eb360962de47cdb2e51f00 SHA512 ae85adb7e894adf8c1cd4228d15975c9d5fefdb6c6d3aa90e65d93865996c787f6378eb145f35ed348db67cec0adad794b78a0f77519236c28082630ad3756bc WHIRLPOOL 3e9694738d5e926b44588560b2a6bf50eeeefc35855722bda2494a9d08bd11c8ed844791cdd8a312592be0ef002d3ee6b1c7fc090bbd94ca438ccc8a148eac99 |
24 |
DIST freshplayerplugin-0.3.4.tar.gz 768318 SHA256 6f0009e64c59caa5c674b63eabb709ba8da6c85fc7cd45a1d66392e3a24da9a5 SHA512 d64fa3e6e38b4e17bef04b09c529ff03e86bb4b348e1e6b9a05f7ff4ee98327e288becd1cc6727db687ddca9e9ed04243c80c5e95e927cafad49a273d9c0d216 WHIRLPOOL 8fe0d582c25042b233d11fba83c50bd5a54e111c7f84b27ed28ba6cfc83c2101095e0460c67d122a3598d020d061f44e8de8bc922a164a251aeb589ac805291d |
25 |
+DIST freshplayerplugin-0.3.5.tar.gz 781003 SHA256 b08f7c6690de13b1e358fef4cab41cb303b9e80b3504678e94c9646f44dd7104 SHA512 dd447db4cbfdb80b89ff42894099971c100023d19fe5fbad023d5ac1afa827fdc5a169a03f4702ffda3cf6e0dd9c63217b68d97d047ac43afc22f488020a0ba0 WHIRLPOOL cf22758e0ed947db27e8e6e053f17bafc425beebebd9314008eef105e828a0a51f73fd42f2d0c00e12e56f817e2b9078baeb55bd54a6c6a55e8ebd00d2e27ccc |
26 |
|
27 |
diff --git a/www-plugins/freshplayerplugin/files/0.3.5-cmake.patch b/www-plugins/freshplayerplugin/files/0.3.5-cmake.patch |
28 |
new file mode 100644 |
29 |
index 00000000..f925dfa |
30 |
--- /dev/null |
31 |
+++ b/www-plugins/freshplayerplugin/files/0.3.5-cmake.patch |
32 |
@@ -0,0 +1,70 @@ |
33 |
+diff -uarN a/CMakeLists.txt b/CMakeLists.txt |
34 |
+--- a/CMakeLists.txt 2015-04-25 11:17:24.000000000 -0400 |
35 |
++++ b/CMakeLists.txt 2015-04-26 20:14:43.152014529 -0400 |
36 |
+@@ -61,35 +61,36 @@ |
37 |
+ # optional dependencies |
38 |
+ message(STATUS "checking for optional dependencies") |
39 |
+ |
40 |
+-pkg_check_modules(PULSEAUDIO QUIET libpulse) |
41 |
+-pkg_check_modules(JACK QUIET jack) |
42 |
+-pkg_check_modules(SOXR QUIET soxr) |
43 |
+ set(WITH_PULSEAUDIO TRUE CACHE STRING "enable PulseAudio support") |
44 |
+ set(WITH_JACK TRUE CACHE STRING "enable JACK Audio Connection Kit") |
45 |
+ |
46 |
+-if (PULSEAUDIO_FOUND AND WITH_PULSEAUDIO) |
47 |
++if (WITH_PULSEAUDIO) |
48 |
++ pkg_check_modules(PULSEAUDIO libpulse) |
49 |
++ if (NOT PULSEAUDIO_FOUND) |
50 |
++ message(FATAL_ERROR "PulseAudio requested but not found.") |
51 |
++ endif() |
52 |
+ add_definitions(-DHAVE_PULSEAUDIO=1) |
53 |
+- message(STATUS " found libpulse, version ${PULSEAUDIO_VERSION} (optional)") |
54 |
++ message(STATUS " found libpulse, version ${PULSEAUDIO_VERSION}") |
55 |
+ list(APPEND REQ_LIBRARY_DIRS ${PULSEAUDIO_LIBRARY_DIRS}) |
56 |
+ list(APPEND REQ_INCLUDE_DIRS ${PULSEAUDIO_INCLUDE_DIRS}) |
57 |
+ list(APPEND REQ_LIBRARIES ${PULSEAUDIO_LIBRARIES}) |
58 |
+-else() |
59 |
+- message(STATUS " no libpulse found (optional)") |
60 |
+ endif() |
61 |
+ |
62 |
+-if (JACK_FOUND AND WITH_JACK) |
63 |
+- message(STATUS " found jack, version ${JACK_VERSION} (optional)") |
64 |
+- if (SOXR_FOUND) |
65 |
+- message(STATUS " found soxr, version ${SOXR_VERSION}") |
66 |
+- add_definitions(-DHAVE_JACK=1) |
67 |
+- list(APPEND REQ_LIBRARY_DIRS "${JACK_LIBRARY_DIRS}" "${SOXR_LIBRARY_DIRS}") |
68 |
+- list(APPEND REQ_INCLUDE_DIRS "${JACK_INCLUDE_DIRS}" "${SOXR_INCLUDE_DIRS}") |
69 |
+- list(APPEND REQ_LIBRARIES "${JACK_LIBRARIES}" "${SOXR_LIBRARIES}") |
70 |
+- else() |
71 |
+- message(STATUS " no soxr found, JACK output disabled") |
72 |
++if (WITH_JACK) |
73 |
++ pkg_check_modules(JACK QUIET jack) |
74 |
++ if (NOT JACK_FOUND) |
75 |
++ message(FATAL_ERROR "JACK support requested but not found.") |
76 |
++ endif() |
77 |
++ pkg_check_modules(SOXR QUIET soxr) |
78 |
++ if (NOT SOXR_FOUND) |
79 |
++ message(FATAL_ERROR "SOXR libray not found but needed for JACK support.") |
80 |
+ endif() |
81 |
+-else() |
82 |
+- message(STATUS " no jack found (optional)") |
83 |
++ message(STATUS " found jack, version ${JACK_VERSION}") |
84 |
++ message(STATUS " found soxr, version ${SOXR_VERSION}") |
85 |
++ add_definitions(-DHAVE_JACK=1) |
86 |
++ list(APPEND REQ_LIBRARY_DIRS "${JACK_LIBRARY_DIRS}" "${SOXR_LIBRARY_DIRS}") |
87 |
++ list(APPEND REQ_INCLUDE_DIRS "${JACK_INCLUDE_DIRS}" "${SOXR_INCLUDE_DIRS}") |
88 |
++ list(APPEND REQ_LIBRARIES "${JACK_LIBRARIES}" "${SOXR_LIBRARIES}") |
89 |
+ endif() |
90 |
+ |
91 |
+ list(APPEND REQ_LIBRARIES img-resources) |
92 |
+--- a/src/CMakeLists.txt 2015-12-20 08:38:33.000000000 -0500 |
93 |
++++ b/src/CMakeLists.txt 2015-12-26 20:45:07.000000000 -0500 |
94 |
+@@ -5,7 +5,7 @@ |
95 |
+ |
96 |
+ set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}) |
97 |
+ |
98 |
+-set(MOZPLUGIN_INSTALL_DIR "lib${LIB_SUFFIX}/mozilla/plugins/" CACHE STRING "plugin install directory") |
99 |
++set(MOZPLUGIN_INSTALL_DIR "lib${LIB_SUFFIX}/nsbrowser/plugins/" CACHE STRING "plugin install directory") |
100 |
+ |
101 |
+ add_subdirectory(uri_parser) |
102 |
+ add_subdirectory(config_parser) |
103 |
|
104 |
diff --git a/www-plugins/freshplayerplugin/freshplayerplugin-0.3.5.ebuild b/www-plugins/freshplayerplugin/freshplayerplugin-0.3.5.ebuild |
105 |
new file mode 100644 |
106 |
index 00000000..c6b4a10 |
107 |
--- /dev/null |
108 |
+++ b/www-plugins/freshplayerplugin/freshplayerplugin-0.3.5.ebuild |
109 |
@@ -0,0 +1,85 @@ |
110 |
+# Copyright 1999-2016 Gentoo Foundation |
111 |
+# Distributed under the terms of the GNU General Public License v2 |
112 |
+# $Id$ |
113 |
+ |
114 |
+EAPI=6 |
115 |
+ |
116 |
+CMAKE_MIN_VERSION="2.8.8" |
117 |
+ |
118 |
+inherit cmake-utils |
119 |
+ |
120 |
+LICENSE="MIT" |
121 |
+HOMEPAGE="https://github.com/i-rinat/freshplayerplugin" |
122 |
+DESCRIPTION="PPAPI-host NPAPI-plugin adapter for flashplayer in npapi based browsers" |
123 |
+SRC_URI="https://github.com/i-rinat/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
124 |
+SLOT=0 |
125 |
+IUSE="gles2 gtk3 jack libav libressl pulseaudio v4l vaapi vdpau" |
126 |
+ |
127 |
+KEYWORDS="~amd64" |
128 |
+ |
129 |
+HWDEC_DEPEND=" |
130 |
+ libav? ( media-video/libav:0=[vaapi?,vdpau?] ) |
131 |
+ !libav? ( media-video/ffmpeg:0=[vaapi?,vdpau?] ) |
132 |
+ x11-libs/libva |
133 |
+ x11-libs/libvdpau |
134 |
+" |
135 |
+ |
136 |
+COMMON_DEPEND=" |
137 |
+ dev-libs/glib:2= |
138 |
+ dev-libs/icu:0= |
139 |
+ dev-libs/libevent:=[threads] |
140 |
+ media-libs/alsa-lib:= |
141 |
+ media-libs/freetype:2= |
142 |
+ media-libs/mesa:=[egl,gles2?] |
143 |
+ x11-libs/cairo:=[X] |
144 |
+ x11-libs/libXcursor:= |
145 |
+ x11-libs/libXrandr:= |
146 |
+ x11-libs/libXrender:= |
147 |
+ x11-libs/libdrm:= |
148 |
+ x11-libs/pango:=[X] |
149 |
+ jack? ( |
150 |
+ media-sound/jack-audio-connection-kit |
151 |
+ media-libs/soxr |
152 |
+ ) |
153 |
+ pulseaudio? ( media-sound/pulseaudio ) |
154 |
+ !gtk3? ( x11-libs/gtk+:2= ) |
155 |
+ gtk3? ( x11-libs/gtk+:3= ) |
156 |
+ libressl? ( dev-libs/libressl:0= ) |
157 |
+ !libressl? ( dev-libs/openssl:0= ) |
158 |
+ v4l? ( media-libs/libv4l:0= ) |
159 |
+ vaapi? ( ${HWDEC_DEPEND} ) |
160 |
+ vdpau? ( ${HWDEC_DEPEND} ) |
161 |
+" |
162 |
+ |
163 |
+DEPEND="${COMMON_DEPEND} |
164 |
+ dev-util/ragel |
165 |
+ virtual/pkgconfig |
166 |
+ " |
167 |
+RDEPEND="${COMMON_DEPEND} |
168 |
+ || ( |
169 |
+ www-plugins/chrome-binary-plugins[flash] |
170 |
+ www-client/google-chrome |
171 |
+ www-client/google-chrome-beta |
172 |
+ www-client/google-chrome-unstable |
173 |
+ ) |
174 |
+ " |
175 |
+ |
176 |
+PATCHES=( "${FILESDIR}/0.3.5-cmake.patch" "${FILESDIR}/0.3.4-git-revision.patch" ) |
177 |
+DOCS=( ChangeLog data/freshwrapper.conf.example README.md ) |
178 |
+ |
179 |
+src_configure() { |
180 |
+ mycmakeargs=( |
181 |
+ -DWITH_JACK=$(usex jack) |
182 |
+ -DWITH_PULSEAUDIO=$(usex pulseaudio) |
183 |
+ -DWITH_GTK=$(usex gtk3 3 2) |
184 |
+ -DWITH_GLES2=$(usex gles2) |
185 |
+ -DWITH_LIBV4L2=$(usex v4l) |
186 |
+ -DCMAKE_SKIP_RPATH=1 |
187 |
+ ) |
188 |
+ if use vaapi || use vdpau ; then |
189 |
+ mycmakeargs+=( -DWITH_HWDEC=1 ) |
190 |
+ else |
191 |
+ mycmakeargs+=( -DWITH_HWDEC=0 ) |
192 |
+ fi |
193 |
+ cmake-utils_src_configure |
194 |
+} |