# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="Powerful GTK+ based image & movie viewer" HOMEPAGE="http://www.homa.ne.jp/~ashie/gimageview/" SRC_URI="mirror://sourceforge/gtkmmviewer/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="nls gtk2 imlib mpeg avi wmf gnome" DEPEND="virtual/x11 >=media-libs/libmng-1.0.3 nls? ( sys-devel/gettext ) mpeg? ( >=media-libs/xine-lib-0.9.10 ) avi? ( >=media-video/mplayer-0.90_rc1 ) wmf? ( >=media-libs/libwmf-0.2.6 ) ( gtk2? >=x11-libs/gtk+-2.0.8 : =x11-libs/gtk+-1.2* ) !gtk2? ( imlib? >=media-libs/imlib-1.9.0 : >=media-libs/gdk-pixbuf-0.18.0 )" S="${WORKDIR}/${P}" src_compile() { local myconf="" myconf="`use_enable nls nls` \ `use_enable avi mplayer` \ `use_with mpeg xine` \ `use_with wmf libwmf` \ `use_with gtk2 gtk2`" use imlib \ && myconf="${myconf} --disable-gdk-pixbuf" \ || myconf="${myconf} --disable-imlib" econf ${myconf} --enable-exif --enable-splash || die emake || die } src_install() { einstall || die use gnome || rm -r ${D}/usr/share/gnome/ ${D}/usr/share/pixmaps/ }