# 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://gtkmmviewer.sourceforge.net/" SRC_URI="mirror://sourceforge/gtkmmviewer/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="nls gtk2 imlib mng svg wmf gnome xine mplayer" DEPEND="virtual/x11 nls? ( sys-devel/gettext ) mng? ( media-libs/libmng ) svg? ( gnome-base/librsvg ) wmf? ( media-libs/libwmf ) xine? ( media-libs/xine-lib ) mplayer? ( media-video/mplayer ) gtk2? ( =x11-libs/gtk+-2* ) : ( =x11-libs/gtk+-1.2* || ( imlib? ( media-libs/imlib ) media-libs/gdk-pixbuf ) )" S="${WORKDIR}/${P}" src_compile() { local myconf="" if [ ! `use gtk2` ] && [ `use imlib` ] ; then myconf="--disable-gdk-pixbuf" else myconf="--disable-imlib" fi econf \ `use_enable nls` \ `use_enable mplayer` \ `use_with xine` \ `use_with mng libmng` \ `use_with svg librsvg` \ `use_with wmf libwmf` \ `use_with gtk2` \ ${myconf} --enable-splash || die emake || die } src_install() { einstall || die use gnome || rm -r ${D}/usr/share/gnome/ ${D}/usr/share/pixmaps/ } pkg_postinst() { einfo "" einfo "In order to open archived files, you have to emerge" einfo "'app-arch/rar' or 'app-arch/lha' which you want." einfo "e.g.) # emerge app-arch/rar" einfo "" }