blob: e6e189cd4198cd04cdffb94822ce8ecb12cd07f3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-gfx/gimageview/gimageview-0.2.25.ebuild,v 1.8 2005/01/18 11:23:31 usata Exp $
inherit eutils gcc
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 ppc ~amd64 ppc64"
# mng, xine, and mplayer are local flags
IUSE="gnome nls gtk gtk2 imlib wmf mng svg xine mplayer"
DEPEND="virtual/x11
media-libs/libpng
nls? ( sys-devel/gettext )
wmf? ( >=media-libs/libwmf-0.2.8 )
mng? ( >=media-libs/libmng-1.0.3 )
svg? ( >=gnome-base/librsvg-1.0.3 )
xine? ( >=media-libs/xine-lib-0.9.13-r3 )
mplayer? ( >=media-video/mplayer-0.92 )
gtk? ( gtk2? ( =x11-libs/gtk+-2* )
!gtk2? ( =x11-libs/gtk+-1.2* ) )
!gtk? ( || (
imlib? ( media-libs/imlib )
media-libs/gdk-pixbuf
) )"
src_compile() {
local myconf=""
if ! use gtk2 && use imlib; then
myconf="--disable-gdk-pixbuf"
else
myconf="--disable-imlib"
fi
# workaround for gtk+-2.4
sed -i -e "/GTK_DISABLE_DEPRECATED/d" src/dirview2.c || die
#apply both patches to compile with gcc-3.4.0 closing bug #53693
if [ "`gcc-major-version`" -ge "3" -a "`gcc-minor-version`" -ge "4" ]
then
epatch ${FILESDIR}/gimv-gcc34.patch
fi
econf \
$(use_enable nls) \
$(use_with wmf libwmf) \
$(use_with mng libmng) \
$(use_with svg librsvg) \
$(use_with xine) \
$(use_enable mplayer) \
$(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 "If you want to open archived files, you have to emerge"
einfo "'app-arch/rar' and/or 'app-arch/lha'."
einfo "e.g.) # emerge app-arch/rar"
einfo ""
}
|