summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChí-Thanh Christopher Nguyễn <chithanh@gentoo.org>2012-06-03 13:31:33 +0000
committerChí-Thanh Christopher Nguyễn <chithanh@gentoo.org>2012-06-03 13:31:33 +0000
commit129c34c42307f4e8875d27c4520cc68a3effc6ac (patch)
treee00cd99e0f71cf99d9f31c56fa282dbb8ffed6e3 /www-plugins/lightspark
parentRestore -r1 and drop -r2 as it caused annoying problems (diff)
downloadhistorical-129c34c42307f4e8875d27c4520cc68a3effc6ac.tar.gz
historical-129c34c42307f4e8875d27c4520cc68a3effc6ac.tar.bz2
historical-129c34c42307f4e8875d27c4520cc68a3effc6ac.zip
Fix building with llvm-3.1, reported by maksbotan.
Package-Manager: portage-2.2.0_alpha108/cvs/Linux x86_64
Diffstat (limited to 'www-plugins/lightspark')
-rw-r--r--www-plugins/lightspark/ChangeLog8
-rw-r--r--www-plugins/lightspark/Manifest7
-rw-r--r--www-plugins/lightspark/files/lightspark-0.5.7-llvm-3.1_0000.patch87
-rw-r--r--www-plugins/lightspark/files/lightspark-0.5.7-llvm-3.1_0001.patch30
-rw-r--r--www-plugins/lightspark/files/lightspark-0.5.7-llvm-3.1_0002.patch33
-rw-r--r--www-plugins/lightspark/lightspark-0.5.7.ebuild8
6 files changed, 169 insertions, 4 deletions
diff --git a/www-plugins/lightspark/ChangeLog b/www-plugins/lightspark/ChangeLog
index 07ad723344de..5a6cbd2a9bf5 100644
--- a/www-plugins/lightspark/ChangeLog
+++ b/www-plugins/lightspark/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for www-plugins/lightspark
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/www-plugins/lightspark/ChangeLog,v 1.42 2012/05/18 01:11:22 chithanh Exp $
+# $Header: /var/cvsroot/gentoo-x86/www-plugins/lightspark/ChangeLog,v 1.43 2012/06/03 13:31:33 chithanh Exp $
+
+ 03 Jun 2012; Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org>
+ +files/lightspark-0.5.7-llvm-3.1_0000.patch,
+ +files/lightspark-0.5.7-llvm-3.1_0001.patch,
+ +files/lightspark-0.5.7-llvm-3.1_0002.patch, lightspark-0.5.7.ebuild:
+ Fix building with llvm-3.1, reported by maksbotan.
*lightspark-0.5.7 (18 May 2012)
diff --git a/www-plugins/lightspark/Manifest b/www-plugins/lightspark/Manifest
index 8594e8195776..7821077b3ec5 100644
--- a/www-plugins/lightspark/Manifest
+++ b/www-plugins/lightspark/Manifest
@@ -1,4 +1,7 @@
+AUX lightspark-0.5.7-llvm-3.1_0000.patch 2547 RMD160 cf0d988cd9ff990b80e493bd73b6b458dcfdcf07 SHA1 fb1c70a04f29566c040a7fb3745918347ceecd98 SHA256 a6d85fdf33d94502131e1627f933649a60c5177ba84d69a687a4c349a9cc3ec1
+AUX lightspark-0.5.7-llvm-3.1_0001.patch 825 RMD160 7aefc6a2402913cfdf797d38fe68aa6c4a247501 SHA1 48251eb1dccfbcc96f3cf818de907815ae445af5 SHA256 3c543fe44ed530cd83087af5b9bf4198f8d7c9b127efabf6057ea7782398ba0c
+AUX lightspark-0.5.7-llvm-3.1_0002.patch 781 RMD160 86e59c7f12c3c74ba5240409b585d014d2f807bb SHA1 01da62b7b75c1584fcc984bbcca704f5c5f491cd SHA256 d13a4e16e760e20c546f62ef44d5466ab90edaefb1f8fb8eb936c0931917b868
DIST lightspark-0.5.7.tar.gz 855252 RMD160 2df254c3ae20862aba06d92a894e14f2176c5089 SHA1 87296ca620939ee8a38bfea9ca1ab2a35e29d283 SHA256 2f8fe72029a8a7ed1f50b308b43668423ce933fe203459e2220ac68611184980
-EBUILD lightspark-0.5.7.ebuild 2387 RMD160 008856f426dfa9cf9281b031776b26990e2d53e8 SHA1 b8090bd7401f45e2f4dbb10ade7b305f32cfa2b5 SHA256 f26bcd8ffe078fa8e36f69be9924d559cca2ee759307f8f0b6a1c28b775aed6c
-MISC ChangeLog 9155 RMD160 391318b3c4cb7a52539445cbfc5554290d287bcc SHA1 a7c95dfc43faa64accaabe1e1e956f6e6145dadc SHA256 4c0fb6067aeb95e940ea8ce561ea34e8e77bf4eeeaa54e4bf7263cd7263173a8
+EBUILD lightspark-0.5.7.ebuild 2520 RMD160 ea360436487a92c446d3c2226519f4c86c7da5c9 SHA1 3bcc1b564c2f2b9d594569b61e8748a141163842 SHA256 9645e88b09476f9728883016fca0e2cdfe3f274db97e48548f175e5dadd6f302
+MISC ChangeLog 9444 RMD160 76bde6eadfc7fcb2ba0a2ff521024fdfeeaf9e52 SHA1 9dec5cde457b7515ede5131304a3a9e1301ea230 SHA256 2a1a2318482c74e5f4c0baa7657ec4532d1aaea9b3e59c18a339af725e089bca
MISC metadata.xml 345 RMD160 d881ee7c91c1b5fb26438e4fb116dab12efda0d3 SHA1 efc86456282cc22cb741ead371a6744e5dd0f367 SHA256 0056b39f2ac72046cc102978cf054e18f76ae6158725e38ddaa3164ab43b091e
diff --git a/www-plugins/lightspark/files/lightspark-0.5.7-llvm-3.1_0000.patch b/www-plugins/lightspark/files/lightspark-0.5.7-llvm-3.1_0000.patch
new file mode 100644
index 000000000000..292ace7f6497
--- /dev/null
+++ b/www-plugins/lightspark/files/lightspark-0.5.7-llvm-3.1_0000.patch
@@ -0,0 +1,87 @@
+From eaed71005f8cfc1a421790ea2def20882e7d25c3 Mon Sep 17 00:00:00 2001
+From: Alessandro Pignotti <a.pignotti@sssup.it>
+Date: Mon, 21 May 2012 13:05:36 +0200
+Subject: [PATCH] Add support for LLVM 3.1
+
+---
+ CMakeLists.txt | 9 ++++++---
+ src/scripting/abc.cpp | 14 +++++++++++++-
+ src/scripting/abc.h | 2 +-
+ 3 files changed, 20 insertions(+), 5 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index be30cb1..6de575b 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -229,9 +229,12 @@ ENDIF(${LLVM_STRING_VERSION} VERSION_EQUAL 2.9)
+ IF(${LLVM_STRING_VERSION} VERSION_EQUAL 2.8)
+ ADD_DEFINITIONS(-DLLVM_28)
+ ENDIF(${LLVM_STRING_VERSION} VERSION_EQUAL 2.8)
+-IF(${LLVM_STRING_VERSION} VERSION_GREATER 2.9)
+- ADD_DEFINITIONS(-DLLVM_3)
+-ENDIF(${LLVM_STRING_VERSION} VERSION_GREATER 2.9)
++IF(${LLVM_STRING_VERSION} VERSION_EQUAL 3.0)
++ ADD_DEFINITIONS(-DLLVM_30)
++ENDIF(${LLVM_STRING_VERSION} VERSION_EQUAL 3.0)
++IF(${LLVM_STRING_VERSION} VERSION_GREATER 3.0)
++ ADD_DEFINITIONS(-DLLVM_31)
++ENDIF(${LLVM_STRING_VERSION} VERSION_GREATER 3.0)
+ INCLUDE(FindZLIB REQUIRED)
+ INCLUDE(FindFreetype REQUIRED)
+ IF(NOT(ENABLE_GLES2))
+diff --git a/src/scripting/abc.cpp b/src/scripting/abc.cpp
+index 59700f6..e1d2834 100644
+--- a/src/scripting/abc.cpp
++++ b/src/scripting/abc.cpp
+@@ -23,7 +23,7 @@
+ #include <llvm/ExecutionEngine/JIT.h>
+ #include <llvm/LLVMContext.h>
+ #include <llvm/Target/TargetData.h>
+-#ifdef LLVM_3
++#ifdef LLVM_30
+ #include <llvm/Support/TargetSelect.h>
+ #else
+ #include <llvm/Target/TargetSelect.h>
+@@ -1442,14 +1442,26 @@ void ABCVm::Run(ABCVm* th)
+
+ if(th->m_sys->useJit)
+ {
++#ifdef LLVM_31
++ llvm::TargetOptions Opts;
++ Opts.JITExceptionHandling = true;
++#else
+ llvm::JITExceptionHandling = true;
++#endif
+ #ifndef NDEBUG
++#ifdef LLVM_31
++ Opts.JITEmitDebugInfo = true;
++#else
+ llvm::JITEmitDebugInfo = true;
+ #endif
++#endif
+ llvm::InitializeNativeTarget();
+ th->module=new llvm::Module(llvm::StringRef("abc jit"),th->llvm_context);
+ llvm::EngineBuilder eb(th->module);
+ eb.setEngineKind(llvm::EngineKind::JIT);
++#ifdef LLVM_31
++ eb.setTargetOptions(Opts);
++#endif
+ eb.setOptLevel(llvm::CodeGenOpt::Default);
+ th->ex=eb.create();
+ assert_and_throw(th->ex);
+diff --git a/src/scripting/abc.h b/src/scripting/abc.h
+index f56a2a7..d3adfeb 100644
+--- a/src/scripting/abc.h
++++ b/src/scripting/abc.h
+@@ -23,7 +23,7 @@
+ #ifdef LLVM_28
+ #define alignof alignOf
+ #endif
+-#ifdef LLVM_3
++#ifdef LLVM_30
+ #define LLVMTYPE llvm::Type*
+ #define LLVMMAKEARRAYREF(T) makeArrayRef(T)
+ #else
+--
+1.7.10
+
diff --git a/www-plugins/lightspark/files/lightspark-0.5.7-llvm-3.1_0001.patch b/www-plugins/lightspark/files/lightspark-0.5.7-llvm-3.1_0001.patch
new file mode 100644
index 000000000000..6b778c089e34
--- /dev/null
+++ b/www-plugins/lightspark/files/lightspark-0.5.7-llvm-3.1_0001.patch
@@ -0,0 +1,30 @@
+From 1d9004f0cc14bff0a4f35590fa94e51c4723174d Mon Sep 17 00:00:00 2001
+From: Alessandro Pignotti <a.pignotti@sssup.it>
+Date: Sun, 27 May 2012 16:15:07 +0200
+Subject: [PATCH] Fix support for LLVM 3.1
+
+---
+ src/scripting/abc.cpp | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/src/scripting/abc.cpp b/src/scripting/abc.cpp
+index 5fdae55..de7e0f3 100644
+--- a/src/scripting/abc.cpp
++++ b/src/scripting/abc.cpp
+@@ -23,10 +23,10 @@
+ #include <llvm/ExecutionEngine/JIT.h>
+ #include <llvm/LLVMContext.h>
+ #include <llvm/Target/TargetData.h>
+-#ifdef LLVM_30
+-#include <llvm/Support/TargetSelect.h>
+-#else
++#ifdef LLVM_28
+ #include <llvm/Target/TargetSelect.h>
++#else
++#include <llvm/Support/TargetSelect.h>
+ #endif
+ #include <llvm/Target/TargetOptions.h>
+ #include <llvm/Analysis/Verifier.h>
+--
+1.7.10
+
diff --git a/www-plugins/lightspark/files/lightspark-0.5.7-llvm-3.1_0002.patch b/www-plugins/lightspark/files/lightspark-0.5.7-llvm-3.1_0002.patch
new file mode 100644
index 000000000000..5fd6348b2b23
--- /dev/null
+++ b/www-plugins/lightspark/files/lightspark-0.5.7-llvm-3.1_0002.patch
@@ -0,0 +1,33 @@
+From 8381e86216b4cf23102cee566104cd38e5fb9208 Mon Sep 17 00:00:00 2001
+From: alex <devkral@web.de>
+Date: Sun, 27 May 2012 17:24:37 +0200
+Subject: [PATCH] fix second compile bug with llvm 3.1
+
+---
+ src/scripting/abc.h | 8 +++-----
+ 1 file changed, 3 insertions(+), 5 deletions(-)
+
+diff --git a/src/scripting/abc.h b/src/scripting/abc.h
+index 8ec3e8c..c8839cf 100644
+--- a/src/scripting/abc.h
++++ b/src/scripting/abc.h
+@@ -22,13 +22,11 @@
+
+ #ifdef LLVM_28
+ #define alignof alignOf
+-#endif
+-#ifdef LLVM_30
+-#define LLVMTYPE llvm::Type*
+-#define LLVMMAKEARRAYREF(T) makeArrayRef(T)
+-#else
+ #define LLVMTYPE const llvm::Type*
+ #define LLVMMAKEARRAYREF(T) T
++#else
++#define LLVMTYPE llvm::Type*
++#define LLVMMAKEARRAYREF(T) makeArrayRef(T)
+ #endif
+
+ #include "compat.h"
+--
+1.7.10
+
diff --git a/www-plugins/lightspark/lightspark-0.5.7.ebuild b/www-plugins/lightspark/lightspark-0.5.7.ebuild
index af72db7daf9d..bffb1ed5aab4 100644
--- a/www-plugins/lightspark/lightspark-0.5.7.ebuild
+++ b/www-plugins/lightspark/lightspark-0.5.7.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/www-plugins/lightspark/lightspark-0.5.7.ebuild,v 1.1 2012/05/18 01:11:22 chithanh Exp $
+# $Header: /var/cvsroot/gentoo-x86/www-plugins/lightspark/lightspark-0.5.7.ebuild,v 1.2 2012/06/03 13:31:33 chithanh Exp $
EAPI=4
inherit cmake-utils nsplugins multilib versionator
@@ -48,6 +48,12 @@ DEPEND="${RDEPEND}
S=${WORKDIR}/${P/_rc*/}
+PATCHES=(
+ "${FILESDIR}"/${P}-llvm-3.1_0000.patch
+ "${FILESDIR}"/${P}-llvm-3.1_0001.patch
+ "${FILESDIR}"/${P}-llvm-3.1_0002.patch
+)
+
src_configure() {
local audiobackends
use pulseaudio && audiobackends+="pulse"