diff options
author | Aleksey Lim <alsroot@member.fsf.org> | 2009-04-24 00:00:36 (GMT) |
---|---|---|
committer | Aleksey Lim <alsroot@member.fsf.org> | 2009-04-24 00:00:36 (GMT) |
commit | 402dfa6672a91375e9fdd463dda98a405a3aad8a (patch) | |
tree | 6a142169ebf7c52d90c6fe9d1949b1884c5d0051 | |
parent | 4c237a7d6ed9b1de74b8e7a9f64197291cc40859 (diff) |
Add python-evince
-rw-r--r-- | deps/python-evince/SOURCES/olpc-2837.patch | 92 | ||||
-rw-r--r-- | deps/python-evince/SPECS/python-evince.spec | 93 |
2 files changed, 185 insertions, 0 deletions
diff --git a/deps/python-evince/SOURCES/olpc-2837.patch b/deps/python-evince/SOURCES/olpc-2837.patch new file mode 100644 index 0000000..6860498 --- /dev/null +++ b/deps/python-evince/SOURCES/olpc-2837.patch @@ -0,0 +1,92 @@ +diff --git a/python/evince.defs b/python/evince.defs +index 3329431..60a5a1c 100644 +--- a/python/evince.defs ++++ b/python/evince.defs +@@ -342,6 +342,31 @@ + (return-type "none") + ) + ++(define-method handle_link ++ (of-object "EvView") ++ (c-name "ev_view_handle_link") ++ (return-type "none") ++ (parameters ++ '("EvLink*" "link") ++ ) ++) ++ ++;; From ev-link.h ++ ++(define-object PageCache ++ (in-module "Ev") ++ (c-name "EvLink") ++ (parent "GObject") ++ (gtype-id "EV_TYPE_LINK") ++) ++ ++(define-method get_page ++ (of-object "EvLink") ++ (c-name "ev_link_get_page") ++ (return-type "gint") ++) ++ ++ + ;; From ev-document.h + + (define-interface Document +@@ -437,6 +462,32 @@ + + ;; XXX missing ev_page_new + ++;; From ev-document-links.h ++ ++(define-interface DocumentLinks ++ (in-module "Ev") ++ (c-name "EvDocumentLinks") ++ (gtype-id "EV_TYPE_DOCUMENT_LINKS") ++ (prerequisite "GObject") ++) ++ ++(define-function ev_document_links_get_type ++ (c-name "ev_document_links_get_type") ++ (return-type "GType") ++) ++ ++(define-method has_document_links ++ (of-object "EvDocumentLinks") ++ (c-name "ev_document_links_has_document_links") ++ (return-type "gboolean") ++) ++ ++(define-method get_links_model ++ (of-object "EvDocumentLinks") ++ (c-name "ev_document_links_get_links_model") ++ (return-type "GtkTreeModel*") ++) ++ + ;; From ev-page-cache.h + ;; XXX missing lots of methods on PageCache + +diff --git a/python/evince.override b/python/evince.override +index 7a164af..9d27d79 100644 +--- a/python/evince.override ++++ b/python/evince.override +@@ -8,8 +8,10 @@ headers + #include <ev-view.h> + #include <ev-document-find.h> + #include <ev-document-factory.h> ++#include <ev-document-links.h> + #include <ev-document.h> + #include <ev-page-cache.h> ++#include <ev-link.h> + #include <ev-jobs.h> + #include <ev-job-scheduler.h> + +@@ -19,6 +21,7 @@ modulename ev + import gobject.GObject as PyGObject_Type + import gtk.Widget as PyGtkWidget_Type + import gtk.ScrolledWindow as PyGtkScrolledWindow_Type ++import gtk.TreeModel as PyGtkTreeModel_Type + %% + override ev_view_find_changed kwargs + /* This function usually takes a GList of search results and hence must be diff --git a/deps/python-evince/SPECS/python-evince.spec b/deps/python-evince/SPECS/python-evince.spec new file mode 100644 index 0000000..65be4f0 --- /dev/null +++ b/deps/python-evince/SPECS/python-evince.spec @@ -0,0 +1,93 @@ +Name: python-evince +Version: 2.24.1 +Release: 1 +Summary: Python interface for Evince document viewer +License: GPL +Group: Development/Python +Url: http://www.gnome.org/projects/evince/ + +# git clone git://dev.laptop.org/users/dsd/sugar-evince sugar-evince && cd sugar-evince && git reset --hard d9b354a9318b6a99fa7ae185495b94431ab142c9 +Source: python-evince-2.24.1-20081104.tar.bz2 + +Patch: olpc-2837.patch + +Requires: gnome-icon-theme >= 2.17.1 +Requires: python + +BuildRequires: zlib-devel +BuildRequires: libxml2-devel >= 2.5 +BuildRequires: t1lib-devel >= 5 +BuildRequires: gnome-common >= 2 +BuildRequires: libglade2-devel >= 2 +BuildRequires: intltool >= 0.35 +BuildRequires: python-gtk-devel >= 2 +BuildRequires: gconf2-devel >= 2 +BuildRequires: gtk2-devel >= 2.10.0 +BuildRequires: gnome-icon-theme >= 2.17.1 +BuildRequires: python-devel +BuildRequires: automake >= 1.9 +BuildRequires: pkgconfig >= 0.9 +BuildRequires: libjpeg-devel +BuildRequires: libpoppler-glib-devel >= 0.8 +BuildRequires: cairo-devel +BuildRequires: dbus-1-glib-devel >= 0.71 +BuildRequires: libtiff-devel >= 3.6 +BuildRequires: texlive-bin-devel +BuildRequires: texlive-devel +BuildRequires: ghostscript-fonts-std +BuildRequires: ghostscript-x11 +BuildRequires: libdjvulibre-devel +BuildRequires: libspectre-devel + +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +%description +Evince is a document viewer capable of displaying multiple and single +page document formats like PDF and Postscript. + +%prep +%setup -q -n sugar-evince +%patch -p1 + +%build +sed -i '/^GTK_DOC_CHECK/d' configure.ac +sed -i '/^GNOME_DOC_INIT/d' configure.ac +[ -f configure ] || NOCONFIGURE=1 sh autogen.sh + +%configure \ + --enable-dbus \ + --enable-dvi \ + --enable-djvu\ + --enable-t1lib \ + --enable-tiff \ + --enable-impress \ + --enable-comics \ + --enable-pixbuf \ + --disable-static \ + --disable-binary \ + --enable-embed \ + --without-libgnome \ + --disable-scrollkeeper \ + --disable-schemas-install \ + --without-print \ + --disable-thumbnailer \ + --without-keyring \ + --disable-nautilus +make + +%install +%makeinstall +rm %{buildroot}/%{_libdir}/*.so +rm -rf %{buildroot}/%{_includedir}/* + +%clean +rm -rf %{buildroot} + +%files +%defattr(-,root,root,-) +%{_libdir}/* +%(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")/evince +%{_datadir}/pygtk/2.0/defs/*.defs +%doc AUTHORS COPYING ChangeLog MAINTAINERS NEWS NOTES README + +%changelog |