| 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-2.32.0-r4.ebuild,v 1.14 2012/10/17 05:20:22 tetromino Exp $
|
| 4 |
|
| 5 |
EAPI="4"
|
| 6 |
GCONF_DEBUG="yes"
|
| 7 |
GNOME2_LA_PUNT="yes"
|
| 8 |
GNOME_TARBALL_SUFFIX="bz2"
|
| 9 |
|
| 10 |
inherit eutils gnome2 autotools
|
| 11 |
|
| 12 |
DESCRIPTION="Simple document viewer for GNOME"
|
| 13 |
HOMEPAGE="http://projects.gnome.org/evince/"
|
| 14 |
|
| 15 |
LICENSE="GPL-2+"
|
| 16 |
SLOT="0"
|
| 17 |
KEYWORDS="alpha amd64 arm ia64 ppc ppc64 sparc x86 ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~x64-solaris"
|
| 18 |
|
| 19 |
IUSE="dbus debug djvu dvi gnome gnome-keyring +introspection nautilus +postscript t1lib tiff"
|
| 20 |
|
| 21 |
# Since 2.26.2, can handle poppler without cairo support. Make it optional ?
|
| 22 |
# not mature enough
|
| 23 |
RDEPEND="
|
| 24 |
>=dev-libs/glib-2.25.11:2
|
| 25 |
>=dev-libs/libxml2-2.5:2
|
| 26 |
>=x11-libs/gtk+-2.21.5:2[introspection?]
|
| 27 |
>=x11-libs/libSM-1
|
| 28 |
x11-libs/libICE
|
| 29 |
|| (
|
| 30 |
>=x11-themes/gnome-icon-theme-2.17.1
|
| 31 |
>=x11-themes/hicolor-icon-theme-0.10 )
|
| 32 |
>=x11-libs/cairo-1.9.10
|
| 33 |
>=app-text/poppler-0.14[cairo]
|
| 34 |
djvu? ( >=app-text/djvu-3.5.17 )
|
| 35 |
dvi? (
|
| 36 |
virtual/tex-base
|
| 37 |
t1lib? ( >=media-libs/t1lib-5.0.0 ) )
|
| 38 |
gnome? ( >=gnome-base/gconf-2:2[introspection?] )
|
| 39 |
gnome-keyring? ( >=gnome-base/gnome-keyring-2.22.0 )
|
| 40 |
introspection? ( >=dev-libs/gobject-introspection-0.6 )
|
| 41 |
nautilus? ( >=gnome-base/nautilus-2.10[introspection?] )
|
| 42 |
postscript? ( >=app-text/libspectre-0.2.0 )
|
| 43 |
tiff? ( >=media-libs/tiff-3.6:0 )
|
| 44 |
"
|
| 45 |
DEPEND="${RDEPEND}
|
| 46 |
app-text/scrollkeeper
|
| 47 |
>=app-text/gnome-doc-utils-0.3.2
|
| 48 |
~app-text/docbook-xml-dtd-4.1.2
|
| 49 |
virtual/pkgconfig
|
| 50 |
sys-devel/gettext
|
| 51 |
dev-util/gtk-doc-am
|
| 52 |
>=dev-util/intltool-0.35"
|
| 53 |
|
| 54 |
ELTCONF="--portage"
|
| 55 |
|
| 56 |
# Needs dogtail and pyspi from http://fedorahosted.org/dogtail/
|
| 57 |
# Releases: http://people.redhat.com/zcerza/dogtail/releases/
|
| 58 |
RESTRICT="test"
|
| 59 |
|
| 60 |
pkg_setup() {
|
| 61 |
# Passing --disable-help would drop offline help, that would be inconsistent
|
| 62 |
# with helps of the most of Gnome apps that doesn't require network for that.
|
| 63 |
G2CONF="${G2CONF}
|
| 64 |
--disable-scrollkeeper
|
| 65 |
--disable-static
|
| 66 |
--disable-tests
|
| 67 |
--enable-pdf
|
| 68 |
--enable-comics
|
| 69 |
--enable-impress
|
| 70 |
--enable-thumbnailer
|
| 71 |
--with-smclient=xsmp
|
| 72 |
--with-platform=gnome
|
| 73 |
--with-gtk=2.0
|
| 74 |
--enable-help
|
| 75 |
$(use_enable dbus)
|
| 76 |
$(use_enable djvu)
|
| 77 |
$(use_enable dvi)
|
| 78 |
$(use_with gnome gconf)
|
| 79 |
$(use_with gnome-keyring keyring)
|
| 80 |
$(use_enable introspection)
|
| 81 |
$(use_enable nautilus)
|
| 82 |
$(use_enable postscript ps)
|
| 83 |
$(use_enable t1lib)
|
| 84 |
$(use_enable tiff)"
|
| 85 |
DOCS="AUTHORS ChangeLog NEWS README TODO"
|
| 86 |
}
|
| 87 |
|
| 88 |
src_prepare() {
|
| 89 |
# Check for NULL in synctex_backward_search preventing segfault, upstream bug #630845
|
| 90 |
epatch "${FILESDIR}"/${P}-libdocument-segfault.patch
|
| 91 |
|
| 92 |
# Fix multiple security issues with dvi backend, bug #350681
|
| 93 |
epatch "${FILESDIR}"/${P}-dvi-CVEs.patch
|
| 94 |
|
| 95 |
# Fix problem with some pk fonts, upstream bug #639746
|
| 96 |
epatch "${FILESDIR}"/${P}-pk-fonts.patch
|
| 97 |
|
| 98 |
# Fix libview crash, upstream bug #630999
|
| 99 |
epatch "${FILESDIR}"/${P}-libview-crash.patch
|
| 100 |
|
| 101 |
# Fix another security issue in the dvi-backend
|
| 102 |
epatch "${FILESDIR}"/${P}-dvi-security.patch
|
| 103 |
|
| 104 |
# Update poppler api
|
| 105 |
epatch "${FILESDIR}"/${P}-update-poppler.patch
|
| 106 |
|
| 107 |
# Stop the GtkSpinner when the loading window is hidden, upstream bug #637390
|
| 108 |
epatch "${FILESDIR}"/${P}-stop-spinner.patch
|
| 109 |
|
| 110 |
# Use a popup window instead of a toplevel for loading window, upstream bug #633475
|
| 111 |
epatch "${FILESDIR}"/${P}-use-popup.patch
|
| 112 |
|
| 113 |
# document: create_thumbnail_frame should return NULL when
|
| 114 |
epatch "${FILESDIR}"/${P}-create_thumbnail_frame-null.patch
|
| 115 |
|
| 116 |
# Fix .desktop categories, upstream bug #666346
|
| 117 |
epatch "${FILESDIR}"/${P}-desktop-categories.patch
|
| 118 |
|
| 119 |
# Fix intltoolize broken file, see upstream #577133
|
| 120 |
sed "s:'\^\$\$lang\$\$':\^\$\$lang\$\$:g" -i po/Makefile.in.in \
|
| 121 |
|| die "intltoolize sed failed"
|
| 122 |
|
| 123 |
# Do not depend on gnome-icon-theme, bug #326855
|
| 124 |
sed 's/gnome-icon-theme//' -i configure.ac configure || die "sed failed"
|
| 125 |
|
| 126 |
# Fix .desktop file so menu item shows up
|
| 127 |
epatch "${FILESDIR}"/${PN}-0.7.1-display-menu.patch
|
| 128 |
|
| 129 |
# gconf-2.m4 is needed for autoconf, bug #291339
|
| 130 |
if ! use gnome; then
|
| 131 |
cp "${FILESDIR}/gconf-2.m4" m4/ || die "Copying gconf-2.m4 failed!"
|
| 132 |
fi
|
| 133 |
|
| 134 |
# Fix underlinking with gold
|
| 135 |
epatch "${FILESDIR}"/${P}-gold.patch
|
| 136 |
|
| 137 |
intltoolize --force --copy --automake || die "intltoolize failed"
|
| 138 |
eautoreconf
|
| 139 |
gnome2_src_prepare
|
| 140 |
}
|