pkgsrc/print/qpdfview/patches/patch-application.pro
nia 75140ae1af qpdfview: Update to 0.4.18
Fixed rendering with latest pkgsrc poppler.

Release 0.4.18:
  * Fixed various issue w.r.t. statically linked plug-ins and cross builds for Windows. Thanks to Marshall Banana.
  * Fixed encoding issues w.r.t. CUPS names. Thanks to Silvan Scherrer.
  * Fixed not overwriting page ranges CUPS option when set already by Qt's print dialog. Thanks to Fabio Rossi.
  * Fixed refreshing modified documents from disk.
  * Added support for nested splitting of document views.
  * Added support for transparent decompression of document files.
  * Added restoring of tab order and of current tab.
  * Added action to open current file in new window. Thanks to Pavel Sanda.
  * Updated support for MuPDF to version 1.12 and later. Thanks to S. Razi Alavizadeh.
  * Added support for EPUB, XPS, CBZ and FB2 via MuPDF. Thanks to S. Razi Alavizadeh.
  * Automated translations import from Launchpad via Travis CI. Thanks to S. Razi Alavizadeh.
  * Imported various new and updated translations from Launchpad. Thanks to all Launchpad translators!

Release 0.4.17:
  * Fixed query to populate the instance list for the choose instance dialog.
  * Fixed selecting the complete text upon opening a page number dialog.
  * Fixed computation of tile sub rect w.r.t. non-unit device pixel ratios.
  * Moved loading of interactive elements out of the main event loop.
  * Optimize tile rendering event handling by centralizing dispatch.
  * The results of the current tab are now automatically expanded in the extended search dock.
  * Added support for external document links to the outline view.
  * Added optional page-parallel execution of text search.
  * Added triggering SyncTeX reverse search using a keyboard modifier.
  * Keyboard modifiers for mouse interaction can be disabled.
  * Optimizations of the search dock layout w.r.t. vertical/horizontal positioning.
  * Added context menu action to move document to a different instance.
  * Changed cache size tracking from byte to kilobyte granularity to support more than 2 GB cache.
  * Added a save in addition to the save-as action to simplify modifying documents in-place.
  * Added Japanese translations. Thanks to Koji Yokota.
  * Updated British English translations. Thanks to Anthony Harrington.
  * Updated Russian translations. Thanks to ned.
  * Updated French translations. Thanks to Charles Monzat.
  * Updated Lithunian translations. Thanks Moo.
2019-11-08 13:38:48 +00:00

83 lines
2.7 KiB
INI

$NetBSD: patch-application.pro,v 1.2 2019/11/08 13:38:48 nia Exp $
* install png icons (makes the icon visible in xfce)
The reason .files and .path are not set within the for loop using
$${size} is that when done messages like:
WARNING: icon16.path is not defined: install target not created
appear when the .pro file is processed and the icons won't be installed.
--- application.pro.orig 2015-11-14 20:48:59.000000000 +0000
+++ application.pro
@@ -254,6 +254,13 @@ APPDATA_FILE = miscellaneous/qpdfview.ap
system("sed -e \"s:DATA_INSTALL_PATH:$${DATA_INSTALL_PATH}:\" -e \"s:MIME_TYPES:$$join(MIME_TYPES,";","",";"):\" $${DESKTOP_FILE}.in > $${DESKTOP_FILE}")
+iconsizes = 16 22 24 32 36 48 64 72 96 128 160 192 256
+
+system(mkdir tmp)
+for(size, iconsizes) {
+ system(mkdir tmp/$${size})
+ system(rsvg-convert -w $${size} -h $${size} -f png -o tmp/$${size}/qpdfview.png icons/qpdfview.svg)
+}
target.path = $${TARGET_INSTALL_PATH}
@@ -264,7 +271,46 @@ manual.files = miscellaneous/qpdfview.1
manual.path = $${MANUAL_INSTALL_PATH}
icon.files = icons/qpdfview.svg
-icon.path = $${ICON_INSTALL_PATH}
+icon.path = $${ICON_INSTALL_PATH}/scalable/apps
+
+icon16.files = tmp/16/qpdfview.png
+icon16.path = $${ICON_INSTALL_PATH}/16x16/apps
+
+icon22.files = tmp/22/qpdfview.png
+icon22.path = $${ICON_INSTALL_PATH}/22x22/apps
+
+icon24.files = tmp/24/qpdfview.png
+icon24.path = $${ICON_INSTALL_PATH}/24x24/apps
+
+icon32.files = tmp/32/qpdfview.png
+icon32.path = $${ICON_INSTALL_PATH}/32x32/apps
+
+icon36.files = tmp/36/qpdfview.png
+icon36.path = $${ICON_INSTALL_PATH}/36x36/apps
+
+icon48.files = tmp/48/qpdfview.png
+icon48.path = $${ICON_INSTALL_PATH}/48x48/apps
+
+icon64.files = tmp/64/qpdfview.png
+icon64.path = $${ICON_INSTALL_PATH}/64x64/apps
+
+icon72.files = tmp/72/qpdfview.png
+icon72.path = $${ICON_INSTALL_PATH}/72x72/apps
+
+icon96.files = tmp/96/qpdfview.png
+icon96.path = $${ICON_INSTALL_PATH}/96x96/apps
+
+icon128.files = tmp/128/qpdfview.png
+icon128.path = $${ICON_INSTALL_PATH}/128x128/apps
+
+icon160.files = tmp/160/qpdfview.png
+icon160.path = $${ICON_INSTALL_PATH}/160x160/apps
+
+icon192.files = tmp/192/qpdfview.png
+icon192.path = $${ICON_INSTALL_PATH}/192x192/apps
+
+icon256.files = tmp/256/qpdfview.png
+icon256.path = $${ICON_INSTALL_PATH}/256x256/apps
launcher.files = $${DESKTOP_FILE}
launcher.path = $${LAUNCHER_INSTALL_PATH}
@@ -273,6 +319,8 @@ appdata.files = $${APPDATA_FILE}
appdata.path = $${APPDATA_INSTALL_PATH}
INSTALLS += target data manual icon launcher appdata
+INSTALLS += icon16 icon22 icon24 icon32 icon36 icon48 icon64 icon72
+INSTALLS += icon96 icon128 icon160 icon192 icon256
INCLUDEPATH += icons
win32:RC_FILE = icons/qpdfview_win32.rc