Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-plugins/lightspark/
Date: Sat, 26 Dec 2020 08:40:34
Message-Id: 1608971821.aa2b516233037d8d53378c7fcf537d870b667c73.mgorny@gentoo
1 commit: aa2b516233037d8d53378c7fcf537d870b667c73
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Dec 26 08:36:48 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Dec 26 08:37:01 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aa2b5162
7
8 www-plugins/lightspark: Bump to 0.8.3
9
10 Closes: https://bugs.gentoo.org/730912
11 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
12
13 www-plugins/lightspark/Manifest | 1 +
14 www-plugins/lightspark/lightspark-0.8.3.ebuild | 95 ++++++++++++++++++++++++++
15 2 files changed, 96 insertions(+)
16
17 diff --git a/www-plugins/lightspark/Manifest b/www-plugins/lightspark/Manifest
18 index 98a9bc51bbe..87aea30efec 100644
19 --- a/www-plugins/lightspark/Manifest
20 +++ b/www-plugins/lightspark/Manifest
21 @@ -1 +1,2 @@
22 DIST lightspark-0.8.2.tar.gz 1996482 BLAKE2B 09ef5f4bc4e78efe8c8ddb305e0c47091ba5b27c9b3bb2dd782079bc05a4836d43a80b47d1c30eba424b5d43a724502235a60c08451df4c8526b15a32274dbb4 SHA512 0ff636ad59523726232d9c2105843dc9ea835526c300bca7833e6d1a0ebf7630c1d10109143baabc16f95c1c954094603c945b705a6c9fb02f369e94fead034e
23 +DIST lightspark-0.8.3.tar.gz 2374990 BLAKE2B 3053ca1ce8a8c0b7e243d28c038b237647e86f72a0d4e171da338384e4228587aba21f141fe0656ebe8243343284afcd311d7ced22cb09f95538e2f618edfefc SHA512 023d1872577445a857c77908bc2ec83ebfa086bc77161dfd22b53fc0c38eb5d94cd5bb5c5a7508dee2039d3b8479c917dcee089fe551a984ec5525a5ae781997
24
25 diff --git a/www-plugins/lightspark/lightspark-0.8.3.ebuild b/www-plugins/lightspark/lightspark-0.8.3.ebuild
26 new file mode 100644
27 index 00000000000..fb319cbbb5a
28 --- /dev/null
29 +++ b/www-plugins/lightspark/lightspark-0.8.3.ebuild
30 @@ -0,0 +1,95 @@
31 +# Copyright 1999-2020 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +inherit cmake toolchain-funcs xdg-utils
36 +
37 +DESCRIPTION="High performance flash player"
38 +HOMEPAGE="https://lightspark.github.io/"
39 +SRC_URI="
40 + https://github.com/lightspark/lightspark/archive/${PV}.tar.gz
41 + -> ${P}.tar.gz"
42 +S=${WORKDIR}/${P/_rc*/}
43 +
44 +LICENSE="LGPL-3"
45 +SLOT="0"
46 +KEYWORDS="~amd64 ~x86"
47 +IUSE="cpu_flags_x86_sse2 curl ffmpeg gles2-only nsplugin ppapi profile rtmp"
48 +
49 +# Note: no LLVM since it's broken upstream
50 +RDEPEND="app-arch/xz-utils:0=
51 + dev-cpp/glibmm:2=
52 + dev-libs/glib:2=
53 + dev-libs/libpcre:3=[cxx]
54 + media-fonts/liberation-fonts
55 + media-libs/freetype:2=
56 + media-libs/libpng:0=
57 + media-libs/libsdl2:0=
58 + media-libs/sdl2-mixer:0=
59 + sys-libs/zlib:0=
60 + x11-libs/cairo:0=
61 + x11-libs/libX11:0=
62 + x11-libs/pango:0=
63 + virtual/jpeg:0=
64 + curl? ( net-misc/curl:0= )
65 + ffmpeg? ( media-video/ffmpeg:0= )
66 + gles2-only? ( media-libs/mesa:0=[gles2] )
67 + !gles2-only? (
68 + >=media-libs/glew-1.5.3:0=
69 + virtual/opengl:0=
70 + )
71 + rtmp? ( media-video/rtmpdump:0= )"
72 +DEPEND="${RDEPEND}"
73 +BDEPEND="
74 + amd64? ( dev-lang/nasm )
75 + x86? ( dev-lang/nasm )
76 + virtual/pkgconfig"
77 +
78 +src_configure() {
79 + local mycmakeargs=(
80 + -DENABLE_CURL=$(usex curl)
81 + -DENABLE_GLES2=$(usex gles2-only)
82 + -DENABLE_LIBAVCODEC=$(usex ffmpeg)
83 + -DENABLE_RTMP=$(usex rtmp)
84 +
85 + -DENABLE_MEMORY_USAGE_PROFILING=$(usex profile)
86 + -DENABLE_PROFILING=$(usex profile)
87 + -DENABLE_SSE2=$(usex cpu_flags_x86_sse2)
88 +
89 + -DCOMPILE_NPAPI_PLUGIN=$(usex nsplugin)
90 + -DPLUGIN_DIRECTORY="${EPREFIX}"/usr/$(get_libdir)/${PN}/plugins
91 + # TODO: install /etc/chromium file? block adobe-flash?
92 + -DCOMPILE_PPAPI_PLUGIN=$(usex ppapi)
93 + -DPPAPI_PLUGIN_DIRECTORY="${EPREFIX}"/usr/$(get_libdir)/chromium-browser/${PN}
94 + )
95 +
96 + cmake_src_configure
97 +}
98 +
99 +src_install() {
100 + cmake_src_install
101 +
102 + if use nsplugin; then
103 + # copied from nsplugins.eclass, that's broken in EAPI 7
104 + dodir /usr/$(get_libdir)/nsbrowser/plugins
105 + dosym ../../lightspark/plugins/liblightsparkplugin.so \
106 + /usr/$(get_libdir)/nsbrowser/plugins/liblightsparkplugin.so
107 + fi
108 +}
109 +
110 +pkg_postinst() {
111 + xdg_icon_cache_update
112 + xdg_desktop_database_update
113 +
114 + if use nsplugin && has_version "www-plugins/gnash[nsplugin]"; then
115 + elog "Having two plugins installed for the same MIME type may confuse"
116 + elog "Mozilla based browsers. It is recommended to disable the nsplugin"
117 + elog "USE flag for either gnash or lightspark. For details, see"
118 + elog "https://bugzilla.mozilla.org/show_bug.cgi?id=581848"
119 + fi
120 +}
121 +
122 +pkg_postrm() {
123 + xdg_icon_cache_update
124 + xdg_desktop_database_update
125 +}