diff options
author | Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org> | 2011-03-21 01:30:13 +0000 |
---|---|---|
committer | Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org> | 2011-03-21 01:30:13 +0000 |
commit | b30880c73047f9a0421450ed0d561403660206b2 (patch) | |
tree | 6c3230f3578c77699d032284ed860d0367ffd864 /www-plugins/gnash | |
parent | Fix documentation install breakage with glibmm-2.27.97 (diff) | |
download | historical-b30880c73047f9a0421450ed0d561403660206b2.tar.gz historical-b30880c73047f9a0421450ed0d561403660206b2.tar.bz2 historical-b30880c73047f9a0421450ed0d561403660206b2.zip |
Version bump, bug #359533. Fixes bug #332755, bug #332757, bug #339610, bug #344069 and bug #356859.
Package-Manager: portage-2.2.0_alpha27/cvs/Linux x86_64
Diffstat (limited to 'www-plugins/gnash')
-rw-r--r-- | www-plugins/gnash/ChangeLog | 12 | ||||
-rw-r--r-- | www-plugins/gnash/Manifest | 10 | ||||
-rw-r--r-- | www-plugins/gnash/files/gnash-0.8.9-documentation-paths.patch | 19 | ||||
-rw-r--r-- | www-plugins/gnash/files/gnash-0.8.9-external-dejagnu.patch | 24 | ||||
-rw-r--r-- | www-plugins/gnash/files/gnash-0.8.9-find-openvg.patch | 12 | ||||
-rw-r--r-- | www-plugins/gnash/files/gnash-0.8.9-klash.patch | 12 | ||||
-rw-r--r-- | www-plugins/gnash/gnash-0.8.9.ebuild | 279 | ||||
-rw-r--r-- | www-plugins/gnash/metadata.xml | 1 |
8 files changed, 366 insertions, 3 deletions
diff --git a/www-plugins/gnash/ChangeLog b/www-plugins/gnash/ChangeLog index cab20e9d2c4f..614c750716b4 100644 --- a/www-plugins/gnash/ChangeLog +++ b/www-plugins/gnash/ChangeLog @@ -1,6 +1,16 @@ # ChangeLog for www-plugins/gnash # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/www-plugins/gnash/ChangeLog,v 1.55 2011/03/04 09:22:48 chithanh Exp $ +# $Header: /var/cvsroot/gentoo-x86/www-plugins/gnash/ChangeLog,v 1.56 2011/03/21 01:30:13 chithanh Exp $ + +*gnash-0.8.9 (21 Mar 2011) + + 21 Mar 2011; Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org> + +gnash-0.8.9.ebuild, +files/gnash-0.8.9-documentation-paths.patch, + +files/gnash-0.8.9-external-dejagnu.patch, + +files/gnash-0.8.9-find-openvg.patch, +files/gnash-0.8.9-klash.patch, + metadata.xml: + Version bump, bug #359533. Fixes bug #332755, bug #332757, bug #339610, + bug #344069 and bug #356859. 04 Mar 2011; Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org> gnash-0.8.8.ebuild: diff --git a/www-plugins/gnash/Manifest b/www-plugins/gnash/Manifest index 04878a002fb4..7eed15876ccf 100644 --- a/www-plugins/gnash/Manifest +++ b/www-plugins/gnash/Manifest @@ -6,7 +6,13 @@ AUX gnash-0.8.8-documentation-paths.patch 662 RMD160 8ebce11605d93297e8af4ca1a54 AUX gnash-0.8.8-external-dejagnu.patch 703 RMD160 971bfb775a4019f27ca0a5048672154fe2555fe9 SHA1 8e0ab1caef24ed7cefd5da10a8985579bec01c84 SHA256 7bb96c5adf54686b1c6350dbc2730a0aab2529ed8e3f892c2ccd85a5f9afc27d AUX gnash-0.8.8-klash.patch 1127 RMD160 f03e8de0d5bcc3eeea08ca45b96196519b01d362 SHA1 f117f36d8452ee088b80552efdc7eea969324e8f SHA256 b3015cb93b91575d214c17cfbb7f5614c3df047261e184ec9ef84e28641ddc25 AUX gnash-0.8.8-secure-tempfile-creation.patch 1166 RMD160 0c8d089de4107fc473e8cf765fa6ab809e07051a SHA1 f0037f46314fb2430f61dd8a3f8251b0513dbe01 SHA256 7883b1b94e5cb621d1c7773450dcf0b23bb9a677f72df8b50309ee9747ddc197 +AUX gnash-0.8.9-documentation-paths.patch 623 RMD160 cdf0bb4cc4626bd50ab32c5a19183b57917f6e8e SHA1 eae72553893d2150b79ec71d948143ae8a4c5959 SHA256 473fefab01376ef8d9450518dee16ef6057cfd0618629e13f3f3ec8adf8c251f +AUX gnash-0.8.9-external-dejagnu.patch 700 RMD160 b24901796187f5b9ee2a27b60c0232884302af69 SHA1 5dc178479f5ad2aa1eb0d5314df0bec505708890 SHA256 b838af0304d41165557dff2538031edf8d14d5a221375aff4b9e404ef1cb261d +AUX gnash-0.8.9-find-openvg.patch 465 RMD160 774f6ab0a42df1172c17f089d9c72502db6cb0bf SHA1 de8bb98460c0b37a75389c35b3e06500c4e10e15 SHA256 27d0cffa642c4eccaf894bcea590473db24462b6cd792827bdccc52653207b8b +AUX gnash-0.8.9-klash.patch 471 RMD160 578a467c276884179a9110a18f381f46b2874157 SHA1 c480de3a87f409cbc1c1af499a304b020303fe83 SHA256 779f4be4eb25f654010b380fea4d6b092310d1f850acb040a203a7b8caf02bb8 DIST gnash-0.8.8.tar.bz2 3850383 RMD160 621afbd14180ce770f60a6e158f9fda0b4d5ec02 SHA1 d349e0321e7fe9abcd265d63ce282cd2a7ce59d3 SHA256 dcac4b81f81ecd6cc7c5422d7c731fc5c2a7be7fb18b5570a7e6f8fb5fc6e220 +DIST gnash-0.8.9.tar.bz2 3777140 RMD160 34bb51cfe5b8593dc14bc2c21c0085277dbb23f1 SHA1 585c320c98b3304fcbba230f2c4b1fdf2a52aee0 SHA256 f90dbdc6f03d787b239b9edacbea077b46d69ae9d85f08af23f256af389c48bd EBUILD gnash-0.8.8.ebuild 8791 RMD160 35d4d203b9e872aa5fdbb537da77b58e5b9c07b5 SHA1 aa651dbb1b75f04f0363555dc95129cec3811493 SHA256 2a3d29d6640b3cac14037c8e1821fa95ab8fc73ca39decf3dfeddd169bf4b61c -MISC ChangeLog 22640 RMD160 f04e56ef731d9af49f031a4c663910230ca473f8 SHA1 4bc362b8c31b74627493375332e9ec8687f3b5e5 SHA256 0f4629b61c19a063a7e4753d22ca27bedf9031dc3ccd7740bca28c9274e75ce8 -MISC metadata.xml 907 RMD160 ff350bb7405df94509463f0e8448a7a766aef8f0 SHA1 d4d6cd31be21a2d25b39bb03e5ab3f10676809ff SHA256 e771bc85dac450875f1978807de8e1106d0fce2097eaaab249a4718c729c386b +EBUILD gnash-0.8.9.ebuild 7870 RMD160 177bbb67412240892b403848ae4287a1d8fd8001 SHA1 cbe43f0fa636943afc54e8b913f90a9421663650 SHA256 3c83c8477896ec9a31c61ed5237dc69feda43d6b92a8c28753aed517f2abf770 +MISC ChangeLog 23045 RMD160 8a19d9d723fb9295bec494f4570e9e43e3865a6e SHA1 dd8cad6905c359dcaed4f9fd92f63d9ebe6d6a1d SHA256 c3683c244e7d2a83caa8067569cdbbb061a3271d29af878606b9e44306d8c641 +MISC metadata.xml 993 RMD160 d73282f5aae1806f9ce96c3ff940edb5ccf0543e SHA1 516d1694124004a75fde6e2a359b6dd0937905cd SHA256 9f38cad096d48ef2a5f6a8b862df7c54e428474589430966b68535c150447f07 diff --git a/www-plugins/gnash/files/gnash-0.8.9-documentation-paths.patch b/www-plugins/gnash/files/gnash-0.8.9-documentation-paths.patch new file mode 100644 index 000000000000..dc56805fec6d --- /dev/null +++ b/www-plugins/gnash/files/gnash-0.8.9-documentation-paths.patch @@ -0,0 +1,19 @@ +diff -ur a/doc/C/Makefile.am b/doc/C/Makefile.am +--- a/doc/C/Makefile.am 2011-03-13 17:47:36.000000000 +0100 ++++ b/doc/C/Makefile.am 2011-03-20 23:50:03.560998121 +0100 +@@ -19,13 +19,13 @@ + + # Building a PDF using Apache FOP only works with fop-0.20.5 for now. + +-infodir = ${prefix}/share/info ++# infodir = ${prefix}/share/info + man1dir = ${mandir}/man1 + docname = gnash + lang = C + omffile = gnash-C.omf + +-docdir = $(datadir)/$(PACKAGE)/doc/$(docname)/$(lang) ++# docdir = $(datadir)/$(PACKAGE)/doc/$(docname)/$(lang) + omf_dest_dir=$(datadir)/omf/$(PACKAGE) + scrollkeeper_localstate_dir = $(localstatedir)/scrollkeeper + diff --git a/www-plugins/gnash/files/gnash-0.8.9-external-dejagnu.patch b/www-plugins/gnash/files/gnash-0.8.9-external-dejagnu.patch new file mode 100644 index 000000000000..eaffda77bc00 --- /dev/null +++ b/www-plugins/gnash/files/gnash-0.8.9-external-dejagnu.patch @@ -0,0 +1,24 @@ +diff -ur a/plugin/npapi/test.cpp b/plugin/npapi/test.cpp +--- a/plugin/npapi/test.cpp 2011-03-13 17:47:36.000000000 +0100 ++++ b/plugin/npapi/test.cpp 2011-03-20 23:52:20.369998096 +0100 +@@ -35,7 +35,7 @@ + #include "npfunctions.h" + #endif + #include "pluginbase.h" +-#include "dejagnu.h" ++#include <dejagnu.h> + #include "../../testsuite/check.h" + #include <regex.h> + +diff -ur a/testsuite/check.h b/testsuite/check.h +--- a/testsuite/check.h 2011-02-26 19:11:08.000000000 +0100 ++++ b/testsuite/check.h 2011-03-20 23:52:32.570998094 +0100 +@@ -29,7 +29,7 @@ + + #define HAVE_DEJAGNU_H 1 // we ship our own now... + #ifdef HAVE_DEJAGNU_H +-#include "dejagnu.h" ++#include <dejagnu.h> + + #define info(x) note x + diff --git a/www-plugins/gnash/files/gnash-0.8.9-find-openvg.patch b/www-plugins/gnash/files/gnash-0.8.9-find-openvg.patch new file mode 100644 index 000000000000..dfd6914ba320 --- /dev/null +++ b/www-plugins/gnash/files/gnash-0.8.9-find-openvg.patch @@ -0,0 +1,12 @@ +diff -ur a/configure.ac b/configure.ac +--- a/configure.ac 2011-03-18 14:49:55.000000000 +0100 ++++ b/configure.ac 2011-03-21 01:54:41.058996609 +0100 +@@ -2393,7 +2393,7 @@ + + if test x"${build_ogv}" = xyes; then + GNASH_PKG_FIND(EGL, [EGL/egl.h], [EGL library], eglGetDisplay) +- GNASH_PKG_FIND(OpenVG, [vg/openvg.h], [OpenVG library], vgDrawImage) ++ GNASH_PKG_FIND(OpenVG, [VG/openvg.h], [OpenVG library], vgDrawImage) + fi + + if test x"${build_gtk}" = xyes; then diff --git a/www-plugins/gnash/files/gnash-0.8.9-klash.patch b/www-plugins/gnash/files/gnash-0.8.9-klash.patch new file mode 100644 index 000000000000..e6afec04d293 --- /dev/null +++ b/www-plugins/gnash/files/gnash-0.8.9-klash.patch @@ -0,0 +1,12 @@ +diff -ur a/macros/kde4.m4 b/macros/kde4.m4 +--- a/macros/kde4.m4 2011-02-26 19:11:08.000000000 +0100 ++++ b/macros/kde4.m4 2011-03-21 00:04:38.845997945 +0100 +@@ -210,7 +210,7 @@ + KDE4_CONFIGDIR="${KDE4_PREFIX}/share/kde4/config" + fi + if test x"${KDE4_APPSDATADIR}" = x ; then +- KDE4_APPSDATADIR="${KDE4_PREFIX}/share/kde4/apps/klash" ++ KDE4_APPSDATADIR="${KDE4_PREFIX}/share/apps/klash" + fi + + if test x"${ac_cv_path_kde4_incl}" != x ; then diff --git a/www-plugins/gnash/gnash-0.8.9.ebuild b/www-plugins/gnash/gnash-0.8.9.ebuild new file mode 100644 index 000000000000..e0026902fb37 --- /dev/null +++ b/www-plugins/gnash/gnash-0.8.9.ebuild @@ -0,0 +1,279 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-plugins/gnash/gnash-0.8.9.ebuild,v 1.1 2011/03/21 01:30:13 chithanh Exp $ + +EAPI=3 +CMAKE_REQUIRED="never" +KDE_REQUIRED="optional" +AT_M4DIR="cygnal" + +inherit autotools eutils kde4-base multilib nsplugins python flag-o-matic + +DESCRIPTION="GNU Flash movie player that supports many SWF v7,8,9 features" +HOMEPAGE="http://www.gnu.org/software/gnash/" + +if [[ ${PV} = 9999* ]]; then + SRC_URI="" + EGIT_REPO_URI="git://git.savannah.gnu.org/gnash.git" + inherit git +else + SRC_URI="mirror://gnu/${PN}/${PV}/${P}.tar.bz2" +fi + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="+agg cairo cygnal dbus doc fbcon +ffmpeg gnome gstreamer gtk kde lirc mysql +nls nsplugin opengl openvg python +sdl sdl-sound ssh ssl test vaapi video_cards_intel" + +# gnash fails if obsolete boost is installed, bug #334259 +RDEPEND=">=dev-libs/boost-1.41.0 + !!dev-libs/boost:0 + dev-libs/expat + dev-libs/libxml2 + virtual/jpeg + media-libs/libpng + net-misc/curl + x11-libs/libX11 + x11-libs/libXi + x11-libs/libXmu + x11-libs/libXt + media-libs/giflib + x11-proto/xproto + agg? ( x11-libs/agg ) + cairo? ( x11-libs/cairo ) + doc? ( + >=app-text/docbook2X-0.8.8 + app-text/docbook-sgml-utils + ) + ffmpeg? ( + media-video/ffmpeg[vaapi?] + ) + gstreamer? ( + media-plugins/gst-plugins-ffmpeg + media-plugins/gst-plugins-mad + media-plugins/gst-plugins-meta + ) + gtk? ( + x11-libs/gtk+:2 + net-libs/xulrunner:1.9 + python? ( dev-python/pygtk:2 ) + ) + kde? ( >=kde-base/kdebase-startkde-${KDE_MINIMAL} ) + opengl? ( + virtual/opengl + gtk? ( x11-libs/gtkglext ) + ) + openvg? ( + virtual/opengl + ) + nsplugin? ( >=net-libs/xulrunner-1.9.2:1.9 ) + sdl? ( media-libs/libsdl[X] ) + sdl-sound? ( media-libs/libsdl ) + media-libs/speex[ogg] + sys-libs/zlib + >=sys-devel/libtool-2.2 + mysql? ( virtual/mysql ) + lirc? ( app-misc/lirc ) + dbus? ( sys-apps/dbus ) + ssh? ( >=net-libs/libssh-0.4[server] ) + ssl? ( dev-libs/openssl ) + vaapi? ( x11-libs/libva[opengl?] ) + " +DEPEND="${RDEPEND} + dev-util/pkgconfig + nls? ( sys-devel/gettext ) + gnome? ( app-text/rarian ) + test? ( dev-util/dejagnu )" +# Tests hang with sandbox, bug #321017 +RESTRICT="test" + +pkg_setup() { + if use !ffmpeg && use !gstreamer; then + ewarn "You are trying to build Gnash without choosing a media handler." + ewarn "Sound and video playback will not work." + fi + + if use vaapi && use !ffmpeg; then + eerror "Support for VAAPI currently requires the ffmpeg media handler." + die "vaapi requires the ffmpeg USE flag." + fi + + if use vaapi && use !agg; then + eerror "Support for VAAPI currently requires the agg renderer." + die "vaapi requires the agg USE flag." + fi + + if use !agg && use !cairo && use !opengl && !use openvg; then + eerror "You are trying to build Gnash without choosing a renderer [agg|cairo|opengl|openvg]." + die "Please enable a renderer" + fi + + if use !fbcon && use !kde && use !gtk && use !sdl; then + ewarn "You are trying to build Gnash without choosing a gui frontend [fbcon,gtk,kde,sdl]." + die "Please enable at least one of these USE flags." + fi + + if use python && use !gtk; then + eerror "Building gnash with python support requires gtk." + die "python requires the gtk USE flag." + fi + + if use nsplugin && use !gtk; then + eerror "Building gnash with nsplugin requires the gtk gui." + die "Nsplugin requires the gtk gui." + fi + + if use fbcon && use !agg; then + eerror "Building gnash with fbcon requires the agg renderer." + die "fbcon requires the agg USE flag." + fi + + kde4-base_pkg_setup +} + +src_prepare() { + # TODO: Patch no longer applies +# epatch "${FILESDIR}"/${PN}-0.8.7-amf-include.patch + + # Look for openvg.h in correct path + epatch "${FILESDIR}"/${PN}-0.8.9-find-openvg.patch + + # Fix paths for klash, bug #339610 + epatch "${FILESDIR}"/${PN}-0.8.9-klash.patch + + # Install documentation into the proper directories, bug #296110 + epatch "${FILESDIR}"/${PN}-0.8.9-documentation-paths.patch + + # Use external dejagnu for tests, bug #321017 + epatch "${FILESDIR}"/${PN}-0.8.9-external-dejagnu.patch + + # Fix building on ppc64, bug #342535 + use ppc64 && append-flags -mminimal-toc + + eautoreconf +} +src_configure() { + local gui hwaccel input media myconf myext renderers + + # Set nsplugin install directory. + use nsplugin && myconf="${myconf} --with-npapi-plugindir=/usr/$(get_libdir)/gnash/npapi/" + + # Set hardware acceleration. + if use vaapi; then + hwaccel="vaapi" + else + hwaccel="none" + fi + + # Set rendering engine. + use agg && renderers+=",agg" + use cairo && renderers+=",cairo" + use opengl && renderers+=",opengl" + use openvg && renderers+=",openvg" + + # Set kde and konqueror plugin directories. + if use kde; then + myconf="${myconf} + --with-plugins-install=system + --with-kde4-incl=${KDEDIR}/include + --with-kde4-configdir=${KDEDIR}/share/config + --with-kde4-prefix=${KDEDIR} + --with-kde4-lib=${KDEDIR}/$(get_libdir) + --with-kde-appsdatadir=${KDEDIR}/share/apps/klash + --with-kde4-servicesdir=${KDEDIR}/share/kde4/services" + fi + + # Set media handler. + use ffmpeg || use gstreamer || media+=",none" + use ffmpeg && media+=",ffmpeg" + use gstreamer && media+=",gst" + + # Set gui. + use gtk && gui=",gtk" + use fbcon && gui="${gui},fb" + use kde && gui="${gui},kde4" + use sdl && gui="${gui},sdl" + + if use sdl-sound; then + myconf="${myconf} --enable-sound=sdl" + else + myconf="${myconf} --enable-sound=none" + fi + + # Set extensions + use mysql && myext=",mysql" + use gtk && myext="${myext},gtk" + use lirc && myext="${myext},lirc" + use dbus && myext="${myext},dbus" + + # Strip extra comma from gui, myext, hwaccel and renderers. + gui=$( echo $gui | sed -e 's/,//' ) + hwaccel=$( echo $hwaccel | sed -e 's/,//' ) + myext=$( echo $myext | sed -e 's/,//' ) + renderers=$( echo $renderers | sed -e 's/,//' ) + media=$( echo $media | sed -e 's/,//' ) + + econf \ + --docdir=/usr/share/doc/${PF} \ + --disable-dependency-tracking \ + --disable-kparts3 \ + $(use_enable cygnal) \ + $(use_enable cygnal cgibins) \ + $(use_enable doc docbook) \ + $(use_enable gnome ghelp) \ + $(use_enable kde kparts4) \ + $(use_enable lirc) \ + $(use_enable nls) \ + $(use_enable nsplugin npapi) \ + $(use_enable python) \ + $(use_enable ssh) \ + $(use_enable ssl) \ + $(use_enable test testsuite) \ + $(use_enable video_cards_intel i810-lod-bias) \ + --enable-gui=${gui} \ + --enable-extensions=${myext} \ + --enable-renderer=${renderers} \ + --enable-hwaccel=${hwaccel} \ + --enable-media=${media} \ + ${myconf} +} +src_test() { + local log=testsuite-results.txt + cd testsuite + emake check || die "make check failed" + ./anaylse-results.sh > $log || die "results analyze failed" + cat $log +} +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + + # Install nsplugin in directory set by --with-npapi-plugindir. + if use nsplugin; then + emake DESTDIR="${D}" install-plugin || die "install plugins failed" + fi + + # Install kde konqueror plugin. + if use kde; then + pushd "${S}/plugin/klash4" >& /dev/null || die + emake DESTDIR="${D}" install-plugin || die "install kde plugins failed" + popd >& /dev/null + fi + # Create a symlink in /usr/$(get_libdir)/nsbrowser/plugins to the nsplugin install directory. + use nsplugin && inst_plugin /usr/$(get_libdir)/gnash/npapi/libgnashplugin.so \ + + dodoc AUTHORS ChangeLog NEWS README || die "dodoc failed" +} +pkg_postinst() { + if use !gnome || use !gstreamer && use !ffmpeg ; then + ewarn "" + ewarn "Gnash was built without a media handler and or http handler !" + ewarn "" + ewarn "If you want Gnash to support video then you will need to" + ewarn "rebuild Gnash with either the ffmpeg or gstreamer and gnome use flags set." + ewarn "" + fi + ewarn "${PN} is still in heavy development" + ewarn "Please first report bugs on upstream gnashdevs and deal with them" + ewarn "And then report a Gentoo bug to the maintainer" + use kde && kde4-base_pkg_postinst +} diff --git a/www-plugins/gnash/metadata.xml b/www-plugins/gnash/metadata.xml index 19bc628e1cc4..b14b7aacd859 100644 --- a/www-plugins/gnash/metadata.xml +++ b/www-plugins/gnash/metadata.xml @@ -13,6 +13,7 @@ <use> <flag name='agg'>Rendering based on the Anti-Grain Geometry Rendering Engine library</flag> <flag name='cygnal'>Enable building of the cygnal server</flag> + <flag name='openvg'>Rendering based on the OpenVG graphics acceleration API</flag> <flag name='sdl-sound'>Enable SDL audio output for the standalone player</flag> <flag name='ssh'>Enable using SSH for network authentication in libnet</flag> <flag name='ssl'>Enable directly using OpenSSL in libnet (not needed for nsplugin ssl support)</flag> |