Package: evince # cannot upgrade past 2.22.2 until we get working libspectre # or lose PS support Version: 2.22.2 Revision: 6 Description: GNOME document viewer License: GPL Maintainer: The Gnome Core Team Depends: << atk1-shlibs (>= 1.28.0-1), cairo-shlibs (>= 1.12.8-1), dbus (>= 1.2.1-1), dbus-glib1.2-shlibs, dbus1.3-shlibs, fontconfig2-shlibs (>= 2.10.0-1), freetype219-shlibs (>= 2.4.10-1), gconf2 (>= 2.28.0-1), gconf2-shlibs (>= 2.28.0-1), glib2-shlibs (>= 2.22.0-1), ghostscript (>= 8.61-1) | system-ghostscript8, gnome-icon-theme, gnome-keyring-shlibs (>= 2.28.0-1), gnome-vfs2-unified-shlibs (>= 1:2.24.2-1), gtk+2 (>= 2.18.0-1), gtk+2-shlibs (>= 2.18.0-1), libart2-shlibs, libbonobo2-shlibs (>= 2.24.2-1), libbonoboui2-shlibs (>= 2.24.2-1), libdjvulibre21-shlibs, libgettext8-shlibs, libglade2-shlibs (>= 2.6.4-6), libgnome2-shlibs (>= 2.28.0-1), libgnomecanvas2-shlibs (>= 2.26.0-3), libgnomeui2-shlibs (>= 2.24.2-2), libkpathsea6-shlibs, libnautilus-ext2-shlibs (>= 2.28.0-1), libtiff5-shlibs, libxml2-shlibs (>= 2.9.1-1), orbit2-shlibs (>= 2.14.17-2), pango1-xft2-ft219-shlibs (>= 1.24.5-4), poppler8-glib-shlibs (>= 0.22.5-1), popt-shlibs, rarian-compat, tetex-base, x11-shlibs << BuildDepends: << atk1 (>= 1.28.0-1), cairo (>= 1.12.8-1), dbus-glib1.2-dev, dbus1.3-dev, fink (>= 0.28), fink-package-precedence, fontconfig2-dev (>= 2.10.0-1), freetype219 (>= 2.4.10-1), gconf2-dev (>= 2.28.0-1), gettext-tools, glib2-dev (>= 2.22.0-1), gnome-common (>= 2.28.0-1), gnome-doc-utils (>= 0.18.1-1), gnome-keyring-dev (>= 2.28.0-1), gnome-vfs2-unified-dev (>= 1:2.24.2-1), gtk+2-dev (>= 2.18.0-1), gtk-doc (>= 1.13-5), intltool40, libart2, libbonobo2-dev (>= 2.24.2-1), libbonoboui2-dev (>= 2.24.2-1), libdjvulibre21-dev, libgettext8-dev, libglade2 (>= 2.6.4-6), libgnome2-dev (>= 2.28.0-1), libgnomecanvas2-dev (>= 2.26.0-3), libgnomeui2-dev (>= 2.24.2-2), libiconv-dev, libkpathsea6, libnautilus-ext2-dev (>= 2.28.0-1), libtiff5, libtool2, libxml2 (>= 2.9.1-1), orbit2-dev (>= 2.14.17-2), pango1-xft2-ft219-dev (>= 1.24.5-4), pkgconfig (>= 0.23), poppler8-glib (>= 0.22.5-1), popt, x11-dev << Source: mirror:gnome:sources/%n/2.22/%n-%v.tar.bz2 Source-MD5: 3661f901ab40cee44d5350a045a8bdb1 GCC: 4.0 ConfigureParams: --enable-dependency-tracking --disable-schemas-install --disable-scrollkeeper --enable-dvi --mandir=%p/share/man PKG_CONFIG_PATH="%p/lib/glib-2.0/pkgconfig-strict:$PKG_CONFIG_PATH" --disable-gtk-doc --disable-static PatchFile: %n.patch PatchFile-MD5: 49ea686e360d4043122f3608c2d4d6a5 PatchScript: << # upgrades for newer-poppler's API based on upstream %{default_script} find . -name Makefile.in | xargs perl -pi -e 's,LINK = \$\(LIBTOOL\) --tag=CC,LINK = \$\(LIBTOOL\) --tag=CXX,' perl -pi -e 's,/usr/share/gtk-doc/html,%p/share/gtk-doc/html,g' help/reference/html/*.html # avoid detecting spectre (might be in fink eventually) perl -pi -e 's/(SPECTRE_REQUIRED\s*=).*/${1}99999.FORCE.NONDETECT/' configure ### pass -lintl perl -pi -e 's|\$\(LIBS\)|$& \$\(INTLLIBS\)|g' libdocument/Makefile.in ### pass -lX11 perl -pi -e 's|^LIBS = |LIBS = -L/usr/X11R6/lib -lX11|g' shell/Makefile.in # poppler announces itself as major.minor.micro via its .h, # don't bother trying to parse from its pc... perl -ni -e 'print unless /POPPLER_.*_VERSION/' config.h.in # ...and definitely don't parse that as 0.major.minor perl -pi -e 's/POPPLER_MINOR_VERSION/POPPLER_MICRO_VERSION/g' backend/pdf/ev-poppler.cc perl -pi -e 's/POPPLER_MAJOR_VERSION/POPPLER_MINOR_VERSION/g' backend/pdf/ev-poppler.cc << CompileScript: << #!/bin/sh -ev ./configure %c make -w CCLD=g++ fink-package-precedence . << InstallScript: << make install DESTDIR="%d" ### package for now is runtime only, so remove headers rm -r %i/include << DocFiles: README COPYING ConfFiles: << %p/etc/gconf/schemas/evince.schemas %p/etc/gconf/schemas/evince-thumbnailer.schemas %p/etc/gconf/schemas/evince-thumbnailer-comics.schemas %p/etc/gconf/schemas/evince-thumbnailer-djvu.schemas %p/etc/gconf/schemas/evince-thumbnailer-dvi.schemas %p/etc/gconf/schemas/evince-thumbnailer-ps.schemas << Shlibs: !%p/lib/libevbackend.0.dylib PostInstScript: << if [ configure = "$1" ]; then scrollkeeper-update -q export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` gconftool-2 --makefile-install-rule %p/etc/gconf/schemas/evince.schemas >/dev/null gconftool-2 --makefile-install-rule %p/etc/gconf/schemas/evince-thumbnailer.schemas >/dev/null gconftool-2 --makefile-install-rule %p/etc/gconf/schemas/evince-thumbnailer-dvi.schemas >/dev/null gconftool-2 --makefile-install-rule %p/etc/gconf/schemas/evince-thumbnailer-ps.schemas >/dev/null gtk-update-icon-cache -f -t %p/share/icons/hicolor fi << PostRmScript: << if [ upgrade != "$1" ]; then scrollkeeper-update -q gtk-update-icon-cache -f -t %p/share/icons/hicolor fi << Homepage: http://www.gnome.org/projects/evince/ DescDetail: << Evince is a document viewer for multiple document formats. It currently supports pdf, postscript, djvu, tiff and dvi. The goal of evince is to replace the multiple document viewers that exist on the GNOME Desktop with a single simple application. << DescPackaging: << Should enable pixbuf or impress? Has C++ in low-level sources, so need to force use of g++ for linking higher-level objects. Misc back-ends are left disabled due to inertia. Makes system() calls to gs. Future versions will use libspectre (which links libgs) instead, but libspectre as of 0.2.2 does not seem viable on OS X. Regenerating gtk-doc files The Right Way (--enable-gtk-doc) is very slow, so just patch the prefix in the bad URLs in the existing generated files. Also would need to patch evince's scanner program to be linked with g++ << DescPort: << libpsdocument directly uses libX11 symbols <<