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