diff options
author | Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org> | 2013-10-04 23:53:41 +0000 |
---|---|---|
committer | Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org> | 2013-10-04 23:53:41 +0000 |
commit | 5e22c41a78df7c3f1a7dd582f89552673231ed91 (patch) | |
tree | 9aaf4b86f03209bd8310189bf21de94339d6795e /www-plugins/lightspark | |
parent | Bump to latest beta. Import of Emil Karlson's ebuild from the x11 overlay. (diff) | |
download | gentoo-2-5e22c41a78df7c3f1a7dd582f89552673231ed91.tar.gz gentoo-2-5e22c41a78df7c3f1a7dd582f89552673231ed91.tar.bz2 gentoo-2-5e22c41a78df7c3f1a7dd582f89552673231ed91.zip |
Drop obsolete elog message, bug #476478. Add patch from Fedora for llvm-3.3 compatibility, bug #479548.
(Portage version: 2.2.1/cvs/Linux x86_64, unsigned Manifest commit)
Diffstat (limited to 'www-plugins/lightspark')
-rw-r--r-- | www-plugins/lightspark/ChangeLog | 9 | ||||
-rw-r--r-- | www-plugins/lightspark/files/lightspark-0.7.2-llvm33.patch | 103 | ||||
-rw-r--r-- | www-plugins/lightspark/lightspark-0.7.2-r1.ebuild | 104 |
3 files changed, 215 insertions, 1 deletions
diff --git a/www-plugins/lightspark/ChangeLog b/www-plugins/lightspark/ChangeLog index 171948638f6c..c803ad10a7eb 100644 --- a/www-plugins/lightspark/ChangeLog +++ b/www-plugins/lightspark/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for www-plugins/lightspark # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/www-plugins/lightspark/ChangeLog,v 1.52 2013/03/19 13:45:04 chithanh Exp $ +# $Header: /var/cvsroot/gentoo-x86/www-plugins/lightspark/ChangeLog,v 1.53 2013/10/04 23:53:41 chithanh Exp $ + +*lightspark-0.7.2-r1 (04 Oct 2013) + + 04 Oct 2013; Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org> + +files/lightspark-0.7.2-llvm33.patch, +lightspark-0.7.2-r1.ebuild: + Drop obsolete elog message, bug #476478. Add patch from Fedora for llvm-3.3 + compatibility, bug #479548. *lightspark-0.7.2 (19 Mar 2013) diff --git a/www-plugins/lightspark/files/lightspark-0.7.2-llvm33.patch b/www-plugins/lightspark/files/lightspark-0.7.2-llvm33.patch new file mode 100644 index 000000000000..2e452331ce38 --- /dev/null +++ b/www-plugins/lightspark/files/lightspark-0.7.2-llvm33.patch @@ -0,0 +1,103 @@ +diff -up lightspark-0.7.2/conf/FindLLVM.cmake.llvm33 lightspark-0.7.2/conf/FindLLVM.cmake +--- lightspark-0.7.2/conf/FindLLVM.cmake.llvm33 2013-03-16 12:19:18.000000000 +0100 ++++ lightspark-0.7.2/conf/FindLLVM.cmake 2013-05-11 11:57:36.455450049 +0200 +@@ -168,11 +168,16 @@ else (LLVM_INCLUDE_DIR) + + set(CMAKE_REQUIRED_INCLUDES ${LLVM_INCLUDE_DIR}) + check_include_file_cxx("llvm/DataLayout.h" HAVE_DATALAYOUT_H) ++ check_include_file_cxx("llvm/IR/DataLayout.h" HAVE_IR_DATALAYOUT_H) + unset(CMAKE_REQUIRED_INCLUDES) + MESSAGE(STATUS "HAVE_DATALAYOUT_H: " ${HAVE_DATALAYOUT_H}) ++ MESSAGE(STATUS "HAVE_IR_DATALAYOUT_H: " ${HAVE_IR_DATALAYOUT_H}) + IF(HAVE_DATALAYOUT_H) + ADD_DEFINITIONS(-DHAVE_DATALAYOUT_H) + ENDIF(HAVE_DATALAYOUT_H) ++ IF(HAVE_IR_DATALAYOUT_H) ++ ADD_DEFINITIONS(-DHAVE_IR_DATALAYOUT_H) ++ ENDIF(HAVE_IR_DATALAYOUT_H) + + exec_program(${LLVM_CONFIG_EXECUTABLE} ARGS --cxxflags OUTPUT_VARIABLE LLVM_COMPILE_FLAGS ) + MESSAGE(STATUS "LLVM CXX flags: " ${LLVM_COMPILE_FLAGS}) +diff -up lightspark-0.7.2/src/scripting/abc.cpp.llvm33 lightspark-0.7.2/src/scripting/abc.cpp +--- lightspark-0.7.2/src/scripting/abc.cpp.llvm33 2013-03-16 12:19:18.000000000 +0100 ++++ lightspark-0.7.2/src/scripting/abc.cpp 2013-05-11 11:57:36.451450048 +0200 +@@ -23,12 +23,19 @@ + + #include "compat.h" + +-#include <llvm/Module.h> + #include <llvm/ExecutionEngine/ExecutionEngine.h> + #include <llvm/ExecutionEngine/JIT.h> + #include <llvm/PassManager.h> +-#include <llvm/LLVMContext.h> +-#ifdef HAVE_DATALAYOUT_H ++#ifdef HAVE_IR_DATALAYOUT_H ++# include <llvm/IR/Module.h> ++# include <llvm/IR/LLVMContext.h> ++#else ++# include <llvm/Module.h> ++# include <llvm/LLVMContext.h> ++#endif ++#ifdef HAVE_IR_DATALAYOUT_H ++# include <llvm/IR/DataLayout.h> ++#elif defined HAVE_DATALAYOUT_H + # include <llvm/DataLayout.h> + #else + # include <llvm/Target/TargetData.h> +@@ -1489,7 +1496,7 @@ void ABCVm::Run(ABCVm* th) + assert_and_throw(th->ex); + + th->FPM=new llvm::FunctionPassManager(th->module); +-#ifdef HAVE_DATALAYOUT_H ++#if defined HAVE_DATALAYOUT_H || defined HAVE_IR_DATALAYOUT_H + th->FPM->add(new llvm::DataLayout(*th->ex->getDataLayout())); + #else + th->FPM->add(new llvm::TargetData(*th->ex->getTargetData())); +diff -up lightspark-0.7.2/src/scripting/abc_codesynt.cpp.llvm33 lightspark-0.7.2/src/scripting/abc_codesynt.cpp +--- lightspark-0.7.2/src/scripting/abc_codesynt.cpp.llvm33 2013-03-16 12:19:18.000000000 +0100 ++++ lightspark-0.7.2/src/scripting/abc_codesynt.cpp 2013-05-11 11:59:23.066458300 +0200 +@@ -25,18 +25,29 @@ + #endif + + #include "compat.h" +-#include <llvm/Module.h> +-#include <llvm/DerivedTypes.h> + #include <llvm/ExecutionEngine/ExecutionEngine.h> + #include <llvm/PassManager.h> +-#include <llvm/Constants.h> +-#ifdef HAVE_IRBUILDER_H ++#ifdef HAVE_IR_DATALAYOUT_H ++# include <llvm/IR/Constants.h> ++# include <llvm/IR/DerivedTypes.h> ++# include <llvm/IR/Module.h> ++# include <llvm/IR/LLVMContext.h> ++#else ++# include <llvm/Constants.h> ++# include <llvm/DerivedTypes.h> ++# include <llvm/Module.h> ++# include <llvm/LLVMContext.h> ++#endif ++#ifdef HAVE_IR_DATALAYOUT_H ++# include <llvm/IR/IRBuilder.h> ++#elif defined HAVE_IRBUILDER_H + # include <llvm/IRBuilder.h> + #else + # include <llvm/Support/IRBuilder.h> + #endif +-#include <llvm/LLVMContext.h> +-#ifdef HAVE_DATALAYOUT_H ++#ifdef HAVE_IR_DATALAYOUT_H ++# include <llvm/IR/DataLayout.h> ++#elif defined HAVE_DATALAYOUT_H + # include <llvm/DataLayout.h> + #else + # include <llvm/Target/TargetData.h> +@@ -279,7 +290,7 @@ void ABCVm::registerFunctions() + llvm::FunctionType* FT=NULL; + + //Create types +-#ifdef HAVE_DATALAYOUT_H ++#if defined HAVE_DATALAYOUT_H || defined HAVE_IR_DATALAYOUT_H + ptr_type=ex->getDataLayout()->getIntPtrType(llvm_context()); + #else + ptr_type=ex->getTargetData()->getIntPtrType(llvm_context()); diff --git a/www-plugins/lightspark/lightspark-0.7.2-r1.ebuild b/www-plugins/lightspark/lightspark-0.7.2-r1.ebuild new file mode 100644 index 000000000000..ad693d192ee7 --- /dev/null +++ b/www-plugins/lightspark/lightspark-0.7.2-r1.ebuild @@ -0,0 +1,104 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-plugins/lightspark/lightspark-0.7.2-r1.ebuild,v 1.1 2013/10/04 23:53:41 chithanh Exp $ + +EAPI=4 +inherit cmake-utils nsplugins multilib toolchain-funcs + +DESCRIPTION="High performance flash player" +HOMEPAGE="http://lightspark.sourceforge.net/" +SRC_URI="http://launchpad.net/${PN}/trunk/${P}/+download/${P}.tar.gz" + +LICENSE="LGPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="curl ffmpeg gles nsplugin profile pulseaudio rtmp sdl" + +RDEPEND=">=dev-cpp/libxmlpp-2.33.1:2.6 + >=dev-libs/boost-1.42 + dev-libs/libpcre[cxx] + media-fonts/liberation-fonts + media-libs/libpng + media-libs/libsdl + >=sys-devel/gcc-4.6.0[cxx] + >=sys-devel/llvm-3 + x11-libs/cairo + x11-libs/gtk+:2 + x11-libs/libX11 + x11-libs/pango + curl? ( + net-misc/curl + ) + ffmpeg? ( + virtual/ffmpeg + ) + !gles? ( + >=media-libs/glew-1.5.3 + virtual/opengl + ) + gles? ( + media-libs/mesa[gles2] + ) + pulseaudio? ( + media-sound/pulseaudio + ) + rtmp? ( + media-video/rtmpdump + ) + virtual/jpeg" +DEPEND="${RDEPEND} + amd64? ( dev-lang/nasm ) + x86? ( dev-lang/nasm ) + virtual/pkgconfig" + +S=${WORKDIR}/${P/_rc*/} + +PATCHES=( + "${FILESDIR}/${P}-llvm33.patch" +) +pkg_pretend() { + if [[ ${MERGE_TYPE} != binary ]]; then + if [[ $(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 audiobackends + use pulseaudio && audiobackends+="pulse" + use sdl && audiobackends+="sdl" + + local mycmakeargs=( + $(cmake-utils_use curl ENABLE_CURL) + $(cmake-utils_use gles ENABLE_GLES2) + $(cmake-utils_use ffmpeg ENABLE_LIBAVCODEC) + $(cmake-utils_use nsplugin COMPILE_PLUGIN) + $(cmake-utils_use profile ENABLE_MEMORY_USAGE_PROFILING) + $(cmake-utils_use profile ENABLE_PROFILING) + $(cmake-utils_use rtmp ENABLE_RTMP) + -DAUDIO_BACKEND="${audiobackends}" + -DPLUGIN_DIRECTORY="${EPREFIX}"/usr/$(get_libdir)/${PN}/plugins + ) + + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + + use nsplugin && inst_plugin /usr/$(get_libdir)/${PN}/plugins/liblightsparkplugin.so + + # default to sdl audio if pulseaudio plugin is not built, bug #406197 + if use sdl && ! use pulseaudio; then + sed -i 's/backend = pulseaudio/backend = sdl/' "${ED}/etc/xdg/${PN}.conf" || die + fi +} + +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 +} |