From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- www-plugins/lightspark/Manifest | 9 ++ .../files/lightspark-0.8.0-ffmpeg-free.patch | 31 +++++++ .../lightspark/lightspark-0.7.2_p20160107.ebuild | 102 ++++++++++++++++++++ www-plugins/lightspark/lightspark-0.8.0.ebuild | 103 +++++++++++++++++++++ www-plugins/lightspark/lightspark-9999.ebuild | 102 ++++++++++++++++++++ www-plugins/lightspark/metadata.xml | 22 +++++ 6 files changed, 369 insertions(+) create mode 100644 www-plugins/lightspark/Manifest create mode 100644 www-plugins/lightspark/files/lightspark-0.8.0-ffmpeg-free.patch create mode 100644 www-plugins/lightspark/lightspark-0.7.2_p20160107.ebuild create mode 100644 www-plugins/lightspark/lightspark-0.8.0.ebuild create mode 100644 www-plugins/lightspark/lightspark-9999.ebuild create mode 100644 www-plugins/lightspark/metadata.xml (limited to 'www-plugins/lightspark') diff --git a/www-plugins/lightspark/Manifest b/www-plugins/lightspark/Manifest new file mode 100644 index 000000000000..84642b9de9fe --- /dev/null +++ b/www-plugins/lightspark/Manifest @@ -0,0 +1,9 @@ +AUX lightspark-0.8.0-ffmpeg-free.patch 1213 SHA256 2dec331dc0fbbe5a44423a29df7e6c5c2f1cdc36aa59467b03cce1f69e62a27a SHA512 28946cc7dc4d0d440e977c403fef10f2766941fe53a4b92a87411c100664d4f1618b510af7a5f14ffcc5a6a9f2ee00df882be04ff4e11fc009f99840a97cfe1f WHIRLPOOL e1a896bec9e139f5563388677b6c40af1ba94beb81548dae53b39c998faa93aa147566af3feb87f8f5f4a37570646c620c64f29f91f53a92cc35b093aaba8279 +DIST lightspark-0.7.2_p20160107.tar.gz 1803064 SHA256 83b58db86e466e9a3acc33c7c1bbff284edb3f7fef377a3397ac26ac06cac22f SHA512 937352c8d428579a9ac89a45724db2beb624eba874da59d684e07d9d306305d85937f4b2e692c56750a1b5e6ca485e05d9997409d3bc934fab209124cd471601 WHIRLPOOL 268f2a95758def3fb722daa6580e6c4ff5577eacdc27e82005ce7e0b51d55ae78fbc6ae5c1d839b4b21848a0d2a61b0b023f4741487fc042450a7a20bfee01bb +DIST lightspark-0.8.0.tar.gz 1830071 SHA256 b0612a93bb16c0ab9ea5d516ee312607e14703d26ca917d037bb33e235ed4b25 SHA512 333de501caf5f5ed9c8581cfda5bf1e6e04170c90f1c2f6150c9c2343f9de20e140a041d066f693e406d24fa24e7a5c3464675a583f4a5c104f5214ebee072b9 WHIRLPOOL 4ba1e18a9196823603146ce178914c5778a6eac045b994afbbe388cb945612bb5bab8072a77bfe0b647aeff614f3f4d8b34161c118fe9102745f2ba26c102e00 +EBUILD lightspark-0.7.2_p20160107.ebuild 3010 SHA256 c22c2e1afb31769b638794c509e940ab7b8d9e06260e55061ac6693bcf7c9006 SHA512 aee936f6d6c12f2f965c10e9c0b90a3ddaeba3e89e4a5a47e8a61d4758f16c237513bf63471e831959d2808946fd31944b22641f0d8ed9676b33e956da8a437c WHIRLPOOL 7b5d709f25d76a3282a63fa4a8e6a37c455715c2385bfcd2cacdbab5f328ea0288ec688d9f04656559e790ea83ec3ca72ff687fe0651f0c2e1f919d9d354d0db +EBUILD lightspark-0.8.0.ebuild 2983 SHA256 7d7e50de890cd9097440988a94e248b92a413758a2d821d1b628545ec33b6b16 SHA512 a7ad8491eac0ad5299715b43dd5780dd52c18f5266889ca3767bf58b22dda3b0c672e23922406e8482343de4c052c0964171251849861645053a2b1dd481d025 WHIRLPOOL e43eac3b53e645649cd5ec39444af9a2147885c723b3bb8039cf3aab2968b8ba0d7826cf95940fff9a4a57802d03a0e5cfbd513ea5a0ed5e92d1239b1770825f +EBUILD lightspark-9999.ebuild 2923 SHA256 3cf93de3f866fa05746384945152902e62a5743dc0f3e1b60b37ef81de4853fe SHA512 d08f1553943d7850df97e941f694bbc5ef92b05ed12a1572834a51f35a5f5c4a8b5f279ac6c0977f8f1cf8220e13512e359be4af45a898f006f8cd1496bdd6e3 WHIRLPOOL bf452859aed234869858808d0d18434df14b734752b858a9d6e536053742e531e3978d6b7d6183827647c9a383024d72974ef4060f3ca7da260b30df7a600baf +MISC ChangeLog 3627 SHA256 0fa257651b54aac6cc2845343aa2ca7127b29e79aef22e45effd1ee660021b8a SHA512 521117a4193610758ef14a3c630b62fd0cd9eab1a824f4e6776a2c96147c4fb00090c71d59fe4d05f7f363827fdae7ba4dd01dd4fc043b35a8c8fcf5149955c6 WHIRLPOOL 8ece284e477c8da71dac4018a31b969db0ee7e7f0754b51e7963e977bf5b275a2a24cf1ce69a0ecb12d51666f3c8d6f032772db8f4f68491df004b3c648c19ad +MISC ChangeLog-2015 12738 SHA256 459494382d917f9346a4855a9ff2350b21c38290678ab4c278f814a8d9f15cd0 SHA512 ab22828762b584ec213426f2f19a13b194bd14c0d4877c7c4529a2fc733292f653194c32164638dcc27fee1738ae26ddf03001b044f5d8036821da631189d78f WHIRLPOOL 34e9828d45c07cbe10b0a87a3f18ff247c5c5792131556352549d9c226ed3e65f5bd9f7e93bcfdd62783f5659b647684b5e92e2ccbf71e8f7c2f575a190b66c7 +MISC metadata.xml 799 SHA256 664d792acfc214ea410b3de1cc8e2afa812b198df5d666a672d9a856800245e7 SHA512 baa701313b4066fe50b7f34551800c73e2f90bd704581d9c39166fcb339a571a414fee07bdf9c2347137f031c63a44133b2e373821a88435a5d64f763bf6cb59 WHIRLPOOL e4158858bf6adec89c1043d44400cf220aa185d39265a0e805b457f663b729d521da63aa65b8861aad9c669cfb5d3fd971c3dfc1acf125fc5e3597a136bf82d9 diff --git a/www-plugins/lightspark/files/lightspark-0.8.0-ffmpeg-free.patch b/www-plugins/lightspark/files/lightspark-0.8.0-ffmpeg-free.patch new file mode 100644 index 000000000000..76566e6be792 --- /dev/null +++ b/www-plugins/lightspark/files/lightspark-0.8.0-ffmpeg-free.patch @@ -0,0 +1,31 @@ +From 22a85a13a5c3ded942ef59522ad399eb5d9a58d9 Mon Sep 17 00:00:00 2001 +From: Mikhail Vorobyov +Date: Tue, 18 Jul 2017 23:46:37 +0300 +Subject: [PATCH] Add NullVideoDecoder::switchCodec + +Add VideoDecoder::switchCodec implementation to NullVideoDecoder to fix +ffmpeg-free build. +--- + src/backends/decoder.h | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/src/backends/decoder.h b/src/backends/decoder.h +index 069543d0..f53288bd 100644 +--- a/src/backends/decoder.h ++++ b/src/backends/decoder.h +@@ -140,6 +140,7 @@ class NullVideoDecoder: public VideoDecoder + public: + NullVideoDecoder() {status=VALID;} + ~NullVideoDecoder() { while(fenceCount); } ++ void switchCodec(LS_VIDEO_CODEC codecId, uint8_t* initdata, uint32_t datalen, double frameRateHint){}; + bool decodeData(uint8_t* data, uint32_t datalen, uint32_t time){return false;} + bool discardFrame(){return false;} + void skipUntil(uint32_t time){} +@@ -305,6 +306,7 @@ class NullAudioDecoder: public AudioDecoder + sampleRate=44100; + channelCount=2; + } ++ void switchCodec(LS_AUDIO_CODEC codecId, uint8_t* initdata, uint32_t datalen){}; + uint32_t decodeData(uint8_t* data, int32_t datalen, uint32_t time){return 0;} + }; + diff --git a/www-plugins/lightspark/lightspark-0.7.2_p20160107.ebuild b/www-plugins/lightspark/lightspark-0.7.2_p20160107.ebuild new file mode 100644 index 000000000000..9e297057383e --- /dev/null +++ b/www-plugins/lightspark/lightspark-0.7.2_p20160107.ebuild @@ -0,0 +1,102 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit cmake-utils nsplugins vcs-snapshot toolchain-funcs + +DESCRIPTION="High performance flash player" +HOMEPAGE="http://lightspark.github.io/" +SRC_URI="https://github.com/lightspark/lightspark/archive/308241eb55c5379765033e60f28dfdd956c7abcd.tar.gz -> ${P}.tar.gz" + +LICENSE="LGPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="cpu_flags_x86_sse2 curl ffmpeg gles libav nsplugin ppapi profile rtmp" + +# Note: code-wise llvm-4.0 is fine but due to CMake bug it can't work: +# https://gitlab.kitware.com/cmake/cmake/issues/16606 +RDEPEND="app-arch/xz-utils:0= + dev-cpp/glibmm:2= + >=dev-libs/boost-1.42:0= + dev-libs/glib:2= + dev-libs/libpcre:3=[cxx] + media-fonts/liberation-fonts + media-libs/freetype:2= + media-libs/libpng:0= + media-libs/libsdl2:0= + media-libs/sdl2-mixer:0= + >=sys-devel/gcc-4.6.0:*[cxx] + =sys-devel/llvm-3.4:0= + sys-libs/zlib:0= + x11-libs/cairo:0= + x11-libs/gtk+:2= + x11-libs/libX11:0= + x11-libs/pango:0= + virtual/jpeg:0= + curl? ( net-misc/curl:0= ) + ffmpeg? ( + libav? ( media-video/libav:0= ) + !libav? ( media-video/ffmpeg:0= ) + ) + gles? ( media-libs/mesa:0=[gles2] ) + !gles? ( + >=media-libs/glew-1.5.3:0= + virtual/opengl:0= + ) + rtmp? ( media-video/rtmpdump:0= )" +DEPEND="${RDEPEND} + amd64? ( dev-lang/nasm ) + x86? ( dev-lang/nasm ) + virtual/pkgconfig" + +S=${WORKDIR}/${P/_rc*/} + +pkg_pretend() { + if [[ ${MERGE_TYPE} != binary ]]; then + if tc-is-gcc && [[ $(gcc-major-version) == 4 && $(gcc-minor-version) -lt 6 || $(gcc-major-version) -lt 4 ]] ; then + eerror "You need at least sys-devel/gcc-4.6.0" + die "You need at least sys-devel/gcc-4.6.0" + fi + fi +} + +src_configure() { + local mycmakeargs=( + -DENABLE_CURL=$(usex curl) + -DENABLE_GLES2=$(usex gles) + -DENABLE_LIBAVCODEC=$(usex ffmpeg) + -DENABLE_RTMP=$(usex rtmp) + + -DENABLE_MEMORY_USAGE_PROFILING=$(usex profile) + -DENABLE_PROFILING=$(usex profile) + -DENABLE_SSE2=$(usex cpu_flags_x86_sse2) + + -DCOMPILE_PLUGIN=$(usex nsplugin) + -DPLUGIN_DIRECTORY="${EPREFIX}"/usr/$(get_libdir)/${PN}/plugins + # TODO: install /etc/chromium file? block adobe-flash? + -DCOMPILE_PPAPI_PLUGIN=$(usex ppapi) + -DPPAPI_PLUGIN_DIRECTORY="${EPREFIX}"/usr/$(get_libdir)/chromium-browser/${PN} + ) + + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + + use nsplugin && inst_plugin /usr/$(get_libdir)/${PN}/plugins/liblightsparkplugin.so +} + +pkg_postinst() { + if use nsplugin && ! has_version www-plugins/gnash; then + elog "Lightspark now supports gnash fallback for its browser plugin." + elog "Install www-plugins/gnash to take advantage of it." + fi + if use nsplugin && has_version "www-plugins/gnash[nsplugin]"; then + elog "Having two plugins installed for the same MIME type may confuse" + elog "Mozilla based browsers. It is recommended to disable the nsplugin" + elog "USE flag for either gnash or lightspark. For details, see" + elog "https://bugzilla.mozilla.org/show_bug.cgi?id=581848" + fi +} diff --git a/www-plugins/lightspark/lightspark-0.8.0.ebuild b/www-plugins/lightspark/lightspark-0.8.0.ebuild new file mode 100644 index 000000000000..1a71cb2ec2d8 --- /dev/null +++ b/www-plugins/lightspark/lightspark-0.8.0.ebuild @@ -0,0 +1,103 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit cmake-utils nsplugins vcs-snapshot toolchain-funcs + +DESCRIPTION="High performance flash player" +HOMEPAGE="http://lightspark.github.io/" +SRC_URI="https://github.com/${PN}/${PN}/archive/${P}.tar.gz" + +LICENSE="LGPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="cpu_flags_x86_sse2 curl ffmpeg gles libav nsplugin ppapi profile rtmp" + +# Note: code-wise llvm-4.0 is fine but due to CMake bug it can't work: +# https://gitlab.kitware.com/cmake/cmake/issues/16606 +RDEPEND="app-arch/xz-utils:0= + dev-cpp/glibmm:2= + >=dev-libs/boost-1.42:0= + dev-libs/glib:2= + dev-libs/libpcre:3=[cxx] + media-fonts/liberation-fonts + media-libs/freetype:2= + media-libs/libpng:0= + media-libs/libsdl2:0= + media-libs/sdl2-mixer:0= + >=sys-devel/gcc-4.6.0:*[cxx] + >=sys-devel/llvm-3.4:0= + sys-libs/zlib:0= + x11-libs/cairo:0= + x11-libs/gtk+:2= + x11-libs/libX11:0= + x11-libs/pango:0= + virtual/jpeg:0= + curl? ( net-misc/curl:0= ) + ffmpeg? ( + libav? ( media-video/libav:0= ) + !libav? ( media-video/ffmpeg:0= ) + ) + gles? ( media-libs/mesa:0=[gles2] ) + !gles? ( + >=media-libs/glew-1.5.3:0= + virtual/opengl:0= + ) + rtmp? ( media-video/rtmpdump:0= )" +DEPEND="${RDEPEND} + amd64? ( dev-lang/nasm ) + x86? ( dev-lang/nasm ) + virtual/pkgconfig" + +S=${WORKDIR}/${P/_rc*/} + +PATCHES=( "${FILESDIR}"/${P}-ffmpeg-free.patch ) + +pkg_pretend() { + if [[ ${MERGE_TYPE} != binary ]]; then + if tc-is-gcc && [[ $(gcc-major-version) == 4 && $(gcc-minor-version) -lt 6 || $(gcc-major-version) -lt 4 ]] ; then + eerror "You need at least sys-devel/gcc-4.6.0" + die "You need at least sys-devel/gcc-4.6.0" + fi + fi +} + +src_configure() { + local mycmakeargs=( + -DENABLE_CURL=$(usex curl) + -DENABLE_GLES2=$(usex gles) + -DENABLE_LIBAVCODEC=$(usex ffmpeg) + -DENABLE_RTMP=$(usex rtmp) + + -DENABLE_MEMORY_USAGE_PROFILING=$(usex profile) + -DENABLE_PROFILING=$(usex profile) + -DENABLE_SSE2=$(usex cpu_flags_x86_sse2) + + -DCOMPILE_NPAPI_PLUGIN=$(usex nsplugin) + -DPLUGIN_DIRECTORY="${EPREFIX}"/usr/$(get_libdir)/${PN}/plugins + # TODO: install /etc/chromium file? block adobe-flash? + -DCOMPILE_PPAPI_PLUGIN=$(usex ppapi) + -DPPAPI_PLUGIN_DIRECTORY="${EPREFIX}"/usr/$(get_libdir)/chromium-browser/${PN} + ) + + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + + use nsplugin && inst_plugin /usr/$(get_libdir)/${PN}/plugins/liblightsparkplugin.so +} + +pkg_postinst() { + if use nsplugin && ! has_version www-plugins/gnash; then + elog "Lightspark now supports gnash fallback for its browser plugin." + elog "Install www-plugins/gnash to take advantage of it." + fi + if use nsplugin && has_version "www-plugins/gnash[nsplugin]"; then + elog "Having two plugins installed for the same MIME type may confuse" + elog "Mozilla based browsers. It is recommended to disable the nsplugin" + elog "USE flag for either gnash or lightspark. For details, see" + elog "https://bugzilla.mozilla.org/show_bug.cgi?id=581848" + fi +} diff --git a/www-plugins/lightspark/lightspark-9999.ebuild b/www-plugins/lightspark/lightspark-9999.ebuild new file mode 100644 index 000000000000..435e878ed31e --- /dev/null +++ b/www-plugins/lightspark/lightspark-9999.ebuild @@ -0,0 +1,102 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit cmake-utils git-r3 nsplugins toolchain-funcs + +DESCRIPTION="High performance flash player" +HOMEPAGE="http://lightspark.github.io/" +SRC_URI="" +EGIT_REPO_URI="https://github.com/lightspark/lightspark" + +LICENSE="LGPL-3" +SLOT="0" +KEYWORDS="" +IUSE="cpu_flags_x86_sse2 curl ffmpeg gles libav nsplugin ppapi profile rtmp" + +# Note: code-wise llvm-4.0 is fine but due to CMake bug it can't work: +# https://gitlab.kitware.com/cmake/cmake/issues/16606 +RDEPEND="app-arch/xz-utils:0= + dev-cpp/glibmm:2= + >=dev-libs/boost-1.42:0= + dev-libs/glib:2= + dev-libs/libpcre:3=[cxx] + media-fonts/liberation-fonts + media-libs/freetype:2= + media-libs/libpng:0= + media-libs/libsdl2:0= + media-libs/sdl2-mixer:0= + >=sys-devel/gcc-4.6.0:*[cxx] + >=sys-devel/llvm-3.4:0= + sys-libs/zlib:0= + x11-libs/cairo:0= + x11-libs/gtk+:2= + x11-libs/libX11:0= + x11-libs/pango:0= + virtual/jpeg:0= + curl? ( net-misc/curl:0= ) + ffmpeg? ( + libav? ( media-video/libav:0= ) + !libav? ( media-video/ffmpeg:0= ) + ) + gles? ( media-libs/mesa:0=[gles2] ) + !gles? ( + >=media-libs/glew-1.5.3:0= + virtual/opengl:0= + ) + rtmp? ( media-video/rtmpdump:0= )" +DEPEND="${RDEPEND} + amd64? ( dev-lang/nasm ) + x86? ( dev-lang/nasm ) + virtual/pkgconfig" + +S=${WORKDIR}/${P/_rc*/} + +pkg_pretend() { + if [[ ${MERGE_TYPE} != binary ]]; then + if tc-is-gcc && [[ $(gcc-major-version) == 4 && $(gcc-minor-version) -lt 6 || $(gcc-major-version) -lt 4 ]] ; then + eerror "You need at least sys-devel/gcc-4.6.0" + die "You need at least sys-devel/gcc-4.6.0" + fi + fi +} + +src_configure() { + local mycmakeargs=( + -DENABLE_CURL=$(usex curl) + -DENABLE_GLES2=$(usex gles) + -DENABLE_LIBAVCODEC=$(usex ffmpeg) + -DENABLE_RTMP=$(usex rtmp) + + -DENABLE_MEMORY_USAGE_PROFILING=$(usex profile) + -DENABLE_PROFILING=$(usex profile) + -DENABLE_SSE2=$(usex cpu_flags_x86_sse2) + + -DCOMPILE_NPAPI_PLUGIN=$(usex nsplugin) + -DPLUGIN_DIRECTORY="${EPREFIX}"/usr/$(get_libdir)/${PN}/plugins + # TODO: install /etc/chromium file? block adobe-flash? + -DCOMPILE_PPAPI_PLUGIN=$(usex ppapi) + -DPPAPI_PLUGIN_DIRECTORY="${EPREFIX}"/usr/$(get_libdir)/chromium-browser/${PN} + ) + + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + + use nsplugin && inst_plugin /usr/$(get_libdir)/${PN}/plugins/liblightsparkplugin.so +} + +pkg_postinst() { + if use nsplugin && ! has_version www-plugins/gnash; then + elog "Lightspark now supports gnash fallback for its browser plugin." + elog "Install www-plugins/gnash to take advantage of it." + fi + if use nsplugin && has_version "www-plugins/gnash[nsplugin]"; then + elog "Having two plugins installed for the same MIME type may confuse" + elog "Mozilla based browsers. It is recommended to disable the nsplugin" + elog "USE flag for either gnash or lightspark. For details, see" + elog "https://bugzilla.mozilla.org/show_bug.cgi?id=581848" + fi +} diff --git a/www-plugins/lightspark/metadata.xml b/www-plugins/lightspark/metadata.xml new file mode 100644 index 000000000000..a6132373a429 --- /dev/null +++ b/www-plugins/lightspark/metadata.xml @@ -0,0 +1,22 @@ + + + + + chithanh@gentoo.org + Chí-Thanh Christopher Nguyễn + + + mgorny@gentoo.org + Michał Górny + + + Replace default OpenGL renderer with GLESv2 + Install the PPAPI plugin (for Chromium) + Enable Real Time Messaging Protocol using librtmp + + + lightspark/lightspark + lightspark + lightspark + + -- cgit v1.2.3