1 |
commit: 274d5486fdfd7ac09e2154008bcc07f059d7d50d |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jan 28 11:53:09 2017 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jan 28 12:01:20 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=274d5486 |
7 |
|
8 |
www-plugins/lightspark: Add a fresh live ebuild, update URLs |
9 |
|
10 |
www-plugins/lightspark/lightspark-9999.ebuild | 104 ++++++++++++++++++++++++++ |
11 |
www-plugins/lightspark/metadata.xml | 2 + |
12 |
2 files changed, 106 insertions(+) |
13 |
|
14 |
diff --git a/www-plugins/lightspark/lightspark-9999.ebuild b/www-plugins/lightspark/lightspark-9999.ebuild |
15 |
new file mode 100644 |
16 |
index 00000000..e2f2d96 |
17 |
--- /dev/null |
18 |
+++ b/www-plugins/lightspark/lightspark-9999.ebuild |
19 |
@@ -0,0 +1,104 @@ |
20 |
+# Copyright 1999-2017 Gentoo Foundation |
21 |
+# Distributed under the terms of the GNU General Public License v2 |
22 |
+# $Id$ |
23 |
+ |
24 |
+EAPI=6 |
25 |
+inherit cmake-utils git-r3 nsplugins toolchain-funcs |
26 |
+ |
27 |
+DESCRIPTION="High performance flash player" |
28 |
+HOMEPAGE="http://lightspark.github.io/" |
29 |
+SRC_URI="" |
30 |
+EGIT_REPO_URI="https://github.com/lightspark/lightspark" |
31 |
+ |
32 |
+LICENSE="LGPL-3" |
33 |
+SLOT="0" |
34 |
+KEYWORDS="" |
35 |
+IUSE="cpu_flags_x86_sse2 curl ffmpeg gles libav nsplugin ppapi profile rtmp" |
36 |
+ |
37 |
+# Note: code-wise llvm-4.0 is fine but due to CMake bug it can't work: |
38 |
+# https://gitlab.kitware.com/cmake/cmake/issues/16606 |
39 |
+RDEPEND="app-arch/xz-utils:0= |
40 |
+ dev-cpp/glibmm:2= |
41 |
+ >=dev-libs/boost-1.42:0= |
42 |
+ dev-libs/glib:2= |
43 |
+ dev-libs/libpcre:3=[cxx] |
44 |
+ media-fonts/liberation-fonts |
45 |
+ media-libs/freetype:2= |
46 |
+ media-libs/libpng:0= |
47 |
+ media-libs/libsdl2:0= |
48 |
+ media-libs/sdl2-mixer:0= |
49 |
+ >=sys-devel/gcc-4.6.0[cxx] |
50 |
+ <sys-devel/llvm-4:0= |
51 |
+ >=sys-devel/llvm-3.4:0= |
52 |
+ sys-libs/zlib:0= |
53 |
+ x11-libs/cairo:0= |
54 |
+ x11-libs/gtk+:2= |
55 |
+ x11-libs/libX11:0= |
56 |
+ x11-libs/pango:0= |
57 |
+ virtual/jpeg:0= |
58 |
+ curl? ( net-misc/curl:0= ) |
59 |
+ ffmpeg? ( |
60 |
+ libav? ( media-video/libav:0= ) |
61 |
+ !libav? ( media-video/ffmpeg:0= ) |
62 |
+ ) |
63 |
+ gles? ( media-libs/mesa:0=[gles2] ) |
64 |
+ !gles? ( |
65 |
+ >=media-libs/glew-1.5.3:0= |
66 |
+ virtual/opengl:0= |
67 |
+ ) |
68 |
+ rtmp? ( media-video/rtmpdump:0= )" |
69 |
+DEPEND="${RDEPEND} |
70 |
+ amd64? ( dev-lang/nasm ) |
71 |
+ x86? ( dev-lang/nasm ) |
72 |
+ virtual/pkgconfig" |
73 |
+ |
74 |
+S=${WORKDIR}/${P/_rc*/} |
75 |
+ |
76 |
+pkg_pretend() { |
77 |
+ if [[ ${MERGE_TYPE} != binary ]]; then |
78 |
+ if tc-is-gcc && [[ $(gcc-major-version) == 4 && $(gcc-minor-version) -lt 6 || $(gcc-major-version) -lt 4 ]] ; then |
79 |
+ eerror "You need at least sys-devel/gcc-4.6.0" |
80 |
+ die "You need at least sys-devel/gcc-4.6.0" |
81 |
+ fi |
82 |
+ fi |
83 |
+} |
84 |
+ |
85 |
+src_configure() { |
86 |
+ local mycmakeargs=( |
87 |
+ -DENABLE_CURL=$(usex curl) |
88 |
+ -DENABLE_GLES2=$(usex gles) |
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_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-utils_src_configure |
104 |
+} |
105 |
+ |
106 |
+src_install() { |
107 |
+ cmake-utils_src_install |
108 |
+ |
109 |
+ use nsplugin && inst_plugin /usr/$(get_libdir)/${PN}/plugins/liblightsparkplugin.so |
110 |
+} |
111 |
+ |
112 |
+pkg_postinst() { |
113 |
+ if use nsplugin && ! has_version www-plugins/gnash; then |
114 |
+ elog "Lightspark now supports gnash fallback for its browser plugin." |
115 |
+ elog "Install www-plugins/gnash to take advantage of it." |
116 |
+ fi |
117 |
+ if use nsplugin && has_version "www-plugins/gnash[nsplugin]"; then |
118 |
+ elog "Having two plugins installed for the same MIME type may confuse" |
119 |
+ elog "Mozilla based browsers. It is recommended to disable the nsplugin" |
120 |
+ elog "USE flag for either gnash or lightspark. For details, see" |
121 |
+ elog "https://bugzilla.mozilla.org/show_bug.cgi?id=581848" |
122 |
+ fi |
123 |
+} |
124 |
|
125 |
diff --git a/www-plugins/lightspark/metadata.xml b/www-plugins/lightspark/metadata.xml |
126 |
index b7fbc14..a613237 100644 |
127 |
--- a/www-plugins/lightspark/metadata.xml |
128 |
+++ b/www-plugins/lightspark/metadata.xml |
129 |
@@ -11,9 +11,11 @@ |
130 |
</maintainer> |
131 |
<use> |
132 |
<flag name="gles">Replace default OpenGL renderer with GLESv2</flag> |
133 |
+ <flag name="ppapi">Install the PPAPI plugin (for Chromium)</flag> |
134 |
<flag name="rtmp">Enable Real Time Messaging Protocol using librtmp</flag> |
135 |
</use> |
136 |
<upstream> |
137 |
+ <remote-id type="github">lightspark/lightspark</remote-id> |
138 |
<remote-id type="launchpad">lightspark</remote-id> |
139 |
<remote-id type="sourceforge">lightspark</remote-id> |
140 |
</upstream> |