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, 03 Jul 2021 21:46:38
Message-Id: 1625348787.639d6230adb5cf214fa47cc44425d3a5a52a9820.mgorny@gentoo
1 commit: 639d6230adb5cf214fa47cc44425d3a5a52a9820
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jul 3 20:43:51 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Jul 3 21:46:27 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=639d6230
7
8 www-plugins/lightspark: Bump to 0.8.5
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.5.ebuild | 94 ++++++++++++++++++++++++++
14 2 files changed, 95 insertions(+)
15
16 diff --git a/www-plugins/lightspark/Manifest b/www-plugins/lightspark/Manifest
17 index 3dbccb74d3a..15302b94278 100644
18 --- a/www-plugins/lightspark/Manifest
19 +++ b/www-plugins/lightspark/Manifest
20 @@ -1,3 +1,4 @@
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 +DIST lightspark-0.8.5.tar.gz 2490510 BLAKE2B 33966bd811a311ee1cc6c59517f17933c73da926ea40485800076c26eea3ddec29f18fffff12d1fd8c36f43c932ac56128b483a9dc104f006b3a1805992f0aa4 SHA512 79e78925f9132b2c6044e4abf326d768c8d45509f85d9123e3dd172b2769772567223676fa7c8ea4d08bc541e9aa7a2b2d5a1062ff9f3a6274234af8798ee11b
25
26 diff --git a/www-plugins/lightspark/lightspark-0.8.5.ebuild b/www-plugins/lightspark/lightspark-0.8.5.ebuild
27 new file mode 100644
28 index 00000000000..dd32cad0dd7
29 --- /dev/null
30 +++ b/www-plugins/lightspark/lightspark-0.8.5.ebuild
31 @@ -0,0 +1,94 @@
32 +# Copyright 1999-2021 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +inherit cmake toolchain-funcs xdg-utils
37 +
38 +DESCRIPTION="High performance flash player"
39 +HOMEPAGE="https://lightspark.github.io/"
40 +SRC_URI="
41 + https://github.com/lightspark/lightspark/archive/${PV}.tar.gz
42 + -> ${P}.tar.gz"
43 +S=${WORKDIR}/${P/_rc*/}
44 +
45 +LICENSE="LGPL-3"
46 +SLOT="0"
47 +KEYWORDS="~amd64 ~x86"
48 +IUSE="cpu_flags_x86_sse2 curl ffmpeg gles2-only nsplugin ppapi profile rtmp"
49 +
50 +# Note: no LLVM since it's broken upstream
51 +RDEPEND="app-arch/xz-utils:0=
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 +}