blob: 2d8b924509499a410d1e2e7b399fcffc477fe122 (
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
|
# 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.27-r2.ebuild,v 1.3 2005/11/29 03:15:11 vapier Exp $
inherit eutils
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="amd64 ~hppa ppc ppc64 x86"
# mng, xine, and mplayer are local flags
IUSE="nls imlib wmf mng svg xine mplayer"
DEPEND=">=x11-libs/gtk+-2
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 )
imlib? ( media-libs/imlib )"
src_unpack() {
unpack ${A}
cd ${S}
epatch ${FILESDIR}/${P}-sort_fix.diff
epatch ${FILESDIR}/${P}-gtk12_fix.diff
}
src_compile() {
econf \
$(use_enable nls) \
$(use_with wmf libwmf) \
$(use_with mng libmng) \
$(use_with svg librsvg) \
$(use_with xine) \
$(use_enable mplayer) \
--with-gtk2 \
--enable-splash || die
emake || die
}
src_install() {
# make DESTDIR=${D} install doesn't work
einstall desktopdir=${D}/usr/share/applications || die
}
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 ""
}
|