diff options
Diffstat (limited to 'app-text')
-rw-r--r-- | app-text/Manifest.gz | bin | 49084 -> 49085 bytes | |||
-rw-r--r-- | app-text/atril/Manifest | 1 | ||||
-rw-r--r-- | app-text/atril/files/atril-1.24.0-make-synctex-optional.patch | 526 | ||||
-rw-r--r-- | app-text/podofo/Manifest | 3 | ||||
-rw-r--r-- | app-text/podofo/podofo-0.9.8-r1.ebuild | 118 |
5 files changed, 121 insertions, 527 deletions
diff --git a/app-text/Manifest.gz b/app-text/Manifest.gz Binary files differindex bfb10c1f0e9a..76dbc7eafdd7 100644 --- a/app-text/Manifest.gz +++ b/app-text/Manifest.gz diff --git a/app-text/atril/Manifest b/app-text/atril/Manifest index 5b33f7e2f494..f2f09a3ea51b 100644 --- a/app-text/atril/Manifest +++ b/app-text/atril/Manifest @@ -1,4 +1,3 @@ -AUX atril-1.24.0-make-synctex-optional.patch 16815 BLAKE2B 13c65b9dbf1afa43aa32d147462c90dbad94366b1795b1409746cde2991180a3b2a3266908469b2ff5a4b3107b457ae86a3cb3bc058384877f885a512fabab2d SHA512 cb4493eca4e0bc1bd4a9bdd4540033aad3318023f6101f5548c14c7c7134ce6a4618849df44573af39af7d561ebca4b9b549668e81c50c7432a525db7d0f620b DIST atril-1.26.0.tar.xz 1986160 BLAKE2B 40de33749113144c49341cf8249bd20de37c3d64f3daa865dfe2bcad117e1c2b5aae2aef3b4e0199fd2656b17af236e2a863ef97933decc5072e3419219154e4 SHA512 9c4e8b1c45959136c8fc4c5db47117e45e8afca8be2294418e6c1a0f8098c162ccaa4a60e5baea34db91d45d345a3953afe95281782986e7046b87a34c8f7dbd EBUILD atril-1.26.0-r4.ebuild 2915 BLAKE2B 4c41e4dbac05897930f1305235d9faad916179baa817e881e646d8a8ead194e6f0ca9de8094435f7c85c286179418df0d277c28b8de92fd6324a64d9ac9a0829 SHA512 fc4c12a8f8a0615d7e2ee7628d73ebb9b3f21e75a68a6c2c91017287bfb5a82a3c6e260099609b8c092fb23843697aabfa38af50cd2b152c5c7857a1876cac49 MISC metadata.xml 888 BLAKE2B ce41dbf3197d9cf65fbb39ee5123a6c93979066342a83bab4c28ee65ec41adbe68c787165edc4bd61c2169909c499864a10d6459ba99e80a8fb83c19637b54cb SHA512 b375f7fcc127fd5ff26c0e2516b8d6702627296ea2a1f124b669bff788c4d1adbf0d0052e015063aeba0c1f13fff762effe050729f9ee44cf2e568dc4a80e44d diff --git a/app-text/atril/files/atril-1.24.0-make-synctex-optional.patch b/app-text/atril/files/atril-1.24.0-make-synctex-optional.patch deleted file mode 100644 index 7b2d3a9c372e..000000000000 --- a/app-text/atril/files/atril-1.24.0-make-synctex-optional.patch +++ /dev/null @@ -1,526 +0,0 @@ -From ed650322792514d69ae54eef4cb105cac1dcb4b8 Mon Sep 17 00:00:00 2001 -From: Oz Tiram <oz.tiram@gmail.com> -Date: Fri, 7 Feb 2020 21:57:10 +0100 -Subject: [PATCH 1/5] Make synctex optional - -Not everyone who reads PDF's is necessarily a LaTeX user. -These changes allow users to install atril without the huge bagage -of tex-live on systems where synctex isn't provided as a stand alone -library. ---- - configure.ac | 25 +++++++++++++++++-------- - libdocument/ev-document.c | 16 ++++++++++++---- - libview/ev-view.c | 9 ++++++++- - shell/ev-window.c | 5 +++++ - 4 files changed, 42 insertions(+), 13 deletions(-) - -diff --git a/configure.ac b/configure.ac -index 6fee0ff6e..e7a63feed 100644 ---- a/configure.ac -+++ b/configure.ac -@@ -361,15 +361,25 @@ AC_SUBST([GIRTYPELIBDIR]) - AM_CONDITIONAL([ENABLE_INTROSPECTION],[test "$enable_introspection" = "yes"]) - - dnl ================== libsynctex =========================================== -+AC_ARG_ENABLE([synctex], -+ [AS_HELP_STRING([--disable-synctex], [Disable support for synctex])], -+ [], -+ [enable_synctex=yes]) - --PKG_CHECK_MODULES(SYNCTEX, [synctex >= $SYNCTEX_REQUIRED], has_synctex=yes, has_synctex=no) - --dnl not found? use internal code copy. --if test "x$has_synctex" = "xno"; then -- AC_MSG_ERROR("SyncTeX support is disabled since library version $SYNCTEX_REQUIRED or newer not found") -+if test "$enable_synctex" = "yes"; then -+ AC_DEFINE([ENABLE_SYNCTEX],[1],[Define if synctex support is enabled]) -+ PKG_CHECK_MODULES(SYNCTEX, [synctex >= $SYNCTEX_REQUIRED], has_synctex=yes, has_synctex=no) -+ dnl not found? use internal code copy. -+ if test "x$has_synctex" = "xno"; then -+ AC_MSG_ERROR("SyncTeX support is disabled since library version $SYNCTEX_REQUIRED or newer not found") -+ fi -+ AC_SUBST(SYNCTEX_LIBS) -+ AC_SUBST(SYNCTEX_CFLAGS) - fi --AC_SUBST(SYNCTEX_LIBS) --AC_SUBST(SYNCTEX_CFLAGS) -+ -+AM_CONDITIONAL([ENABLE_SYNCTEX], [test "$enable_synctex" = "yes"]) -+ - - dnl ================== portability checks =========================================== - -@@ -776,6 +786,7 @@ Configure summary: - Tests...............: $enable_tests - - PDF Backend.........: $enable_pdf -+ Synctex enabled.....: $enable_synctex - PostScript Backend..: $enable_ps - TIFF Backend........: $enable_tiff - DJVU Backend........: $enable_djvu -@@ -784,6 +795,4 @@ Configure summary: - Comics Backend......: $enable_comics - XPS Backend.........: $enable_xps - ePub Backend........: $have_webkit -- -- SyncTeX.............: $has_synctex - " -diff --git a/libdocument/ev-document.c b/libdocument/ev-document.c -index b713a6717..be082aebb 100644 ---- a/libdocument/ev-document.c -+++ b/libdocument/ev-document.c -@@ -25,7 +25,9 @@ - #include <string.h> - - #include "ev-document.h" -+#ifdef ENABLE_SYNCTEX - #include "synctex_parser.h" -+#endif - #include "ev-file-helpers.h" - - typedef struct _EvPageSize -@@ -53,8 +55,9 @@ struct _EvDocumentPrivate - gchar **page_labels; - EvPageSize *page_sizes; - EvDocumentInfo *info; -- -+#ifdef ENABLE_SYNCTEX - synctex_scanner_p synctex_scanner; -+#endif - }; - - static gint _ev_document_get_n_pages (EvDocument *document); -@@ -124,12 +127,12 @@ ev_document_finalize (GObject *object) - ev_document_info_free (document->priv->info); - document->priv->info = NULL; - } -- -+#ifdef ENABLE_SYNCTEX - if (document->priv->synctex_scanner) { - synctex_scanner_free (document->priv->synctex_scanner); - document->priv->synctex_scanner = NULL; - } -- -+#endif - G_OBJECT_CLASS (ev_document_parent_class)->finalize (object); - } - -@@ -137,8 +140,9 @@ static void - ev_document_init (EvDocument *document) - { - document->priv = ev_document_get_instance_private (document); -+#ifdef ENABLE_SYNCTEX - document->synctex_version = SYNCTEX_VERSION_STRING; -- -+#endif - /* Assume all pages are the same size until proven otherwise */ - document->priv->uniform = TRUE; - /* Assume that the document is not a web document*/ -@@ -336,6 +340,7 @@ ev_document_load (EvDocument *document, - } - - priv->info = _ev_document_get_info (document); -+#ifdef ENABLE_SYNCTEX - if (_ev_document_support_synctex (document)) { - gchar *filename; - -@@ -346,6 +351,7 @@ ev_document_load (EvDocument *document, - g_free (filename); - } - } -+#endif - } - - return retval; -@@ -388,6 +394,7 @@ _ev_document_support_synctex (EvDocument *document) - return klass->support_synctex ? klass->support_synctex (document) : FALSE; - } - -+#ifdef ENABLE_SYNCTEX - gboolean - ev_document_has_synctex (EvDocument *document) - { -@@ -492,6 +499,7 @@ ev_document_synctex_forward_search (EvDocument *document, - - return result; - } -+#endif /* ENABLE_SYNCTEX */ - - static gint - _ev_document_get_n_pages (EvDocument *document) -diff --git a/libview/ev-view.c b/libview/ev-view.c -index a195ba21f..e98582d34 100644 ---- a/libview/ev-view.c -+++ b/libview/ev-view.c -@@ -3210,6 +3210,7 @@ ev_view_remove_annotation (EvView *view, - g_object_unref (annot); - } - -+#ifdef ENABLE_SYNCTEX - static gboolean - ev_view_synctex_backward_search (EvView *view, - gdouble x, -@@ -3235,6 +3236,7 @@ ev_view_synctex_backward_search (EvView *view, - - return FALSE; - } -+#endif - - /* Caret navigation */ - #define CURSOR_ON_MULTIPLIER 2 -@@ -4078,8 +4080,10 @@ ev_view_draw (GtkWidget *widget, - show_annotation_windows (view, i); - if (page_ready && view->focused_element) - draw_focus (view, cr, i, &clip_rect); -+#ifdef ENABLE_SYNCTEX - if (page_ready && view->synctex_result) - highlight_forward_search_results (view, cr, i); -+#endif - } - - if (GTK_WIDGET_CLASS (ev_view_parent_class)->draw) -@@ -4472,9 +4476,10 @@ ev_view_button_press_event (GtkWidget *widget, - EvFormField *field; - EvMapping *link; - gint page; -- -+#ifdef ENABLE_SYNCTEX - if (event->state & GDK_CONTROL_MASK) - return ev_view_synctex_backward_search (view, event->x , event->y); -+#endif - - if (EV_IS_SELECTION (view->document) && view->selection_info.selections) { - if (event->type == GDK_3BUTTON_PRESS) { -@@ -7522,6 +7527,7 @@ ev_view_find_cancel (EvView *view) - view->find_pages = NULL; - } - -+#ifdef ENABLE_SYNCTEX - /*** Synctex ***/ - void - ev_view_highlight_forward_search (EvView *view, -@@ -7549,6 +7555,7 @@ ev_view_highlight_forward_search (EvView *view, - ensure_rectangle_is_visible (view, &view_rect); - gtk_widget_queue_draw (GTK_WIDGET (view)); - } -+#endif /* ENABLE_SYNCTEX */ - - /*** Selections ***/ - static gboolean -diff --git a/shell/ev-window.c b/shell/ev-window.c -index e2dfbf727..bffc9a7f9 100644 ---- a/shell/ev-window.c -+++ b/shell/ev-window.c -@@ -7736,6 +7736,8 @@ ev_window_emit_doc_loaded (EvWindow *window) - ev_atril_window_emit_document_loaded (window->priv->skeleton, window->priv->uri); - } - -+ -+#ifdef ENABLE_SYNCTEX - static gboolean - handle_sync_view_cb (EvAtrilWindow *object, - GDBusMethodInvocation *invocation, -@@ -7756,6 +7758,7 @@ handle_sync_view_cb (EvAtrilWindow *object, - - return TRUE; - } -+#endif - #endif /* ENABLE_DBUS */ - - static gboolean -@@ -7816,9 +7819,11 @@ ev_window_init (EvWindow *ev_window) - ev_window->priv->dbus_object_path, - &error)) { - ev_window->priv->skeleton = skeleton; -+#ifdef ENABLE_SYNCTEX - g_signal_connect (skeleton, "handle-sync-view", - G_CALLBACK (handle_sync_view_cb), - ev_window); -+#endif - } else { - g_printerr ("Failed to register bus object %s: %s\n", - ev_window->priv->dbus_object_path, error->message); - -From c141d2c6ae0b4ce5824817f9aa2f98d5edbf7756 Mon Sep 17 00:00:00 2001 -From: Oz N Tiram <oz.tiram@gmail.com> -Date: Thu, 11 Jun 2020 09:15:28 +0200 -Subject: [PATCH 2/5] Fix -Wunused-function warnings caused by - --enable-synctex=no - ---- - libdocument/ev-document.c | 5 ++++- - libview/ev-view-private.h | 3 ++- - libview/ev-view.c | 10 ++++++++++ - 3 files changed, 16 insertions(+), 2 deletions(-) - -diff --git a/libdocument/ev-document.c b/libdocument/ev-document.c -index be082aebb..f7c878956 100644 ---- a/libdocument/ev-document.c -+++ b/libdocument/ev-document.c -@@ -68,7 +68,9 @@ static void _ev_document_get_page_size (EvDocument *document, - static gchar *_ev_document_get_page_label (EvDocument *document, - EvPage *page); - static EvDocumentInfo *_ev_document_get_info (EvDocument *document); -+#ifdef ENABLE_SYNCTEX - static gboolean _ev_document_support_synctex (EvDocument *document); -+#endif - - static GMutex ev_doc_mutex; - static GMutex ev_fc_mutex; -@@ -386,6 +388,8 @@ ev_document_get_page (EvDocument *document, - return klass->get_page (document, index); - } - -+ -+#ifdef ENABLE_SYNCTEX - static gboolean - _ev_document_support_synctex (EvDocument *document) - { -@@ -394,7 +398,6 @@ _ev_document_support_synctex (EvDocument *document) - return klass->support_synctex ? klass->support_synctex (document) : FALSE; - } - --#ifdef ENABLE_SYNCTEX - gboolean - ev_document_has_synctex (EvDocument *document) - { -diff --git a/libview/ev-view-private.h b/libview/ev-view-private.h -index f10593953..4f6179e4a 100644 ---- a/libview/ev-view-private.h -+++ b/libview/ev-view-private.h -@@ -125,8 +125,9 @@ struct _EvView { - GList **find_pages; - gint find_result; - gboolean jump_to_find_result; -+#ifdef ENABLE_SYNCTEX - gboolean highlight_find_results; -- -+#endif - EvDocumentModel *model; - EvPixbufCache *pixbuf_cache; - gsize pixbuf_cache_size; -diff --git a/libview/ev-view.c b/libview/ev-view.c -index e98582d34..7c9281cef 100644 ---- a/libview/ev-view.c -+++ b/libview/ev-view.c -@@ -177,12 +177,14 @@ static void ev_view_remove_all (EvView - static AtkObject *ev_view_get_accessible (GtkWidget *widget); - - /*** Drawing ***/ -+#if ENABLE_SYNCTEX - static void highlight_find_results (EvView *view, - cairo_t *cr, - int page); - static void highlight_forward_search_results (EvView *view, - cairo_t *cr, - int page); -+#endif - static void draw_one_page (EvView *view, - gint page, - cairo_t *cr, -@@ -4074,8 +4076,10 @@ ev_view_draw (GtkWidget *widget, - - if (page_ready && should_draw_caret_cursor (view, i)) - draw_caret_cursor (view, cr); -+#ifdef ENABLE_SYNCTEX - if (page_ready && view->find_pages && view->highlight_find_results) - highlight_find_results (view, cr, i); -+#endif - if (page_ready && EV_IS_DOCUMENT_ANNOTATIONS (view->document)) - show_annotation_windows (view, i); - if (page_ready && view->focused_element) -@@ -5654,6 +5658,7 @@ draw_rubberband (EvView *view, - } - - -+#ifdef ENABLE_SYNCTEX - static void - highlight_find_results (EvView *view, cairo_t *cr, int page) - { -@@ -5698,6 +5703,7 @@ highlight_forward_search_results (EvView *view, cairo_t *cr, int page) - cairo_stroke (cr); - cairo_restore (cr); - } -+#endif - - static void - draw_surface (cairo_t *cr, -@@ -6497,7 +6503,9 @@ ev_view_init (EvView *view) - view->page_layout = EV_PAGE_LAYOUT_SINGLE; - view->pending_scroll = SCROLL_TO_KEEP_POSITION; - view->jump_to_find_result = TRUE; -+#ifdef ENABLE_SYNCTEX - view->highlight_find_results = FALSE; -+#endif - view->caret_enabled = FALSE; - view->cursor_page = 0; - view->zoom_center_x = -1; -@@ -7517,7 +7525,9 @@ ev_view_find_search_changed (EvView *view) - void - ev_view_find_set_highlight_search (EvView *view, gboolean value) - { -+#ifdef ENABLE_SYNCTEX - view->highlight_find_results = value; -+#endif - gtk_widget_queue_draw (GTK_WIDGET (view)); - } - - -From f0054e7011c5cf6ac814ce1c6b42ce1713b25dba Mon Sep 17 00:00:00 2001 -From: Oz N Tiram <oz.tiram@gmail.com> -Date: Thu, 11 Jun 2020 10:21:00 +0200 -Subject: [PATCH 3/5] Improved detection of --enable/disable synctex option - ---- - configure.ac | 9 ++++++--- - 1 file changed, 6 insertions(+), 3 deletions(-) - -diff --git a/configure.ac b/configure.ac -index e7a63feed..ee33f27d9 100644 ---- a/configure.ac -+++ b/configure.ac -@@ -362,9 +362,12 @@ AM_CONDITIONAL([ENABLE_INTROSPECTION],[test "$enable_introspection" = "yes"]) - - dnl ================== libsynctex =========================================== - AC_ARG_ENABLE([synctex], -- [AS_HELP_STRING([--disable-synctex], [Disable support for synctex])], -- [], -- [enable_synctex=yes]) -+ [--enable-synctex enable support for synctex)], -+ [case "${enableval}" in -+ yes) synctex=true ;; -+ no) synctex=false;; -+ *) AC_MSG_ERROR([bad value ${enableval} for --enable-synctex]) ;; -+ esac],[enable_synctex=yes]) - - - if test "$enable_synctex" = "yes"; then - -From 37d80d4c862cbd03525fe4393f09b92d1dff8f56 Mon Sep 17 00:00:00 2001 -From: Oz N Tiram <oz.tiram@gmail.com> -Date: Thu, 11 Jun 2020 10:23:15 +0200 -Subject: [PATCH 4/5] Use ENABLE_SYNCTEX in libdocument/Makefile.am - ---- - libdocument/Makefile.am | 9 +++++++-- - 1 file changed, 7 insertions(+), 2 deletions(-) - -diff --git a/libdocument/Makefile.am b/libdocument/Makefile.am -index f527f0a4a..d1db419c0 100644 ---- a/libdocument/Makefile.am -+++ b/libdocument/Makefile.am -@@ -102,11 +102,14 @@ libatrildocument_la_CPPFLAGS = \ - - libatrildocument_la_CFLAGS = \ - $(LIBDOCUMENT_CFLAGS) \ -- $(SYNCTEX_CFLAGS) \ - $(WARN_CFLAGS) \ - $(DISABLE_DEPRECATED) \ - $(AM_CFLAGS) - -+if ENABLE_SYNCTEX -+libatrildocument_la_CFLAGS += $(SYNCTEX_CFLAGS) -+endif -+ - libatrildocument_la_LDFLAGS = \ - -version-info $(EV_DOCUMENT_LT_VERSION_INFO) \ - -no-undefined \ -@@ -116,9 +119,11 @@ libatrildocument_la_LDFLAGS = \ - libatrildocument_la_LIBADD = \ - $(LIBDOCUMENT_LIBS) \ - $(GMODULE_LIBS) \ -- $(SYNCTEX_LIBS) \ - $(ZLIB_LIBS) - -+if ENABLE_SYNCTEX -+libatrildocument_la_LIBADD += $(SYNCTEX_LIBS) -+endif - - BUILT_SOURCES = \ - ev-document-type-builtins.c \ - -From 87c8ee575d3ec50a278c5e428d066341ffd3295d Mon Sep 17 00:00:00 2001 -From: Oz N Tiram <oz.tiram@gmail.com> -Date: Sun, 14 Jun 2020 17:09:56 +0200 -Subject: [PATCH 5/5] Re-enable highlight_find_results - ---- - libview/ev-view-private.h | 2 -- - libview/ev-view.c | 9 +++------ - 2 files changed, 3 insertions(+), 8 deletions(-) - -diff --git a/libview/ev-view-private.h b/libview/ev-view-private.h -index 4f6179e4a..e95157234 100644 ---- a/libview/ev-view-private.h -+++ b/libview/ev-view-private.h -@@ -125,9 +125,7 @@ struct _EvView { - GList **find_pages; - gint find_result; - gboolean jump_to_find_result; --#ifdef ENABLE_SYNCTEX - gboolean highlight_find_results; --#endif - EvDocumentModel *model; - EvPixbufCache *pixbuf_cache; - gsize pixbuf_cache_size; -diff --git a/libview/ev-view.c b/libview/ev-view.c -index 7c9281cef..29b06fbef 100644 ---- a/libview/ev-view.c -+++ b/libview/ev-view.c -@@ -177,10 +177,10 @@ static void ev_view_remove_all (EvView - static AtkObject *ev_view_get_accessible (GtkWidget *widget); - - /*** Drawing ***/ --#if ENABLE_SYNCTEX - static void highlight_find_results (EvView *view, - cairo_t *cr, - int page); -+#if ENABLE_SYNCTEX - static void highlight_forward_search_results (EvView *view, - cairo_t *cr, - int page); -@@ -4076,10 +4076,8 @@ ev_view_draw (GtkWidget *widget, - - if (page_ready && should_draw_caret_cursor (view, i)) - draw_caret_cursor (view, cr); --#ifdef ENABLE_SYNCTEX - if (page_ready && view->find_pages && view->highlight_find_results) - highlight_find_results (view, cr, i); --#endif - if (page_ready && EV_IS_DOCUMENT_ANNOTATIONS (view->document)) - show_annotation_windows (view, i); - if (page_ready && view->focused_element) -@@ -5627,6 +5625,7 @@ ev_view_style_updated (GtkWidget *widget) - - /*** Drawing ***/ - -+ - static void - draw_rubberband (EvView *view, - cairo_t *cr, -@@ -5658,7 +5657,6 @@ draw_rubberband (EvView *view, - } - - --#ifdef ENABLE_SYNCTEX - static void - highlight_find_results (EvView *view, cairo_t *cr, int page) - { -@@ -5683,6 +5681,7 @@ highlight_find_results (EvView *view, cairo_t *cr, int page) - } - } - -+#ifdef ENABLE_SYNCTEX - static void - highlight_forward_search_results (EvView *view, cairo_t *cr, int page) - { -@@ -7525,9 +7524,7 @@ ev_view_find_search_changed (EvView *view) - void - ev_view_find_set_highlight_search (EvView *view, gboolean value) - { --#ifdef ENABLE_SYNCTEX - view->highlight_find_results = value; --#endif - gtk_widget_queue_draw (GTK_WIDGET (view)); - } - diff --git a/app-text/podofo/Manifest b/app-text/podofo/Manifest index 041bd17c8e10..8cc93aa66e1f 100644 --- a/app-text/podofo/Manifest +++ b/app-text/podofo/Manifest @@ -1,6 +1,9 @@ AUX podofo-0.9.6_p20190928-cmake_lua_version.patch 522 BLAKE2B b911b2ab2b35f5eccb58b32e575a775fe43cac1576831bb4e47d10c666a1e7040d8c01c865ee63ef1c3ff3c1a1feb2059dc25c71924b61995302dad21c32c868 SHA512 953f41b44468918aa96af42ecf3de8e3dd0d7721ed7c6283d8a6d44941caf70d9ef63d7d59ee1d94081fdc91a915ba8770bc335f8af5d60b24cd1f6c04698f6f DIST podofo-0.9.6_p20190928.tar.xz 747532 BLAKE2B 39d051e6adca85bf0f124e5d48e1ff88dc951d7c1b38bc76dc7e3640ea9c3f8a59c6ba9a9105a263234e94932e450bec12dde455850dbf96cd7eec3e69a1a28d SHA512 b9d46fb02eeba61190a0efd17b507bba62d7246af6fff3c3514c9970e99e085f9aad92baa05cc6cf0a8c3c2843554099c904bff10be54dbb4d4cb7de460fc3cc DIST podofo-0.9.7.tar.gz 1005247 BLAKE2B d8f123008d272c1c39f60438d7cd6112cdd851488775e7e0fcb3fd9c4669fd64867fa293ef18b3189eac01f84a8a6b3c536171528f2b6097a5fe181c98501a71 SHA512 0e699739c2fb7d4d02ffca371504bb19f3a8a97ddcbfc06f8d9636db9e73064b4f633f7f09bce92140bb2174610ad68c1e5f8460d474d176ab803ed28295251b +DIST podofo-0.9.8-bug-888463.patch 1269 BLAKE2B 632e9326112eecb484a15a532fc218263eab081acaf2af2bc1cc3d1020347846ce9ce82147d9d2fa9b42d690270b01b68eaf621cfbbdcfce041b8d651754c08e SHA512 9b0764d8697fad57107647a620f6dbe5d8025628faf02b1d6839d3f975216b16a58ccc115f58809aa4e31fb6b4b487b1490eedf468ddc8b90e494f68d8e50dc6 +DIST podofo-0.9.8.tar.gz 1012918 BLAKE2B 5d343128bcf06dbb8ef1d70b32f580a800726c33e4c14c86a6c7df0278a34b2d96cba7975c00d32e792596ca3cb54fa66fee262b49a240cd52e31646947b943e SHA512 b220322114450f1656c73d325f5172bc4cec0b1913e98b4eb2455f8ed7394bcaa47438d41003c9678937ef44d411e135431ddd6784f83d3663337d471baa02b1 EBUILD podofo-0.9.6_p20190928-r101.ebuild 4655 BLAKE2B c379c5cef61673671c9dfbda5e6b4123f9d66ff93a3064bc40bac56ba6e99e5672049f18710e31a4dfb0d1d56160ed10191ff1699836f77cb1b1811fcdc831e3 SHA512 bea8324cf06beb7d0b920c3659639656e439f0a224102391b66aab2aaf5148948117c4f79a0657596993eed0c8c7131e44683aaaa49c88916453fc6c76ec873e EBUILD podofo-0.9.7-r1.ebuild 3159 BLAKE2B faeeae5cbd4e445961db6eb50180fc82e7a50e6f63dc29d7569b6fd134562e806e59ae441e5a74be1448c4f89ccb7898dd1fd211eba2f97682088456f28ce2d3 SHA512 7ecb65bf995b5f8ad796fe67a25fee8cd797abd0d7dfc27d10f1ef0e8e39ec1ba0c5a66c775511aa9dd5d36e694edec5466a474bd1dec6f475442ad130b555e3 +EBUILD podofo-0.9.8-r1.ebuild 3308 BLAKE2B 872f26c5a36e34016178e88b04da747b4bdf14fc5f1f49857d40df05d66086fcb02f7d03fcbf212ec145b3623577e24818bee8b17dd697dbc0c651c10e0d3dc3 SHA512 b584d1ab863eb770cc57bc56168d6e0168da301054c96209cc0e27391a9d9a1709cfb1f8092f3e8e99bc6a421c951b021e69df441929941b7e200fa549b79d2b MISC metadata.xml 510 BLAKE2B a8b777ebbbbadbb251c30aa0c662509559849d74c326e38d8ef965aa32f4cdd613a8d2251771d43fd217dbedd195dc11c8167e09bb2aa7ecf064a7dc2e13abe9 SHA512 d47dfa7ef44f0f0758662550afafd90e2566ad1ee418173aa27ead580ec0d328e0facd812e68b9701a2a6d7e6dcb9d62576c62c9a441c2c7f2fd664cd8f92bbc diff --git a/app-text/podofo/podofo-0.9.8-r1.ebuild b/app-text/podofo/podofo-0.9.8-r1.ebuild new file mode 100644 index 000000000000..6b4fab5a8cee --- /dev/null +++ b/app-text/podofo/podofo-0.9.8-r1.ebuild @@ -0,0 +1,118 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +LUA_COMPAT=( lua5-{1..4} ) + +inherit cmake flag-o-matic lua-single toolchain-funcs + +DESCRIPTION="PoDoFo is a C++ library to work with the PDF file format" +HOMEPAGE="https://sourceforge.net/projects/podofo/" +SRC_URI="https://cfhcable.dl.sourceforge.net/project/podofo/podofo/${PV}/${P}.tar.gz + https://github.com/podofo/podofo/commit/d0e9f5d503b0cb79516ec9bff989f3d7d625b678.patch -> ${P}-bug-888463.patch" + +LICENSE="GPL-2 LGPL-2.1" +SLOT="0/${PV}" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86" +IUSE="+boost idn debug test +tools" +RESTRICT="test" +REQUIRED_USE="${LUA_REQUIRED_USE} + test? ( tools )" + +RDEPEND="${LUA_DEPS} + idn? ( net-dns/libidn:= ) + dev-libs/openssl:= + media-libs/fontconfig:= + media-libs/freetype:2= + media-libs/libjpeg-turbo:= + media-libs/libpng:= + media-libs/tiff:= + sys-libs/zlib:=" +DEPEND="${RDEPEND} + test? ( dev-util/cppunit ) +" + +BDEPEND="virtual/pkgconfig + boost? ( dev-libs/boost )" + +PATCHES=( + "${FILESDIR}"/${PN}-0.9.6_p20190928-cmake_lua_version.patch + "${DISTDIR}"/${P}-bug-888463.patch +) + +DOCS="AUTHORS ChangeLog TODO" + +src_prepare() { + cmake_src_prepare + local x sed_args + + # bug 620934 - Disable linking with cppunit when possible, since it + # triggers errors with some older compilers. + use test || sed -e 's:^FIND_PACKAGE(CppUnit):#\0:' -i CMakeLists.txt || die + + # bug 556962 + sed -i -e 's|Decrypt( pEncryptedBuffer, nOutputLen, pDecryptedBuffer, m_lLen );|Decrypt( pEncryptedBuffer, (pdf_long)nOutputLen, pDecryptedBuffer, (pdf_long\&)m_lLen );|' \ + test/unit/EncryptTest.cpp || die + + sed -i \ + -e "s:LIBDIRNAME \"lib\":LIBDIRNAME \"$(get_libdir)\":" \ + -e "s:LIBIDN_FOUND:HAVE_LIBIDN:g" \ + CMakeLists.txt || die + + # Use pkg-config to find headers for bug #459404. + sed_args= + for x in $($(tc-getPKG_CONFIG) --cflags freetype2) ; do + [[ ${x} == -I* ]] || continue + x=${x#-I} + if [[ -f ${x}/ft2build.h ]] ; then + sed_args+=" -e s:/usr/include/\\r\$:${x}:" + elif [[ -f ${x}/freetype/config/ftheader.h ]] ; then + sed_args+=" -e s:/usr/include/freetype2\\r\$:${x}:" + fi + done + [[ -n ${sed_args} ]] && \ + { sed -i ${sed_args} cmake/modules/FindFREETYPE.cmake || die; } + + # Bug #407015: fix to compile with Lua 5.2+ + case "${ELUA}" in + lua5-1|luajit) + ;; + *) + sed -e 's: lua_open(: luaL_newstate(:' \ + -e 's: luaL_getn(: lua_rawlen(:' -i \ + tools/podofocolor/luaconverter.cpp \ + tools/podofoimpose/planreader_lua.cpp || die + ;; + esac +} + +src_configure() { + + # Bug #381359: undefined reference to `PoDoFo::PdfVariant::DelayedLoadImpl()' + filter-flags -fvisibility-inlines-hidden + + mycmakeargs+=( + "-DPODOFO_BUILD_SHARED=1" + "-DPODOFO_HAVE_JPEG_LIB=1" + "-DPODOFO_HAVE_PNG_LIB=1" + "-DPODOFO_HAVE_TIFF_LIB=1" + "-DWANT_FONTCONFIG=1" + "-DUSE_STLPORT=0" + -DLUA_VERSION="$(lua_get_version)" + -DWANT_BOOST=$(usex boost ON OFF) + -DHAVE_LIBIDN=$(usex idn ON OFF) + # We use libidn for unicode support instead + -DCMAKE_DISABLE_FIND_PACKAGE_UNISTRING=ON + -DPODOFO_HAVE_CPPUNIT=$(usex test ON OFF) + -DPODOFO_BUILD_LIB_ONLY=$(usex tools OFF ON) + ) + + cmake_src_configure + mkdir -p "${S}/test/TokenizerTest/objects" || die +} + +src_test() { + cd "${BUILD_DIR}"/test/unit || die + ./podofo-test --selftest || die "self test failed" +} |