/[gentoo-x86]/app-text/evince/evince-3.4.0.ebuild
Gentoo

Contents of /app-text/evince/evince-3.4.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Wed Oct 17 05:20:22 2012 UTC (2 years, 2 months ago) by tetromino
Branch: MAIN
Changes since 1.4: +5 -5 lines
Drop useless USE=doc, it only regenerated documentation; fixes bug #436778. Update license. Drop old.

(Portage version: 2.2.0_alpha137/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-text/evince/evince-3.4.0.ebuild,v 1.4 2012/08/23 16:01:12 tetromino Exp $
4
5 EAPI="4"
6 GCONF_DEBUG="yes"
7 GNOME2_LA_PUNT="yes"
8
9 inherit autotools eutils gnome2
10
11 DESCRIPTION="Simple document viewer for GNOME"
12 HOMEPAGE="http://www.gnome.org/projects/evince/"
13
14 LICENSE="GPL-2+"
15 SLOT="0"
16 IUSE="dbus debug djvu dvi gnome-keyring +introspection nautilus +postscript t1lib tiff xps"
17 KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~x64-solaris"
18
19 # Since 2.26.2, can handle poppler without cairo support. Make it optional ?
20 # not mature enough
21 # atk used in libview
22 # gdk-pixbuf used all over the place
23 # libX11 used for totem-screensaver
24 RDEPEND="
25 dev-libs/atk
26 >=dev-libs/glib-2.25.11:2
27 >=dev-libs/libxml2-2.5:2
28 sys-libs/zlib
29 x11-libs/gdk-pixbuf:2
30 >=x11-libs/gtk+-3.0.2:3[introspection?]
31 x11-libs/libX11
32 >=x11-libs/libSM-1
33 x11-libs/libICE
34 gnome-base/gsettings-desktop-schemas
35 || (
36 >=x11-themes/gnome-icon-theme-2.17.1
37 >=x11-themes/hicolor-icon-theme-0.10 )
38 >=x11-libs/cairo-1.10.0
39 >=app-text/poppler-0.18[cairo]
40 djvu? ( >=app-text/djvu-3.5.17 )
41 dvi? (
42 virtual/tex-base
43 dev-libs/kpathsea
44 t1lib? ( >=media-libs/t1lib-5.0.0 ) )
45 gnome-keyring? ( >=gnome-base/gnome-keyring-2.22.0 )
46 introspection? ( >=dev-libs/gobject-introspection-0.6 )
47 nautilus? ( >=gnome-base/nautilus-2.91.4[introspection?] )
48 postscript? ( >=app-text/libspectre-0.2.0 )
49 tiff? ( >=media-libs/tiff-3.6:0 )
50 xps? ( >=app-text/libgxps-0.2.1 )
51 "
52 DEPEND="${RDEPEND}
53 app-text/scrollkeeper
54 >=app-text/gnome-doc-utils-0.3.2
55 app-text/docbook-xml-dtd:4.3
56 sys-devel/gettext
57 >=dev-util/gtk-doc-am-1.13
58 >=dev-util/intltool-0.35
59 virtual/pkgconfig"
60
61 ELTCONF="--portage"
62
63 # Needs dogtail and pyspi from http://fedorahosted.org/dogtail/
64 # Releases: http://people.redhat.com/zcerza/dogtail/releases/
65 RESTRICT="test"
66
67 pkg_setup() {
68 # Passing --disable-help would drop offline help, that would be inconsistent
69 # with helps of the most of Gnome apps that doesn't require network for that.
70 G2CONF="${G2CONF}
71 --disable-schemas-compile
72 --disable-scrollkeeper
73 --disable-static
74 --disable-tests
75 --enable-pdf
76 --enable-comics
77 --enable-thumbnailer
78 --with-smclient=xsmp
79 --with-platform=gnome
80 --enable-help
81 $(use_enable dbus)
82 $(use_enable djvu)
83 $(use_enable dvi)
84 $(use_with gnome-keyring keyring)
85 $(use_enable introspection)
86 $(use_enable nautilus)
87 $(use_enable postscript ps)
88 $(use_enable t1lib)
89 $(use_enable tiff)
90 $(use_enable xps)"
91 DOCS="AUTHORS ChangeLog NEWS README TODO"
92 }
93
94 src_prepare() {
95 # Regenerate marshalers to allow building with <glib-2.32
96 rm -v cut-n-paste/gimpcellrenderertoggle/gimpwidgetsmarshal.{c,h} \
97 cut-n-paste/toolbar-editor/eggmarshalers.{c,h} \
98 libview/ev-view-marshal.{c,h} || die "rm failed"
99
100 # Fix .desktop file so menu item shows up
101 epatch "${FILESDIR}"/${PN}-0.7.1-display-menu.patch
102
103 # glib-2.32 restructured dep libs in pkg-config files, #414065
104 epatch "${FILESDIR}/${P}-glib-gold.patch"
105
106 gnome2_src_prepare
107
108 AT_NOELIBTOOLIZE=yes eautoreconf
109
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 }

  ViewVC Help
Powered by ViewVC 1.1.20