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: Mon, 08 Feb 2021 15:08:00
Message-Id: 1612796862.e223ff01606526401001c3e9c49cd0cd75729b77.mgorny@gentoo
1 commit: e223ff01606526401001c3e9c49cd0cd75729b77
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Mon Feb 8 09:06:45 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 8 15:07:42 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e223ff01
7
8 www-plugins/lightspark: Bump to 0.8.4
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 www-plugins/lightspark/Manifest | 1 +
13 www-plugins/lightspark/lightspark-0.8.4.ebuild | 94 ++++++++++++++++++++++++++
14 2 files changed, 95 insertions(+)
15
16 diff --git a/www-plugins/lightspark/Manifest b/www-plugins/lightspark/Manifest
17 index 87aea30efec..3dbccb74d3a 100644
18 --- a/www-plugins/lightspark/Manifest
19 +++ b/www-plugins/lightspark/Manifest
20 @@ -1,2 +1,3 @@
21 DIST lightspark-0.8.2.tar.gz 1996482 BLAKE2B 09ef5f4bc4e78efe8c8ddb305e0c47091ba5b27c9b3bb2dd782079bc05a4836d43a80b47d1c30eba424b5d43a724502235a60c08451df4c8526b15a32274dbb4 SHA512 0ff636ad59523726232d9c2105843dc9ea835526c300bca7833e6d1a0ebf7630c1d10109143baabc16f95c1c954094603c945b705a6c9fb02f369e94fead034e
22 DIST lightspark-0.8.3.tar.gz 2374990 BLAKE2B 3053ca1ce8a8c0b7e243d28c038b237647e86f72a0d4e171da338384e4228587aba21f141fe0656ebe8243343284afcd311d7ced22cb09f95538e2f618edfefc SHA512 023d1872577445a857c77908bc2ec83ebfa086bc77161dfd22b53fc0c38eb5d94cd5bb5c5a7508dee2039d3b8479c917dcee089fe551a984ec5525a5ae781997
23 +DIST lightspark-0.8.4.tar.gz 2412232 BLAKE2B d749713db4dc14a45f57cc75b252e3b70e761d42ab76ab0c23afd4c85bbbd7cc5fea5f3b6e53cbbeccd79214b0e1983d0ab86acc4ed58206b5c4a2371487a40c SHA512 a69a73b6e0c5227bb63e94c15ffaa83df6ed18d400c50fd6f845b455d2b49a1acdc45f1f75c14894492ba5db9e38d1fbbac315359d4b73434832c05873b22091
24
25 diff --git a/www-plugins/lightspark/lightspark-0.8.4.ebuild b/www-plugins/lightspark/lightspark-0.8.4.ebuild
26 new file mode 100644
27 index 00000000000..1093cd42029
28 --- /dev/null
29 +++ b/www-plugins/lightspark/lightspark-0.8.4.ebuild
30 @@ -0,0 +1,94 @@
31 +# Copyright 1999-2021 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-libs/glib:2=
52 + dev-libs/libpcre:3=[cxx]
53 + media-fonts/liberation-fonts
54 + media-libs/freetype:2=
55 + media-libs/libpng:0=
56 + media-libs/libsdl2:0=
57 + media-libs/sdl2-mixer:0=
58 + sys-libs/zlib:0=
59 + x11-libs/cairo:0=
60 + x11-libs/libX11:0=
61 + x11-libs/pango:0=
62 + virtual/jpeg:0=
63 + curl? ( net-misc/curl:0= )
64 + ffmpeg? ( media-video/ffmpeg:0= )
65 + gles2-only? ( media-libs/mesa:0=[gles2] )
66 + !gles2-only? (
67 + >=media-libs/glew-1.5.3:0=
68 + virtual/opengl:0=
69 + )
70 + rtmp? ( media-video/rtmpdump:0= )"
71 +DEPEND="${RDEPEND}"
72 +BDEPEND="
73 + amd64? ( dev-lang/nasm )
74 + x86? ( dev-lang/nasm )
75 + virtual/pkgconfig"
76 +
77 +src_configure() {
78 + local mycmakeargs=(
79 + -DENABLE_CURL=$(usex curl)
80 + -DENABLE_GLES2=$(usex gles2-only)
81 + -DENABLE_LIBAVCODEC=$(usex ffmpeg)
82 + -DENABLE_RTMP=$(usex rtmp)
83 +
84 + -DENABLE_MEMORY_USAGE_PROFILING=$(usex profile)
85 + -DENABLE_PROFILING=$(usex profile)
86 + -DENABLE_SSE2=$(usex cpu_flags_x86_sse2)
87 +
88 + -DCOMPILE_NPAPI_PLUGIN=$(usex nsplugin)
89 + -DPLUGIN_DIRECTORY="${EPREFIX}"/usr/$(get_libdir)/${PN}/plugins
90 + # TODO: install /etc/chromium file? block adobe-flash?
91 + -DCOMPILE_PPAPI_PLUGIN=$(usex ppapi)
92 + -DPPAPI_PLUGIN_DIRECTORY="${EPREFIX}"/usr/$(get_libdir)/chromium-browser/${PN}
93 + )
94 +
95 + cmake_src_configure
96 +}
97 +
98 +src_install() {
99 + cmake_src_install
100 +
101 + if use nsplugin; then
102 + # copied from nsplugins.eclass, that's broken in EAPI 7
103 + dodir /usr/$(get_libdir)/nsbrowser/plugins
104 + dosym ../../lightspark/plugins/liblightsparkplugin.so \
105 + /usr/$(get_libdir)/nsbrowser/plugins/liblightsparkplugin.so
106 + fi
107 +}
108 +
109 +pkg_postinst() {
110 + xdg_icon_cache_update
111 + xdg_desktop_database_update
112 +
113 + if use nsplugin && has_version "www-plugins/gnash[nsplugin]"; then
114 + elog "Having two plugins installed for the same MIME type may confuse"
115 + elog "Mozilla based browsers. It is recommended to disable the nsplugin"
116 + elog "USE flag for either gnash or lightspark. For details, see"
117 + elog "https://bugzilla.mozilla.org/show_bug.cgi?id=581848"
118 + fi
119 +}
120 +
121 +pkg_postrm() {
122 + xdg_icon_cache_update
123 + xdg_desktop_database_update
124 +}