Package: evince # cannot upgrade past 2.22.2 until we get working libspectre # or lose PS support Version: 2.22.2 Revision: 10 Description: GNOME document viewer License: GPL Maintainer: The Gnome Core Team Depends: << atk1-shlibs (>= 1.32.0-1), cairo-shlibs (>= 1.12.14-1), dbus (>= 1.2.1-1), dbus-glib1.2-shlibs, dbus1.3-shlibs, fontconfig2-shlibs (>= 2.10.0-1), freetype219-shlibs (>= 2.10.2-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), gtk+2 (>= 2.18.0-1), gtk+2-shlibs (>= 2.18.0-1), libdjvulibre21-shlibs, libgettext8-shlibs, libglade2-shlibs (>= 2.6.4-6), libkpathsea6-shlibs, libnautilus-ext2-shlibs (>= 2.28.0-1), libtiff6-shlibs, libxml2-shlibs (>= 2.9.1-1), pango1-xft2-ft219-shlibs (>= 1.24.5-4), poppler8-glib-shlibs (>= 0.22.5-1), rarian-compat, x11-shlibs << Suggests: tetex-base BuildDepends: << atk1 (>= 1.32.0-1), autoconf2.6, automake1.15, cairo (>= 1.12.14-1), dbus-glib1.2-dev, dbus1.3-dev, fink (>= 0.32), fink-package-precedence, fontconfig2-dev (>= 2.10.0-1), freetype219 (>= 2.10.2-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), gtk+2-dev (>= 2.18.0-1), gtk-doc (>= 1.13-5), intltool40, libdjvulibre21-dev, libgettext8-dev, libglade2 (>= 2.6.4-6), libiconv-dev, libkpathsea6, libnautilus-ext2-dev (>= 2.28.0-1), libtiff6, libtool2, libxml2 (>= 2.9.1-1), pango1-xft2-ft219-dev (>= 1.24.5-4), pkgconfig (>= 0.23), poppler8-glib (>= 0.22.5-1), x11-dev << Source: mirror:gnome:sources/%n/2.22/%n-%v.tar.bz2 Source-Checksum: SHA256(4dcbdbd253b1978dcd70452780d7804ade912f4ede90f122f30d5322f53c5c3e) GCC: 4.0 ConfigureParams: --enable-dependency-tracking --disable-schemas-install --disable-scrollkeeper --enable-dvi PKG_CONFIG_PATH="%p/lib/glib-2.0/pkgconfig-strict:$PKG_CONFIG_PATH" --disable-gtk-doc --disable-static --enable-pixbuf --enable-impress PatchFile: %n.patch PatchFile-MD5: df49e2b2c807d07520184d02223135ed PatchFile2: evince-gnome2egg.patch PatchFile2-MD5: c1d160e719dc2f2b174dfc1a12b233de PatchScript: << # upgrades for newer-poppler's API based on upstream # Kill libgnome/libgnomeui %{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.ac ### pass -lintl perl -pi -e 's|\$\(LIB_LIBS\)|$& \$\(INTLLIBS\)|g' libdocument/Makefile.am ### pass -lX11 #perl -pi -e 's|^LIBS = |LIBS = -lX11|g' shell/Makefile.in #perl -pi -e 's|^libtotemscrsaver_la_LIBADD = .*|$& -lX11|g' cut-n-paste/totem-screensaver/Makefile.in echo "libtotemscrsaver_la_LIBADD = -lX11" >> cut-n-paste/totem-screensaver/Makefile.am # 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: << autoreconf -fi ./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: << Has C++ in low-level sources, so need to force use of g++ for linking higher-level objects. 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++ Switch away from libgnome, based on upstream: 83a7a11ba109b8aee5cdc047dec8b93967ccfc0e << DescPort: << libpsdocument directly uses libX11 symbols <<