Gentoo Archives: gentoo-commits

From: "Chi-Thanh Christopher Nguyen (chithanh)" <chithanh@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in www-plugins/lightspark: lightspark-0.7.2-r1.ebuild ChangeLog
Date: Fri, 04 Oct 2013 23:53:47
Message-Id: 20131004235341.EF5842004E@flycatcher.gentoo.org
1 chithanh 13/10/04 23:53:41
2
3 Modified: ChangeLog
4 Added: lightspark-0.7.2-r1.ebuild
5 Log:
6 Drop obsolete elog message, bug #476478. Add patch from Fedora for llvm-3.3 compatibility, bug #479548.
7
8 (Portage version: 2.2.1/cvs/Linux x86_64, unsigned Manifest commit)
9
10 Revision Changes Path
11 1.53 www-plugins/lightspark/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-plugins/lightspark/ChangeLog?rev=1.53&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-plugins/lightspark/ChangeLog?rev=1.53&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-plugins/lightspark/ChangeLog?r1=1.52&r2=1.53
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/www-plugins/lightspark/ChangeLog,v
20 retrieving revision 1.52
21 retrieving revision 1.53
22 diff -u -r1.52 -r1.53
23 --- ChangeLog 19 Mar 2013 13:45:04 -0000 1.52
24 +++ ChangeLog 4 Oct 2013 23:53:41 -0000 1.53
25 @@ -1,6 +1,13 @@
26 # ChangeLog for www-plugins/lightspark
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/www-plugins/lightspark/ChangeLog,v 1.52 2013/03/19 13:45:04 chithanh Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/www-plugins/lightspark/ChangeLog,v 1.53 2013/10/04 23:53:41 chithanh Exp $
30 +
31 +*lightspark-0.7.2-r1 (04 Oct 2013)
32 +
33 + 04 Oct 2013; Chí-Thanh Christopher Nguyễn <chithanh@g.o>
34 + +files/lightspark-0.7.2-llvm33.patch, +lightspark-0.7.2-r1.ebuild:
35 + Drop obsolete elog message, bug #476478. Add patch from Fedora for llvm-3.3
36 + compatibility, bug #479548.
37
38 *lightspark-0.7.2 (19 Mar 2013)
39
40
41
42
43 1.1 www-plugins/lightspark/lightspark-0.7.2-r1.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-plugins/lightspark/lightspark-0.7.2-r1.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-plugins/lightspark/lightspark-0.7.2-r1.ebuild?rev=1.1&content-type=text/plain
47
48 Index: lightspark-0.7.2-r1.ebuild
49 ===================================================================
50 # Copyright 1999-2013 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $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 $
53
54 EAPI=4
55 inherit cmake-utils nsplugins multilib toolchain-funcs
56
57 DESCRIPTION="High performance flash player"
58 HOMEPAGE="http://lightspark.sourceforge.net/"
59 SRC_URI="http://launchpad.net/${PN}/trunk/${P}/+download/${P}.tar.gz"
60
61 LICENSE="LGPL-3"
62 SLOT="0"
63 KEYWORDS="~amd64 ~x86"
64 IUSE="curl ffmpeg gles nsplugin profile pulseaudio rtmp sdl"
65
66 RDEPEND=">=dev-cpp/libxmlpp-2.33.1:2.6
67 >=dev-libs/boost-1.42
68 dev-libs/libpcre[cxx]
69 media-fonts/liberation-fonts
70 media-libs/libpng
71 media-libs/libsdl
72 >=sys-devel/gcc-4.6.0[cxx]
73 >=sys-devel/llvm-3
74 x11-libs/cairo
75 x11-libs/gtk+:2
76 x11-libs/libX11
77 x11-libs/pango
78 curl? (
79 net-misc/curl
80 )
81 ffmpeg? (
82 virtual/ffmpeg
83 )
84 !gles? (
85 >=media-libs/glew-1.5.3
86 virtual/opengl
87 )
88 gles? (
89 media-libs/mesa[gles2]
90 )
91 pulseaudio? (
92 media-sound/pulseaudio
93 )
94 rtmp? (
95 media-video/rtmpdump
96 )
97 virtual/jpeg"
98 DEPEND="${RDEPEND}
99 amd64? ( dev-lang/nasm )
100 x86? ( dev-lang/nasm )
101 virtual/pkgconfig"
102
103 S=${WORKDIR}/${P/_rc*/}
104
105 PATCHES=(
106 "${FILESDIR}/${P}-llvm33.patch"
107 )
108 pkg_pretend() {
109 if [[ ${MERGE_TYPE} != binary ]]; then
110 if [[ $(gcc-major-version) == 4 && $(gcc-minor-version) -lt 6 || $(gcc-major-version) -lt 4 ]] ; then
111 eerror "You need at least sys-devel/gcc-4.6.0"
112 die "You need at least sys-devel/gcc-4.6.0"
113 fi
114 fi
115 }
116
117 src_configure() {
118 local audiobackends
119 use pulseaudio && audiobackends+="pulse"
120 use sdl && audiobackends+="sdl"
121
122 local mycmakeargs=(
123 $(cmake-utils_use curl ENABLE_CURL)
124 $(cmake-utils_use gles ENABLE_GLES2)
125 $(cmake-utils_use ffmpeg ENABLE_LIBAVCODEC)
126 $(cmake-utils_use nsplugin COMPILE_PLUGIN)
127 $(cmake-utils_use profile ENABLE_MEMORY_USAGE_PROFILING)
128 $(cmake-utils_use profile ENABLE_PROFILING)
129 $(cmake-utils_use rtmp ENABLE_RTMP)
130 -DAUDIO_BACKEND="${audiobackends}"
131 -DPLUGIN_DIRECTORY="${EPREFIX}"/usr/$(get_libdir)/${PN}/plugins
132 )
133
134 cmake-utils_src_configure
135 }
136
137 src_install() {
138 cmake-utils_src_install
139
140 use nsplugin && inst_plugin /usr/$(get_libdir)/${PN}/plugins/liblightsparkplugin.so
141
142 # default to sdl audio if pulseaudio plugin is not built, bug #406197
143 if use sdl && ! use pulseaudio; then
144 sed -i 's/backend = pulseaudio/backend = sdl/' "${ED}/etc/xdg/${PN}.conf" || die
145 fi
146 }
147
148 pkg_postinst() {
149 if use nsplugin && ! has_version www-plugins/gnash; then
150 elog "Lightspark now supports gnash fallback for its browser plugin."
151 elog "Install www-plugins/gnash to take advantage of it."
152 fi
153 }