Gentoo Archives: gentoo-commits

From: Sergey Popov <pinkbyte@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/gimageview/
Date: Tue, 08 Aug 2017 11:36:14
Message-Id: 1502192163.7205313d9c1616cedf6934de8bcd06bc5756b0a2.pinkbyte@gentoo
1 commit: 7205313d9c1616cedf6934de8bcd06bc5756b0a2
2 Author: Sergey Popov <pinkbyte <AT> gentoo <DOT> org>
3 AuthorDate: Tue Aug 8 11:34:48 2017 +0000
4 Commit: Sergey Popov <pinkbyte <AT> gentoo <DOT> org>
5 CommitDate: Tue Aug 8 11:36:03 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7205313d
7
8 media-gfx/gimageview: revision bump
9
10 Bump EAPI to 6, add subslot operator to libpng and libmng dependencies.
11 Add support for user patches.
12 Use prune_libtool_files instead of manual cleanup.
13 Throw away einstall, banned in EAPI 6
14
15 Gentoo-Bug: 521556
16
17 Package-Manager: Portage-2.3.6, Repoman-2.3.1
18
19 media-gfx/gimageview/gimageview-0.2.27-r4.ebuild | 76 ++++++++++++++++++++++++
20 1 file changed, 76 insertions(+)
21
22 diff --git a/media-gfx/gimageview/gimageview-0.2.27-r4.ebuild b/media-gfx/gimageview/gimageview-0.2.27-r4.ebuild
23 new file mode 100644
24 index 00000000000..d44c15f5177
25 --- /dev/null
26 +++ b/media-gfx/gimageview/gimageview-0.2.27-r4.ebuild
27 @@ -0,0 +1,76 @@
28 +# Copyright 1999-2017 Gentoo Foundation
29 +# Distributed under the terms of the GNU General Public License v2
30 +
31 +# TODO: USE xine could be restored if support for xine-lib-1.2.x
32 +# is patched in wrt #397639
33 +
34 +EAPI=6
35 +
36 +inherit eutils libtool
37 +
38 +DESCRIPTION="Powerful GTK+ based image & movie viewer"
39 +HOMEPAGE="http://gtkmmviewer.sourceforge.net/"
40 +SRC_URI="mirror://sourceforge/gtkmmviewer/${P}.tar.gz"
41 +
42 +LICENSE="GPL-2"
43 +SLOT="0"
44 +KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~x86"
45 +IUSE="mng nls mplayer svg wmf" #xine
46 +
47 +RDEPEND="app-arch/bzip2
48 + x11-libs/gtk+:2
49 + >=media-libs/libpng-1.2:0=
50 + x11-libs/libXinerama
51 + wmf? ( >=media-libs/libwmf-0.2.8 )
52 + mng? ( media-libs/libmng:= )
53 + svg? ( gnome-base/librsvg )
54 + mplayer? ( media-video/mplayer )"
55 +#xine? ( media-libs/xine-lib )
56 +DEPEND="${RDEPEND}
57 + nls? ( sys-devel/gettext )
58 + virtual/pkgconfig"
59 +
60 +src_prepare() {
61 + # link gimv executable against -lm for floor() and pow()
62 + sed -i -e 's/$(gimv_LDADD)/& -lm/' src/Makefile.in || die #417995
63 +
64 + epatch \
65 + "${FILESDIR}"/${P}-sort_fix.diff \
66 + "${FILESDIR}"/${P}-gtk12_fix.diff \
67 + "${FILESDIR}"/${P}-gtk2.patch \
68 + "${FILESDIR}"/${P}-libpng15.patch
69 +
70 + # desktop-file-validate
71 + sed -i \
72 + -e '/^Term/s:0:false:' \
73 + -e '/^Icon/s:.png::' \
74 + etc/${PN}.desktop.in || die
75 +
76 + eapply_user
77 + elibtoolize
78 +}
79 +
80 +src_configure() {
81 + econf \
82 + --disable-imlib \
83 + $(use_enable nls) \
84 + --enable-splash \
85 + $(use_enable mplayer) \
86 + --with-gtk2 \
87 + $(use_with mng libmng) \
88 + $(use_with svg librsvg) \
89 + $(use_with wmf libwmf) \
90 + --without-xine
91 +}
92 +
93 +src_install() {
94 + emake \
95 + bindir="${ED}usr/bin" \
96 + datadir="${ED}usr/share" \
97 + desktopdir="${ED}usr/share/applications" \
98 + gimv_docdir="${ED}usr/share/doc/${PF}" \
99 + libdir="${ED}usr/$(get_libdir)" \
100 + install
101 +
102 + prune_libtool_files --all
103 +}