diff --git a/deskutils/foliate/Makefile b/deskutils/foliate/Makefile index 318e2dc9a2d4..24671ca08c7b 100644 --- a/deskutils/foliate/Makefile +++ b/deskutils/foliate/Makefile @@ -1,7 +1,7 @@ # $FreeBSD$ PORTNAME= foliate -PORTVERSION= 1.5.3 +PORTVERSION= 2.0.0 CATEGORIES= deskutils MAINTAINER= fox@FreeBSD.org @@ -35,7 +35,7 @@ GLIB_SCHEMAS= com.github.johnfactotum.Foliate.gschema.xml post-patch: @${REINPLACE_CMD} -e 's/@PYTHON_VERSION@/${PYTHON_VERSION}/g' \ - ${WRKSRC}/src/main.js + ${WRKSRC}/src/epubView.js post-install: @${MKDIR} ${STAGEDIR}${PREFIX}/libexec/foliate diff --git a/deskutils/foliate/distinfo b/deskutils/foliate/distinfo index 9fa7155209dc..e00e57bff956 100644 --- a/deskutils/foliate/distinfo +++ b/deskutils/foliate/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1570210540 -SHA256 (johnfactotum-foliate-1.5.3_GH0.tar.gz) = 95f45c0511493a3c732f9a199ddc2b5851a220d74d93e6d14976f29f243ee2d7 -SIZE (johnfactotum-foliate-1.5.3_GH0.tar.gz) = 1486573 +TIMESTAMP = 1586179297 +SHA256 (johnfactotum-foliate-2.0.0_GH0.tar.gz) = e3f7ab5242aa6d936b66d6a41147bf17c0334d7675b5e38e64829d204fd3712a +SIZE (johnfactotum-foliate-2.0.0_GH0.tar.gz) = 3098652 diff --git a/deskutils/foliate/files/patch-src_epubView.js b/deskutils/foliate/files/patch-src_epubView.js new file mode 100644 index 000000000000..9a2a94c13a55 --- /dev/null +++ b/deskutils/foliate/files/patch-src_epubView.js @@ -0,0 +1,11 @@ +--- src/epubView.js.orig 2020-04-06 13:22:39 UTC ++++ src/epubView.js +@@ -21,7 +21,7 @@ const { + mimetypes, execCommand, recursivelyDeleteDir + } = imports.utils + +-const python = GLib.find_program_in_path('python') || GLib.find_program_in_path('python3') ++const python = GLib.find_program_in_path('@PYTHON_VERSION@') + const kindleUnpack = pkg.pkgdatadir + '/assets/KindleUnpack/kindleunpack.py' + + const settings = new Gio.Settings({ schema_id: pkg.name + '.view' }) diff --git a/deskutils/foliate/files/patch-src_main.js b/deskutils/foliate/files/patch-src_main.js deleted file mode 100644 index 9f8897e271ee..000000000000 --- a/deskutils/foliate/files/patch-src_main.js +++ /dev/null @@ -1,13 +0,0 @@ -Adds variable to help substitute the correct python version suffix. - ---- src/main.js.orig 2019-10-07 20:11:48 UTC -+++ src/main.js -@@ -1796,7 +1796,7 @@ class BookViewerWindow { - } - open(fileName, realFileName, inputType = 'epub') { - if (kindleExts.some(x => fileName.endsWith(x))) { -- const python = GLib.find_program_in_path('python') || GLib.find_program_in_path('python3') -+ const python = GLib.find_program_in_path('@PYTHON_VERSION@') - const kindleUnpack = pkg.pkgdatadir + '/assets/KindleUnpack/kindleunpack.py' - - const dir = GLib.dir_make_tmp(null) diff --git a/deskutils/foliate/pkg-plist b/deskutils/foliate/pkg-plist index eb534563a848..eaca5fd46f93 100644 --- a/deskutils/foliate/pkg-plist +++ b/deskutils/foliate/pkg-plist @@ -1,36 +1,40 @@ bin/foliate libexec/foliate/com.github.johnfactotum.Foliate share/applications/com.github.johnfactotum.Foliate.desktop -share/com.github.johnfactotum.Foliate/assets/KindleUnpack/__init__.py -share/com.github.johnfactotum.Foliate/assets/KindleUnpack/compatibility_utils.py -share/com.github.johnfactotum.Foliate/assets/KindleUnpack/kindleunpack.py -share/com.github.johnfactotum.Foliate/assets/KindleUnpack/mobi_cover.py -share/com.github.johnfactotum.Foliate/assets/KindleUnpack/mobi_dict.py -share/com.github.johnfactotum.Foliate/assets/KindleUnpack/mobi_header.py -share/com.github.johnfactotum.Foliate/assets/KindleUnpack/mobi_html.py -share/com.github.johnfactotum.Foliate/assets/KindleUnpack/mobi_index.py -share/com.github.johnfactotum.Foliate/assets/KindleUnpack/mobi_k8proc.py -share/com.github.johnfactotum.Foliate/assets/KindleUnpack/mobi_k8resc.py -share/com.github.johnfactotum.Foliate/assets/KindleUnpack/mobi_nav.py -share/com.github.johnfactotum.Foliate/assets/KindleUnpack/mobi_ncx.py -share/com.github.johnfactotum.Foliate/assets/KindleUnpack/mobi_opf.py -share/com.github.johnfactotum.Foliate/assets/KindleUnpack/mobi_pagemap.py -share/com.github.johnfactotum.Foliate/assets/KindleUnpack/mobi_sectioner.py -share/com.github.johnfactotum.Foliate/assets/KindleUnpack/mobi_split.py -share/com.github.johnfactotum.Foliate/assets/KindleUnpack/mobi_uncompress.py -share/com.github.johnfactotum.Foliate/assets/KindleUnpack/mobi_utils.py -share/com.github.johnfactotum.Foliate/assets/KindleUnpack/mobiml2xhtml.py -share/com.github.johnfactotum.Foliate/assets/KindleUnpack/unipath.py -share/com.github.johnfactotum.Foliate/assets/KindleUnpack/unpack_structure.py -share/com.github.johnfactotum.Foliate/assets/epub.js -share/com.github.johnfactotum.Foliate/assets/jszip.min.js -share/com.github.johnfactotum.Foliate/assets/lookup.html -share/com.github.johnfactotum.Foliate/assets/utils.js -share/com.github.johnfactotum.Foliate/assets/viewer-nocsp.html -share/com.github.johnfactotum.Foliate/assets/viewer.css -share/com.github.johnfactotum.Foliate/assets/viewer.html -share/com.github.johnfactotum.Foliate/assets/viewer.js -share/com.github.johnfactotum.Foliate/com.github.johnfactotum.Foliate.src.gresource +%%DATADIR%%/assets/.eslintrc.json +%%DATADIR%%/assets/KindleUnpack/__init__.py +%%DATADIR%%/assets/KindleUnpack/compatibility_utils.py +%%DATADIR%%/assets/KindleUnpack/kindleunpack.py +%%DATADIR%%/assets/KindleUnpack/kindleunpack.py.orig +%%DATADIR%%/assets/KindleUnpack/mobi_cover.py +%%DATADIR%%/assets/KindleUnpack/mobi_dict.py +%%DATADIR%%/assets/KindleUnpack/mobi_header.py +%%DATADIR%%/assets/KindleUnpack/mobi_html.py +%%DATADIR%%/assets/KindleUnpack/mobi_index.py +%%DATADIR%%/assets/KindleUnpack/mobi_k8proc.py +%%DATADIR%%/assets/KindleUnpack/mobi_k8resc.py +%%DATADIR%%/assets/KindleUnpack/mobi_nav.py +%%DATADIR%%/assets/KindleUnpack/mobi_ncx.py +%%DATADIR%%/assets/KindleUnpack/mobi_opf.py +%%DATADIR%%/assets/KindleUnpack/mobi_pagemap.py +%%DATADIR%%/assets/KindleUnpack/mobi_sectioner.py +%%DATADIR%%/assets/KindleUnpack/mobi_split.py +%%DATADIR%%/assets/KindleUnpack/mobi_uncompress.py +%%DATADIR%%/assets/KindleUnpack/mobi_utils.py +%%DATADIR%%/assets/KindleUnpack/mobiml2xhtml.py +%%DATADIR%%/assets/KindleUnpack/unipath.py +%%DATADIR%%/assets/KindleUnpack/unpack_structure.py +%%DATADIR%%/assets/epub-viewer-nocsp.html +%%DATADIR%%/assets/epub-viewer.css +%%DATADIR%%/assets/epub-viewer.html +%%DATADIR%%/assets/epub-viewer.js +%%DATADIR%%/assets/epub.js +%%DATADIR%%/assets/jszip.min.js +%%DATADIR%%/assets/lookup.html +%%DATADIR%%/assets/utils.js +%%DATADIR%%/com.github.johnfactotum.Foliate.data.gresource +%%DATADIR%%/com.github.johnfactotum.Foliate.src.gresource +share/glib-2.0/schemas/com.github.johnfactotum.Foliate.gschema.xml share/icons/hicolor/scalable/apps/com.github.johnfactotum.Foliate.svg share/icons/hicolor/symbolic/apps/com.github.johnfactotum.Foliate-symbolic.svg share/locale/cs_CS/LC_MESSAGES/com.github.johnfactotum.Foliate.mo @@ -38,8 +42,9 @@ share/locale/es/LC_MESSAGES/com.github.johnfactotum.Foliate.mo share/locale/fr_FR/LC_MESSAGES/com.github.johnfactotum.Foliate.mo share/locale/id_ID/LC_MESSAGES/com.github.johnfactotum.Foliate.mo share/locale/it/LC_MESSAGES/com.github.johnfactotum.Foliate.mo -share/locale/nl_NL/LC_MESSAGES/com.github.johnfactotum.Foliate.mo +share/locale/nl/LC_MESSAGES/com.github.johnfactotum.Foliate.mo share/locale/pt_BR/LC_MESSAGES/com.github.johnfactotum.Foliate.mo share/locale/ru_RU/LC_MESSAGES/com.github.johnfactotum.Foliate.mo +share/locale/sv/LC_MESSAGES/com.github.johnfactotum.Foliate.mo share/locale/zh_TW/LC_MESSAGES/com.github.johnfactotum.Foliate.mo share/metainfo/com.github.johnfactotum.Foliate.appdata.xml