# 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.8 2011/08/16 12:56:26 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-2 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" # 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 ) fbcon? ( x11-libs/tslib ) ffmpeg? ( virtual/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? ( $(add_kdebase_dep kdebase-startkde) ) 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 has_version ">=dev-libs/boost-1.46" && has_version " $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 }