Lines 1-113
Link Here
|
1 |
# Copyright 1999-2012 Gentoo Foundation |
|
|
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: $ |
4 |
|
5 |
EAPI="4" |
6 |
GCONF_DEBUG="yes" |
7 |
GNOME2_LA_PUNT="yes" |
8 |
|
9 |
inherit eutils gnome2 |
10 |
if [[ ${PV} = 9999 ]]; then |
11 |
inherit gnome2-live |
12 |
fi |
13 |
|
14 |
DESCRIPTION="Simple document viewer for GNOME" |
15 |
HOMEPAGE="http://www.gnome.org/projects/evince/" |
16 |
|
17 |
LICENSE="GPL-2+" |
18 |
SLOT="0" |
19 |
IUSE="dbus debug djvu dvi gnome-keyring +introspection nautilus +postscript t1lib tiff xps" |
20 |
if [[ ${PV} = 9999 ]]; then |
21 |
IUSE="${IUSE} doc" |
22 |
KEYWORDS="" |
23 |
else |
24 |
KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~x64-solaris" |
25 |
fi |
26 |
|
27 |
# Since 2.26.2, can handle poppler without cairo support. Make it optional ? |
28 |
# not mature enough |
29 |
# atk used in libview |
30 |
# gdk-pixbuf used all over the place |
31 |
# libX11 used for totem-screensaver |
32 |
RDEPEND=" |
33 |
dev-libs/atk |
34 |
>=dev-libs/glib-2.33.0:2 |
35 |
>=dev-libs/libxml2-2.5:2 |
36 |
sys-libs/zlib |
37 |
x11-libs/gdk-pixbuf:2 |
38 |
>=x11-libs/gtk+-3.0.2:3[introspection?] |
39 |
x11-libs/libX11 |
40 |
>=x11-libs/libSM-1 |
41 |
x11-libs/libICE |
42 |
gnome-base/gsettings-desktop-schemas |
43 |
|| ( |
44 |
>=x11-themes/gnome-icon-theme-2.17.1 |
45 |
>=x11-themes/hicolor-icon-theme-0.10 ) |
46 |
>=x11-libs/cairo-1.10.0 |
47 |
>=app-text/poppler-0.20.0[cairo] |
48 |
djvu? ( >=app-text/djvu-3.5.17 ) |
49 |
dvi? ( |
50 |
virtual/tex-base |
51 |
dev-libs/kpathsea |
52 |
t1lib? ( >=media-libs/t1lib-5.0.0 ) ) |
53 |
gnome-keyring? ( >=gnome-base/gnome-keyring-2.22.0 ) |
54 |
introspection? ( >=dev-libs/gobject-introspection-1.0 ) |
55 |
nautilus? ( >=gnome-base/nautilus-2.91.4[introspection?] ) |
56 |
postscript? ( >=app-text/libspectre-0.2.0 ) |
57 |
tiff? ( >=media-libs/tiff-3.6:0 ) |
58 |
xps? ( >=app-text/libgxps-0.2.1 )" |
59 |
DEPEND="${RDEPEND} |
60 |
app-text/docbook-xml-dtd:4.3 |
61 |
sys-devel/gettext |
62 |
>=dev-util/intltool-0.35 |
63 |
>=dev-util/gtk-doc-am-1.13 |
64 |
virtual/pkgconfig" |
65 |
|
66 |
if [[ ${PV} = 9999 ]]; then |
67 |
DEPEND="${DEPEND} |
68 |
app-text/yelp-tools |
69 |
doc? ( >=dev-util/gtk-doc-1.13 )" |
70 |
fi |
71 |
|
72 |
ELTCONF="--portage" |
73 |
|
74 |
# Needs dogtail and pyspi from http://fedorahosted.org/dogtail/ |
75 |
# Releases: http://people.redhat.com/zcerza/dogtail/releases/ |
76 |
RESTRICT="test" |
77 |
|
78 |
pkg_setup() { |
79 |
G2CONF="${G2CONF} |
80 |
--disable-schemas-compile |
81 |
--disable-static |
82 |
--disable-tests |
83 |
--enable-pdf |
84 |
--enable-comics |
85 |
--enable-thumbnailer |
86 |
--with-smclient=xsmp |
87 |
--with-platform=gnome |
88 |
$(use_enable dbus) |
89 |
$(use_enable djvu) |
90 |
$(use_enable dvi) |
91 |
$(use_with gnome-keyring keyring) |
92 |
$(use_enable introspection) |
93 |
$(use_enable nautilus) |
94 |
$(use_enable postscript ps) |
95 |
$(use_enable t1lib) |
96 |
$(use_enable tiff) |
97 |
$(use_enable xps)" |
98 |
[[ ${PV} != 9999 ]] && G2CONF="${G2CONF} ITSTOOL=$(type -P true)" |
99 |
DOCS="AUTHORS ChangeLog NEWS README TODO" |
100 |
} |
101 |
|
102 |
src_prepare() { |
103 |
# Fix .desktop file so menu item shows up |
104 |
epatch "${FILESDIR}"/${PN}-0.7.1-display-menu.patch |
105 |
|
106 |
# Fix .desktop file categories, in 3.7 |
107 |
epatch "${FILESDIR}/${PN}-3.6.0-evince.desktop.patch" |
108 |
|
109 |
gnome2_src_prepare |
110 |
# Do not depend on gnome-icon-theme, bug #326855, #391859 |
111 |
sed -e 's/gnome-icon-theme >= $GNOME_ICON_THEME_REQUIRED//g' \ |
112 |
-i configure || die "sed failed" |
113 |
} |