diff --git a/net-www/gnash/gnash-0.8.2.ebuild b/net-www/gnash/gnash-0.8.2.ebuild new file mode 100644 --- /dev/null +++ b/net-www/gnash/gnash-0.8.2.ebuild @@ -0,0 +1,180 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-www/gnash/gnash-0.8.1-r1.ebuild,v 1.3 2008/01/20 04:04:33 vapier Exp $ + +inherit nsplugins kde-functions qt3 multilib +set-kdedir eutils + +DESCRIPTION="Gnash is a GNU Flash movie player that supports many SWF v7 features" +HOMEPAGE="http://www.gnu.org/software/gnash" +SRC_URI="mirror://gnu/${PN}/${PV}/${P}.tar.bz2" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~x86-fbsd" +IUSE="agg cairo fbcon ffmpeg gstreamer gtk kde mad nsplugin opengl qt3 sdl video_cards_i810" + +RDEPEND=" + agg? ( >=x11-libs/agg-2.5 ) + cairo? ( x11-libs/cairo ) + opengl? ( + virtual/opengl + gtk? ( x11-libs/gtkglext ) + ) + !agg? ( !cairo? ( !opengl? ( >=x11-libs/agg-2.5 ) ) ) + gtk? ( + >x11-libs/gtk+-2 + x11-libs/pango + dev-libs/glib + dev-libs/atk + ) + kde? ( kde-base/kdelibs ) + qt3? ( x11-libs/qt ) + sdl? ( media-libs/libsdl ) + !gtk? ( !kde? ( !qt3? ( !sdl? ( ( !fbcon? ( + >x11-libs/gtk+-2 + x11-libs/pango + dev-libs/glib + dev-libs/atk + kde-base/kdelibs + ) ) ) ) ) ) + dev-libs/libxml2 + sys-libs/zlib + media-libs/jpeg + media-libs/libpng + net-misc/curl + ffmpeg? ( + media-libs/libsdl + media-video/ffmpeg + ) + gstreamer? ( + media-plugins/gst-plugins-ffmpeg + media-plugins/gst-plugins-mad + ) + mad? ( media-libs/libmad ) + dev-libs/boost + x11-libs/libX11 + x11-libs/libXi + x11-libs/libXmu + x11-libs/libXt + x11-proto/xproto + media-video/swfmill + media-gfx/swftools + media-video/mtasc + " +DEPEND="${RDEPEND} + dev-util/pkgconfig" + +pkg_setup() { + if ! use agg && ! use opengl && use cairo && use kde ; then + eerror "The cairo renderer and the kde gui were selected" + eerror "They are incompatible with each other" + eerror "Disable one of them through the respective USE flag" + die "cairo and kde USE flags enabled at the same time" + fi + +#( use fbcon || use fltk ) + if ! use agg && use opengl && use fbcon; then + eerror "The opengl renderer and the fb/fltk guis were selected" + eerror "They are incompatible with each other" + eerror "Disable one of them through the respective USE flag" + die "opengl and fbcon/fltk USE flags enabled at the same time" + fi + + if use nsplugin && use !gtk ; then + eerror "The Firefox plugin was selected but not the GTK frontend." + eerror "Disable the nsplugin USE flag or enable the gtk USE flag" + die "nsplugin USE flag enabled with required gtk USE flag disabled" + fi + + if has_version '