forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gimageview-0.2.27-r3.ebuild
68 lines (56 loc) · 1.59 KB
/
gimageview-0.2.27-r3.ebuild
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
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
# TODO: USE xine could be restored if support for xine-lib-1.2.x
# is patched in wrt #397639
EAPI=4
inherit eutils libtool
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"
IUSE="mng nls mplayer svg wmf" #xine
RDEPEND="app-arch/bzip2
x11-libs/gtk+:2
>=media-libs/libpng-1.2:0
x11-libs/libXinerama
wmf? ( >=media-libs/libwmf-0.2.8 )
mng? ( media-libs/libmng )
svg? ( gnome-base/librsvg )
mplayer? ( media-video/mplayer )"
#xine? ( media-libs/xine-lib )
DEPEND="${RDEPEND}
nls? ( sys-devel/gettext )
virtual/pkgconfig"
src_prepare() {
# link gimv executable against -lm for floor() and pow()
sed -i -e 's/$(gimv_LDADD)/& -lm/' src/Makefile.in || die #417995
epatch \
"${FILESDIR}"/${P}-sort_fix.diff \
"${FILESDIR}"/${P}-gtk12_fix.diff \
"${FILESDIR}"/${P}-gtk2.patch \
"${FILESDIR}"/${P}-libpng15.patch
# desktop-file-validate
sed -i -e '/^Term/s:0:false:' -e '/^Icon/s:.png::' etc/${PN}.desktop.in || die
elibtoolize
}
src_configure() {
econf \
--disable-imlib \
$(use_enable nls) \
--enable-splash \
$(use_enable mplayer) \
--with-gtk2 \
$(use_with mng libmng) \
$(use_with svg librsvg) \
$(use_with wmf libwmf) \
--without-xine
}
src_install() {
einstall \
desktopdir="${D}"usr/share/applications \
gimv_docdir="${D}"usr/share/doc/${PF}
find "${ED}"usr -name '*.la' -exec rm -f {} +
}