Gentoo Archives: gentoo-commits

From: "Chí-Thanh Christopher Nguyễn" <chithanh@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-plugins/lightspark/
Date: Wed, 29 Aug 2018 00:41:14
Message-Id: 1535503249.bab2d2b7a8dad2b107cb48fe83027e859c2e1caa.chithanh@gentoo
1 commit: bab2d2b7a8dad2b107cb48fe83027e859c2e1caa
2 Author: Chí-Thanh Christopher Nguyễn <chithanh <AT> gentoo <DOT> org>
3 AuthorDate: Wed Aug 29 00:40:49 2018 +0000
4 Commit: Chí-Thanh Christopher Nguyễn <chithanh <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 29 00:40:49 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bab2d2b7
7
8 www-plugins/lightspark: version bump to 0.8.1
9
10 Also prevent building against incompatible ffmpeg/libav versions
11
12 Bug: https://bugs.gentoo.org/654332
13 Closes: https://bugs.gentoo.org/657788
14 Package-Manager: Portage-2.3.40, Repoman-2.3.9
15
16 www-plugins/lightspark/Manifest | 1 +
17 www-plugins/lightspark/lightspark-0.8.1.ebuild | 97 ++++++++++++++++++++++++++
18 2 files changed, 98 insertions(+)
19
20 diff --git a/www-plugins/lightspark/Manifest b/www-plugins/lightspark/Manifest
21 index 579cbb8a401..67f0d0f0528 100644
22 --- a/www-plugins/lightspark/Manifest
23 +++ b/www-plugins/lightspark/Manifest
24 @@ -1 +1,2 @@
25 +DIST lightspark-0.8.1.tar.gz 1899466 BLAKE2B d057deccc8ee03f16bfd384c9aee94ee70b7f6674bb0d46c2965f27868a2177c2985f791801975aab1608b4e59d9d40a51e327ec4b00e60eb6714f610b4c319f SHA512 ee9f02e4aa160d8e68cab743eddce5f4f5de0bb78f5daaaf69890b442701dc42094a59433cef136f6dc85e6fbce989bc8ff7ce8ad1ed1929c8501b13e24f2646
26 DIST lightspark-f6ed8284810ad91c277ed5d0835b215e7329450e.tar.gz 1880249 BLAKE2B 031dc48f40956fcfb5a8b0fd825da8a2a0dba6daa4646296a385d5f90f13027d44cbb09562f6bf57b8d5d415a278fa06974624aee42e14b75892c36798dceda0 SHA512 a75ebf5e666daec0f244285bfd1029feb6fcfa2aeba800f175bb07bc148d39e76435d77868c964b2e149019b763498990bf0db25ba632cf21b91ad0958412332
27
28 diff --git a/www-plugins/lightspark/lightspark-0.8.1.ebuild b/www-plugins/lightspark/lightspark-0.8.1.ebuild
29 new file mode 100644
30 index 00000000000..6106645e322
31 --- /dev/null
32 +++ b/www-plugins/lightspark/lightspark-0.8.1.ebuild
33 @@ -0,0 +1,97 @@
34 +# Copyright 1999-2018 Gentoo Foundation
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=6
38 +inherit cmake-utils gnome2-utils nsplugins toolchain-funcs xdg-utils
39 +
40 +EGIT_COMMIT="f6ed8284810ad91c277ed5d0835b215e7329450e"
41 +DESCRIPTION="High performance flash player"
42 +HOMEPAGE="http://lightspark.github.io/"
43 +SRC_URI="https://github.com/lightspark/lightspark/archive/${PV}.tar.gz -> ${P}.tar.gz"
44 +
45 +LICENSE="LGPL-3"
46 +SLOT="0"
47 +KEYWORDS="~amd64 ~x86"
48 +IUSE="cpu_flags_x86_sse2 curl ffmpeg gles libav nsplugin ppapi profile rtmp"
49 +
50 +RDEPEND="app-arch/xz-utils:0=
51 + dev-cpp/glibmm:2=
52 + >=dev-libs/boost-1.42:0=
53 + dev-libs/glib:2=
54 + dev-libs/libpcre:3=[cxx]
55 + media-fonts/liberation-fonts
56 + media-libs/freetype:2=
57 + media-libs/libpng:0=
58 + media-libs/libsdl2:0=
59 + media-libs/sdl2-mixer:0=
60 + >=sys-devel/llvm-3.4:=
61 + sys-libs/zlib:0=
62 + x11-libs/cairo:0=
63 + x11-libs/libX11:0=
64 + x11-libs/pango:0=
65 + virtual/jpeg:0=
66 + curl? ( net-misc/curl:0= )
67 + ffmpeg? (
68 + libav? ( <media-video/libav-13_pre:0= )
69 + !libav? ( <media-video/ffmpeg-4:0= )
70 + )
71 + gles? ( media-libs/mesa:0=[gles2] )
72 + !gles? (
73 + >=media-libs/glew-1.5.3:0=
74 + virtual/opengl:0=
75 + )
76 + rtmp? ( media-video/rtmpdump:0= )"
77 +DEPEND="${RDEPEND}
78 + amd64? ( dev-lang/nasm )
79 + x86? ( dev-lang/nasm )
80 + virtual/pkgconfig"
81 +
82 +S=${WORKDIR}/${P/_rc*/}
83 +
84 +src_configure() {
85 + local mycmakeargs=(
86 + -DENABLE_CURL=$(usex curl)
87 + -DENABLE_GLES2=$(usex gles)
88 + -DENABLE_LIBAVCODEC=$(usex ffmpeg)
89 + -DENABLE_RTMP=$(usex rtmp)
90 +
91 + -DENABLE_MEMORY_USAGE_PROFILING=$(usex profile)
92 + -DENABLE_PROFILING=$(usex profile)
93 + -DENABLE_SSE2=$(usex cpu_flags_x86_sse2)
94 +
95 + -DCOMPILE_NPAPI_PLUGIN=$(usex nsplugin)
96 + -DPLUGIN_DIRECTORY="${EPREFIX}"/usr/$(get_libdir)/${PN}/plugins
97 + # TODO: install /etc/chromium file? block adobe-flash?
98 + -DCOMPILE_PPAPI_PLUGIN=$(usex ppapi)
99 + -DPPAPI_PLUGIN_DIRECTORY="${EPREFIX}"/usr/$(get_libdir)/chromium-browser/${PN}
100 + )
101 +
102 + cmake-utils_src_configure
103 +}
104 +
105 +src_install() {
106 + cmake-utils_src_install
107 +
108 + use nsplugin && inst_plugin /usr/$(get_libdir)/${PN}/plugins/liblightsparkplugin.so
109 +}
110 +
111 +pkg_postinst() {
112 + gnome2_icon_cache_update
113 + xdg_desktop_database_update
114 +
115 + if use nsplugin && ! has_version www-plugins/gnash; then
116 + elog "Lightspark now supports gnash fallback for its browser plugin."
117 + elog "Install www-plugins/gnash to take advantage of it."
118 + fi
119 + if use nsplugin && has_version "www-plugins/gnash[nsplugin]"; then
120 + elog "Having two plugins installed for the same MIME type may confuse"
121 + elog "Mozilla based browsers. It is recommended to disable the nsplugin"
122 + elog "USE flag for either gnash or lightspark. For details, see"
123 + elog "https://bugzilla.mozilla.org/show_bug.cgi?id=581848"
124 + fi
125 +}
126 +
127 +pkg_postrm() {
128 + gnome2_icon_cache_update
129 + xdg_desktop_database_update
130 +}