aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSanthosh Raju <fox@FreeBSD.org>2025-06-09 11:39:34 +0000
committerSanthosh Raju <fox@FreeBSD.org>2025-06-09 11:42:49 +0000
commit50abd79a8848b9c1513da6ad82e6f205a27f933a (patch)
treece2914b84aad9ace73fa5e0bf96ad45fb0cc4d19
parent8477374ec40b10ab90fb004cae1966301ec1ca97 (diff)
deskutils/foliate: Update to 3.3.0
-rw-r--r--deskutils/foliate/Makefile26
-rw-r--r--deskutils/foliate/distinfo8
-rw-r--r--deskutils/foliate/files/patch-src_assets_KindleUnpack_kindleunpack.py16
-rw-r--r--deskutils/foliate/files/patch-src_epubView.js13
-rw-r--r--deskutils/foliate/pkg-plist59
5 files changed, 25 insertions, 97 deletions
diff --git a/deskutils/foliate/Makefile b/deskutils/foliate/Makefile
index 72a30d338dbf..1ede48fd69e6 100644
--- a/deskutils/foliate/Makefile
+++ b/deskutils/foliate/Makefile
@@ -1,6 +1,5 @@
PORTNAME= foliate
-PORTVERSION= 2.6.4
-PORTREVISION= 3
+PORTVERSION= 3.3.0
CATEGORIES= deskutils
MAINTAINER= fox@FreeBSD.org
@@ -12,16 +11,13 @@ LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= appstream-util:devel/appstream-glib \
gjs-console:lang/gjs
-LIB_DEPENDS= libwebkit2gtk-4.0.so:www/webkit2-gtk@40
+LIB_DEPENDS= libadwaita-1.so:x11-toolkits/libadwaita
RUN_DEPENDS= gjs-console:lang/gjs
USES= desktop-file-utils gnome localbase meson python shebangfix
-USE_GNOME= cairo gtk30 introspection
+USE_GNOME= cairo gtk40 introspection
GLIB_SCHEMAS= com.github.johnfactotum.Foliate.gschema.xml
-SHEBANG_FILES= ${WRKSRC}/build-aux/meson/postinstall.py \
- ${WRKSRC}/src/assets/KindleUnpack/*.py
-
OPTIONS_DEFINE= NLS
OPTIONS_SUB= yes
@@ -29,18 +25,8 @@ NLS_USES= gettext
USE_GITHUB= yes
GH_ACCOUNT= johnfactotum
-
-post-patch:
- @${REINPLACE_CMD} -e 's/@PYTHON_VERSION@/${PYTHON_VERSION}/g' \
- ${WRKSRC}/src/epubView.js
-
-post-install:
- @${MKDIR} ${STAGEDIR}${PREFIX}/libexec/foliate
- @${MV} ${STAGEDIR}${PREFIX}/bin/com.github.johnfactotum.Foliate \
- ${STAGEDIR}${PREFIX}/libexec/foliate/com.github.johnfactotum.Foliate
- @${RLN} ${STAGEDIR}${PREFIX}/libexec/foliate/com.github.johnfactotum.Foliate \
- ${STAGEDIR}${PREFIX}/bin/foliate
- @${REINPLACE_CMD} -e 's/Exec=com.github.johnfactotum.Foliate %U/Exec=foliate %U/g' \
- ${STAGEDIR}${PREFIX}/share/applications/com.github.johnfactotum.Foliate.desktop
+GH_PROJECT= foliate-js:js
+GH_TAGNAME= 052123b:js
+GH_SUBDIR= src/foliate-js:js
.include <bsd.port.mk>
diff --git a/deskutils/foliate/distinfo b/deskutils/foliate/distinfo
index 225b681efa49..a90db8363c22 100644
--- a/deskutils/foliate/distinfo
+++ b/deskutils/foliate/distinfo
@@ -1,3 +1,5 @@
-TIMESTAMP = 1642309057
-SHA256 (johnfactotum-foliate-2.6.4_GH0.tar.gz) = 4a4381bff6e398f6734e1695da23f1c593ba2a67e463e07021a089ffd0741776
-SIZE (johnfactotum-foliate-2.6.4_GH0.tar.gz) = 4824560
+TIMESTAMP = 1749466630
+SHA256 (johnfactotum-foliate-3.3.0_GH0.tar.gz) = 8ff0e0cae3ddead0bd92bbd2b396d62490336aa52fb5a6c81cf1f07eba3fdc3e
+SIZE (johnfactotum-foliate-3.3.0_GH0.tar.gz) = 7505565
+SHA256 (johnfactotum-foliate-js-052123b_GH0.tar.gz) = 471f2eec4e3df2a16e788f95570a7cd5337fa72300669f83056555aba5809967
+SIZE (johnfactotum-foliate-js-052123b_GH0.tar.gz) = 3626357
diff --git a/deskutils/foliate/files/patch-src_assets_KindleUnpack_kindleunpack.py b/deskutils/foliate/files/patch-src_assets_KindleUnpack_kindleunpack.py
deleted file mode 100644
index ba783bb90cab..000000000000
--- a/deskutils/foliate/files/patch-src_assets_KindleUnpack_kindleunpack.py
+++ /dev/null
@@ -1,16 +0,0 @@
-Fixes unicode display correctly, this prevents crashing on opening
-(kindle format files).
-
---- src/assets/KindleUnpack/kindleunpack.py.orig 2019-10-07 19:55:37 UTC
-+++ src/assets/KindleUnpack/kindleunpack.py
-@@ -952,8 +952,8 @@ def main(argv=unicode_argv()):
- global SPLIT_COMBO_MOBIS
-
- print("KindleUnpack v0.82")
-- print(" Based on initial mobipocket version Copyright © 2009 Charles M. Hannum <root@ihack.net>")
-- print(" Extensive Extensions and Improvements Copyright © 2009-2014 ")
-+ print(" Based on initial mobipocket version Copyright © 2009 Charles M. Hannum <root@ihack.net>".encode("utf-8"))
-+ print(" Extensive Extensions and Improvements Copyright © 2009-2014 ".encode("utf-8"))
- print(" by: P. Durrant, K. Hendricks, S. Siebert, fandrieu, DiapDealer, nickredding, tkeo.")
- print(" This program is free software: you can redistribute it and/or modify")
- print(" it under the terms of the GNU General Public License as published by")
diff --git a/deskutils/foliate/files/patch-src_epubView.js b/deskutils/foliate/files/patch-src_epubView.js
deleted file mode 100644
index 88809a7260c6..000000000000
--- a/deskutils/foliate/files/patch-src_epubView.js
+++ /dev/null
@@ -1,13 +0,0 @@
-Adds variable to help substitute the correct python version suffix.
-
---- src/epubView.js.orig 2020-05-29 07:10:48 UTC
-+++ src/epubView.js
-@@ -36,7 +36,7 @@ var enableAnnotations = [
- mimetypes.kindleAlias,
- ]
-
--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/pkg-plist b/deskutils/foliate/pkg-plist
index b0b11179d22a..42bbb0ead13f 100644
--- a/deskutils/foliate/pkg-plist
+++ b/deskutils/foliate/pkg-plist
@@ -1,67 +1,36 @@
bin/foliate
-libexec/foliate/com.github.johnfactotum.Foliate
share/applications/com.github.johnfactotum.Foliate.desktop
-share/applications/com.github.johnfactotum.Foliate.desktop.bak
-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/kindleunpack.py.orig
-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/client.html
-share/com.github.johnfactotum.Foliate/assets/epub-viewer-cb.html
-share/com.github.johnfactotum.Foliate/assets/epub-viewer-nocsp.html
-share/com.github.johnfactotum.Foliate/assets/epub-viewer.css
-share/com.github.johnfactotum.Foliate/assets/epub-viewer.html
-share/com.github.johnfactotum.Foliate/assets/libarchivejs/libarchivejs-1.3.0/LICENSE
-share/com.github.johnfactotum.Foliate/assets/libarchivejs/libarchivejs-1.3.0/README.md
-share/com.github.johnfactotum.Foliate/assets/libarchivejs/libarchivejs-1.3.0/dist/wasm-gen/libarchive.js
-share/com.github.johnfactotum.Foliate/assets/libarchivejs/libarchivejs-1.3.0/dist/wasm-gen/libarchive.wasm
-share/com.github.johnfactotum.Foliate/assets/libarchivejs/libarchivejs-1.3.0/dist/worker-bundle.js
-share/com.github.johnfactotum.Foliate/assets/libarchivejs/libarchivejs-1.3.0/package.json
-share/com.github.johnfactotum.Foliate/assets/libarchivejs/libarchivejs-1.3.0/src/compressed-file.js
-share/com.github.johnfactotum.Foliate/assets/libarchivejs/libarchivejs-1.3.0/src/libarchive.js
-share/com.github.johnfactotum.Foliate/assets/libarchivejs/libarchivejs-1.3.0/src/webworker/archive-reader.js
-share/com.github.johnfactotum.Foliate/assets/libarchivejs/libarchivejs-1.3.0/src/webworker/wasm-gen/libarchive.js
-share/com.github.johnfactotum.Foliate/assets/libarchivejs/libarchivejs-1.3.0/src/webworker/wasm-gen/libarchive.wasm
-share/com.github.johnfactotum.Foliate/assets/libarchivejs/libarchivejs-1.3.0/src/webworker/wasm-module.js
-share/com.github.johnfactotum.Foliate/assets/libarchivejs/libarchivejs-1.3.0/src/webworker/worker.js
-share/com.github.johnfactotum.Foliate/assets/libarchivejs/main.js
-share/com.github.johnfactotum.Foliate/com.github.johnfactotum.Foliate.data.gresource
-share/com.github.johnfactotum.Foliate/com.github.johnfactotum.Foliate.src.gresource
+share/com.github.johnfactotum.Foliate/com.github.johnfactotum.Foliate.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/ar/LC_MESSAGES/com.github.johnfactotum.Foliate.mo
share/locale/cs/LC_MESSAGES/com.github.johnfactotum.Foliate.mo
share/locale/de/LC_MESSAGES/com.github.johnfactotum.Foliate.mo
+share/locale/el/LC_MESSAGES/com.github.johnfactotum.Foliate.mo
share/locale/es/LC_MESSAGES/com.github.johnfactotum.Foliate.mo
share/locale/eu/LC_MESSAGES/com.github.johnfactotum.Foliate.mo
+share/locale/fa_IR/LC_MESSAGES/com.github.johnfactotum.Foliate.mo
share/locale/fr/LC_MESSAGES/com.github.johnfactotum.Foliate.mo
+share/locale/gl/LC_MESSAGES/com.github.johnfactotum.Foliate.mo
+share/locale/he/LC_MESSAGES/com.github.johnfactotum.Foliate.mo
+share/locale/hi/LC_MESSAGES/com.github.johnfactotum.Foliate.mo
+share/locale/hr/LC_MESSAGES/com.github.johnfactotum.Foliate.mo
+share/locale/hu/LC_MESSAGES/com.github.johnfactotum.Foliate.mo
share/locale/id/LC_MESSAGES/com.github.johnfactotum.Foliate.mo
share/locale/ie/LC_MESSAGES/com.github.johnfactotum.Foliate.mo
share/locale/it/LC_MESSAGES/com.github.johnfactotum.Foliate.mo
+share/locale/ja/LC_MESSAGES/com.github.johnfactotum.Foliate.mo
share/locale/ko/LC_MESSAGES/com.github.johnfactotum.Foliate.mo
share/locale/nb/LC_MESSAGES/com.github.johnfactotum.Foliate.mo
share/locale/nl/LC_MESSAGES/com.github.johnfactotum.Foliate.mo
share/locale/nn/LC_MESSAGES/com.github.johnfactotum.Foliate.mo
+share/locale/oc/LC_MESSAGES/com.github.johnfactotum.Foliate.mo
share/locale/pt_BR/LC_MESSAGES/com.github.johnfactotum.Foliate.mo
share/locale/ru/LC_MESSAGES/com.github.johnfactotum.Foliate.mo
+share/locale/sr/LC_MESSAGES/com.github.johnfactotum.Foliate.mo
share/locale/sv/LC_MESSAGES/com.github.johnfactotum.Foliate.mo
+share/locale/tr/LC_MESSAGES/com.github.johnfactotum.Foliate.mo
share/locale/uk/LC_MESSAGES/com.github.johnfactotum.Foliate.mo
share/locale/zh_CN/LC_MESSAGES/com.github.johnfactotum.Foliate.mo
share/locale/zh_TW/LC_MESSAGES/com.github.johnfactotum.Foliate.mo