From nobody Fri Oct 15 06:12:20 2021 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id C6E051808EE2; Fri, 15 Oct 2021 06:12:20 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HVwsc57BPz3CWY; Fri, 15 Oct 2021 06:12:20 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 8F9C921656; Fri, 15 Oct 2021 06:12:20 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 19F6CKW0074097; Fri, 15 Oct 2021 06:12:20 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 19F6CKxW074096; Fri, 15 Oct 2021 06:12:20 GMT (envelope-from git) Date: Fri, 15 Oct 2021 06:12:20 GMT Message-Id: <202110150612.19F6CKxW074096@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Mateusz Piotrowski <0mp@FreeBSD.org> Subject: git: 1fe029273d1e - main - deskutils/bookworm: Add new port List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: 0mp X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 1fe029273d1ecf6dbf40da326cf8388ffda7a949 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by 0mp: URL: https://cgit.FreeBSD.org/ports/commit/?id=1fe029273d1ecf6dbf40da326cf8388ffda7a949 commit 1fe029273d1ecf6dbf40da326cf8388ffda7a949 Author: Miguel Gocobachi AuthorDate: 2021-10-15 05:48:23 +0000 Commit: Mateusz Piotrowski <0mp@FreeBSD.org> CommitDate: 2021-10-15 06:00:22 +0000 deskutils/bookworm: Add new port Bookworm is a simple, focused eBook reader. Read the books you love without having to worry about the different format complexities like epub, pdf, mobi, cbr, etc. This version supports EPUB, PDF and Comics (CBR and CBZ) formats with support for more formats to follow soon. WWW: https://babluboy.github.io/bookworm/ Reported by: 0mp Differential Revision: https://reviews.freebsd.org/D25569 --- deskutils/Makefile | 1 + deskutils/bookworm/Makefile | 62 ++++ deskutils/bookworm/distinfo | 3 + ...ata_com.github.babluboy.bookworm.appdata.xml.in | 41 +++ .../patch-data_scripts_mobi__lib_mobi__dict.py | 135 ++++++++ .../patch-data_scripts_mobi__lib_mobi__html.py | 95 ++++++ .../patch-data_scripts_mobi__lib_mobi__index.py | 91 ++++++ .../patch-data_scripts_mobi__lib_mobi__k8proc.py | 142 +++++++++ .../patch-data_scripts_mobi__lib_mobi__ncx.py | 98 ++++++ .../patch-data_scripts_mobi__lib_mobi__opf.py | 38 +++ .../patch-data_scripts_mobi__lib_mobi__unpack.py | 354 +++++++++++++++++++++ deskutils/bookworm/files/patch-src_bookworm.vala | 15 + deskutils/bookworm/files/patch-src_pdfReader.vala | 62 ++++ deskutils/bookworm/files/patch-src_utils.vala | 38 +++ deskutils/bookworm/pkg-descr | 7 + deskutils/bookworm/pkg-plist | 223 +++++++++++++ 16 files changed, 1405 insertions(+) diff --git a/deskutils/Makefile b/deskutils/Makefile index f5c6e9860b6e..3aab98e229e1 100644 --- a/deskutils/Makefile +++ b/deskutils/Makefile @@ -18,6 +18,7 @@ SUBDIR += bijiben SUBDIR += birdtray SUBDIR += bitcollider + SUBDIR += bookworm SUBDIR += cairo-dock SUBDIR += cairo-dock-plugins SUBDIR += caja-extensions diff --git a/deskutils/bookworm/Makefile b/deskutils/bookworm/Makefile new file mode 100644 index 000000000000..f832ab827aee --- /dev/null +++ b/deskutils/bookworm/Makefile @@ -0,0 +1,62 @@ +PORTNAME= bookworm +DISTVERSION= 1.1.2 +CATEGORIES= deskutils + +MAINTAINER= miguel@gocobachi.dev +COMMENT= Simple, focused ebook reader + +LICENSE= GPLv3 +LICENSE_FILE= ${WRKSRC}/COPYING + +BUILD_DEPENDS= curl>0:ftp/curl \ + html2text>0:textproc/html2text \ + valac:lang/vala +LIB_DEPENDS= libappstream-glib.so:devel/appstream-glib \ + libgee-0.8.so:devel/libgee \ + libgranite.so:x11-toolkits/granite \ + libpoppler-glib.so:graphics/poppler-glib \ + libsoup-2.4.so:devel/libsoup \ + libwebkit2gtk-4.0.so:www/webkit2-gtk3 \ + libxml2.so:textproc/libxml2 +RUN_DEPENDS= bash:shells/bash \ + pdftohtml:graphics/poppler-utils \ + unar:archivers/unarchiver \ + unzip:archivers/unzip + +USES= desktop-file-utils gettext gnome meson pkgconfig \ + python:build,run shebangfix sqlite +USE_GITHUB= yes +GH_ACCOUNT= babluboy +USE_GNOME= gdkpixbuf2 glib20 gtk30 libxml2 pango + +GLIB_SCHEMAS= com.github.babluboy.bookworm.gschema.xml +INSTALLS_ICONS= yes +SHEBANG_FILES= data/scripts/com.github.babluboy.bookworm.search.sh \ + data/scripts/mobi_lib/mobi_dict.py \ + data/scripts/mobi_lib/mobi_html.py \ + data/scripts/mobi_lib/mobi_index.py \ + data/scripts/mobi_lib/mobi_k8proc.py \ + data/scripts/mobi_lib/mobi_ncx.py \ + data/scripts/mobi_lib/mobi_opf.py \ + data/scripts/mobi_lib/mobi_split.py \ + data/scripts/mobi_lib/mobi_uncompress.py \ + data/scripts/mobi_lib/mobi_unpack.py \ + data/scripts/mobi_lib/mobi_utils.py + +MESON_BUILD_DIR= build + +PORTDOCS= README.md + +OPTIONS_DEFINE= DOCS + +post-configure: + @${MKDIR} ${WRKSRC}/${MESON_BUILD_DIR} + +post-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR} + +do-test: + cd ${WRKSRC}/${MESON_BUILD_DIR} && ninja test + +.include diff --git a/deskutils/bookworm/distinfo b/deskutils/bookworm/distinfo new file mode 100644 index 000000000000..62681da78331 --- /dev/null +++ b/deskutils/bookworm/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1593395828 +SHA256 (babluboy-bookworm-1.1.2_GH0.tar.gz) = 6d27e55697debfa08f7cc15805413b74c94c55111cdf2d333b306228eccad824 +SIZE (babluboy-bookworm-1.1.2_GH0.tar.gz) = 2102426 diff --git a/deskutils/bookworm/files/patch-data_com.github.babluboy.bookworm.appdata.xml.in b/deskutils/bookworm/files/patch-data_com.github.babluboy.bookworm.appdata.xml.in new file mode 100644 index 000000000000..d474e0772145 --- /dev/null +++ b/deskutils/bookworm/files/patch-data_com.github.babluboy.bookworm.appdata.xml.in @@ -0,0 +1,41 @@ +--- data/com.github.babluboy.bookworm.appdata.xml.in.orig 2019-08-10 18:20:51 UTC ++++ data/com.github.babluboy.bookworm.appdata.xml.in +@@ -14,10 +14,6 @@ + + + +- Bookworm Library View +- https://raw.githubusercontent.com/babluboy/bookworm/gh-pages/images/BookwormLibraryView.png +- +- + Bookworm Reading View + https://raw.githubusercontent.com/babluboy/bookworm/gh-pages/images/BookwormReadingView.png + +@@ -46,16 +42,6 @@ + + + +- +- +-

Right to Left Reading

+-
    +-
  • Support for right-to-left script
  • +-
  • A shiny new icon and new cover images
  • +-
  • Better support for EPUB table of contents
  • +-
+-
+-
+ + +

This release has some new features, fixes and new translations:

+@@ -72,8 +58,8 @@ +
  • Some minor CSS compatibility with Juno
  • + +
    +-
    +- ++ ++ + +

    Right to Left Reading

    +