From a8bd73d34d98d690641bb691bfa2b9adb0fd619c Mon Sep 17 00:00:00 2001 From: 4fury-c3440d8 Date: Sun, 25 Dec 2022 01:53:00 +0300 Subject: [PATCH 1/3] crqt-ng. a fork of coolreader. --- office/misc/crengine-ng/actions.py | 27 +++++++++ office/misc/crengine-ng/pspec.xml | 96 ++++++++++++++++++++++++++++++ office/misc/crqt/actions.py | 23 +++++++ office/misc/crqt/pspec.xml | 59 ++++++++++++++++++ 4 files changed, 205 insertions(+) create mode 100644 office/misc/crengine-ng/actions.py create mode 100644 office/misc/crengine-ng/pspec.xml create mode 100644 office/misc/crqt/actions.py create mode 100644 office/misc/crqt/pspec.xml diff --git a/office/misc/crengine-ng/actions.py b/office/misc/crengine-ng/actions.py new file mode 100644 index 0000000000..9fd8a35b7f --- /dev/null +++ b/office/misc/crengine-ng/actions.py @@ -0,0 +1,27 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- +# +# Licensed under the GNU General Public License, version 3. +# See the file https://www.gnu.org/licenses/gpl-3.0.txt + +from pisi.actionsapi import cmaketools, mesontools, pisitools + +i = ''.join([ + ' -DBUILD_TOOLS=ON', + ' -DENABLE_LTO=ON', + ' -DCMAKE_BUILD_TYPE=Release', + ' -DCRE_BUILD_STATIC=OFF', + ' -DADD_DEBUG_EXTRA_OPTS=OFF', + ' -B_build -G Ninja -L ' + ]) + +def setup(): + cmaketools.configure(i) + +def build(): + mesontools.build("-C _build") + +def install(): + mesontools.install("-C _build") + + pisitools.dodoc("AUTHORS", "ChangeLog") diff --git a/office/misc/crengine-ng/pspec.xml b/office/misc/crengine-ng/pspec.xml new file mode 100644 index 0000000000..c9dc313f51 --- /dev/null +++ b/office/misc/crengine-ng/pspec.xml @@ -0,0 +1,96 @@ + + + + + crengine-ng + https://gitlab.com/coolreader-ng/crengine-ng + + fury + uglyside@yandex.ru + + GPL-2 + library + office.misc + crengine-ng is cross-platform library designed to implement text viewers and e-book readers. + + Supported document formats: fb2, fb3, epub (without DRM), rtf, doc, docx, odt, htm, chm, pdb, mobi (without DRM), txt, trc, prc. In fact, this is a fork of the CoolReader project. + + + https://gitlab.com/coolreader-ng/crengine-ng/-/archive/0.9.2/crengine-ng-0.9.2.tar.bz2 + + + cmake + ninja + zlib-devel + zstd-devel + libpng-devel + libX11-devel + fribidi-devel + utf8proc-devel + freetype-devel + harfbuzz-devel + fontconfig-devel + libunibreak-devel + libjpeg-turbo-devel + + + + + + + + crengine-ng + + zlib + zstd + libgcc + libpng + libX11 + fribidi + utf8proc + freetype + harfbuzz + fontconfig + libunibreak + libjpeg-turbo + + + /usr/lib/libcrengine-ng.so + /usr/share/crengine-ng + /usr/share/crengine-ng/hyph + /usr/share/doc/crengine-ng + + + + + crengine-ng-devel + + zlib-devel + zstd-devel + libpng-devel + fribidi-devel + utf8proc-devel + freetype-devel + harfbuzz-devel + fontconfig-devel + libunibreak-devel + libjpeg-turbo-devel + crengine-ng + + + /usr/include/crengine-ng + /usr/lib/cmake/crengine-ng + /usr/lib/pkgconfig/crengine-ng.pc + + + + + + 2022-12-24 + 0.9.2 + First build. + fury + uglyside@yandex.ru + + + diff --git a/office/misc/crqt/actions.py b/office/misc/crqt/actions.py new file mode 100644 index 0000000000..89dfa71780 --- /dev/null +++ b/office/misc/crqt/actions.py @@ -0,0 +1,23 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- +# +# Licensed under the GNU General Public License, version 3. +# See the file https://www.gnu.org/licenses/gpl-3.0.txt + +from pisi.actionsapi import cmaketools, mesontools, pisitools + +i = ''.join([ + ' -DCMAKE_BUILD_TYPE=Release', + ' -B_build -G Ninja -L ' + ]) + +def setup(): + cmaketools.configure(i) + +def build(): + mesontools.build("-C _build") + +def install(): + mesontools.install("-C _build") + + pisitools.dodoc("AUTHORS", "ChangeLog") diff --git a/office/misc/crqt/pspec.xml b/office/misc/crqt/pspec.xml new file mode 100644 index 0000000000..9732019548 --- /dev/null +++ b/office/misc/crqt/pspec.xml @@ -0,0 +1,59 @@ + + + + + crqt + https://gitlab.com/coolreader-ng/crqt-ng + + fury + uglyside@yandex.ru + + GPL-2 + app:gui + office.misc + crqt-ng - cross-platform open source e-book reader using crengine-ng. + + It is a fork of the CoolReader project. Supported e-book formats: fb2, fb3 (incomplete), epub (non-DRM), doc, docx, odt, rtf, pdb, mobi (non-DRM), txt, html, chm, tcr. + + + https://gitlab.com/coolreader-ng/crqt-ng/-/archive/1.0.2/crqt-ng-1.0.2.tar.bz2 + + + cmake + ninja + libX11-devel + qt5-linguist + qt5-base-devel + crengine-ng-devel + + + + + + + + crqt + + libgcc + qt5-base + crengine-ng + + + /usr/bin + /usr/share + /usr/share/crqt + /usr/share/crqt/i18n + /usr/share/doc/crqt + + + + + + 2022-12-24 + 1.0.2 + First build. + fury + uglyside@yandex.ru + + + From 5d3d901fc7cb3111159d136123dfa1c61f73c18e Mon Sep 17 00:00:00 2001 From: 4fury-c3440d8 Date: Mon, 2 Jan 2023 05:06:50 +0300 Subject: [PATCH 2/3] crqt/engine 1.0.4/0.9.4 markdown support. --- office/misc/crengine-ng/actions.py | 2 ++ office/misc/crengine-ng/pspec.xml | 10 ++++++---- office/misc/crqt/pspec.xml | 8 ++++---- 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/office/misc/crengine-ng/actions.py b/office/misc/crengine-ng/actions.py index 9fd8a35b7f..19684c4b70 100644 --- a/office/misc/crengine-ng/actions.py +++ b/office/misc/crengine-ng/actions.py @@ -9,6 +9,8 @@ from pisi.actionsapi import cmaketools, mesontools, pisitools i = ''.join([ ' -DBUILD_TOOLS=ON', ' -DENABLE_LTO=ON', + ' -DUSE_CMARK_GFM=OFF', + ' -DUSE_CMARK=ON', ' -DCMAKE_BUILD_TYPE=Release', ' -DCRE_BUILD_STATIC=OFF', ' -DADD_DEBUG_EXTRA_OPTS=OFF', diff --git a/office/misc/crengine-ng/pspec.xml b/office/misc/crengine-ng/pspec.xml index c9dc313f51..01780c2844 100644 --- a/office/misc/crengine-ng/pspec.xml +++ b/office/misc/crengine-ng/pspec.xml @@ -15,14 +15,15 @@ Supported document formats: fb2, fb3, epub (without DRM), rtf, doc, docx, odt, htm, chm, pdb, mobi (without DRM), txt, trc, prc. In fact, this is a fork of the CoolReader project. - - https://gitlab.com/coolreader-ng/crengine-ng/-/archive/0.9.2/crengine-ng-0.9.2.tar.bz2 + + https://gitlab.com/coolreader-ng/crengine-ng/-/archive/0.9.4/crengine-ng-0.9.4.tar.bz2 cmake ninja zlib-devel zstd-devel + cmark-devel libpng-devel libX11-devel fribidi-devel @@ -43,6 +44,7 @@ zlib zstd + cmark libgcc libpng libX11 @@ -86,8 +88,8 @@ - 2022-12-24 - 0.9.2 + 2023-01-02 + 0.9.4 First build. fury uglyside@yandex.ru diff --git a/office/misc/crqt/pspec.xml b/office/misc/crqt/pspec.xml index 9732019548..bb6123b755 100644 --- a/office/misc/crqt/pspec.xml +++ b/office/misc/crqt/pspec.xml @@ -15,8 +15,8 @@ It is a fork of the CoolReader project. Supported e-book formats: fb2, fb3 (incomplete), epub (non-DRM), doc, docx, odt, rtf, pdb, mobi (non-DRM), txt, html, chm, tcr. - - https://gitlab.com/coolreader-ng/crqt-ng/-/archive/1.0.2/crqt-ng-1.0.2.tar.bz2 + + https://gitlab.com/coolreader-ng/crqt-ng/-/archive/1.0.4/crqt-ng-1.0.4.tar.bz2 cmake @@ -49,8 +49,8 @@ - 2022-12-24 - 1.0.2 + 2023-01-02 + 1.0.4 First build. fury uglyside@yandex.ru From e12d276412bdf6c805798e4932dca6ef9b76ab2b Mon Sep 17 00:00:00 2001 From: 4fury-c3440d8 Date: Sat, 21 Jan 2023 06:43:17 +0300 Subject: [PATCH 3/3] add crqt-ng: a fork of coolreader. --- office/misc/coolreader-qt/actions.py | 23 --------- office/misc/coolreader-qt/pspec.xml | 77 ---------------------------- office/misc/crengine-ng/actions.py | 4 +- office/misc/crengine-ng/pspec.xml | 10 ++-- office/misc/crqt/pspec.xml | 2 +- 5 files changed, 8 insertions(+), 108 deletions(-) delete mode 100644 office/misc/coolreader-qt/actions.py delete mode 100644 office/misc/coolreader-qt/pspec.xml diff --git a/office/misc/coolreader-qt/actions.py b/office/misc/coolreader-qt/actions.py deleted file mode 100644 index 41d7997718..0000000000 --- a/office/misc/coolreader-qt/actions.py +++ /dev/null @@ -1,23 +0,0 @@ -#!/usr/bin/python -# -*- coding: utf-8 -*- -# -# Licensed under the GNU General Public License, version 3. -# See the file https://www.gnu.org/licenses/gpl-3.0.txt - -from pisi.actionsapi import shelltools, cmaketools, pisitools, get - -j = '-DCMAKE_BUILD_TYPE=Release -DGUI=QT5 -L ' - -def setup(): - pisitools.dosed("crengine/include/cr3version.h", "58", "59") - pisitools.dosed("crengine/include/cr3version.h", "06-13", "08-31") - cmaketools.configure("-B_build %s" % j) - -def build(): - shelltools.cd("_build") - cmaketools.make() - -def install(): - shelltools.cd("_build") - cmaketools.rawInstall("DESTDIR=%s" % get.installDIR()) - diff --git a/office/misc/coolreader-qt/pspec.xml b/office/misc/coolreader-qt/pspec.xml deleted file mode 100644 index 8ef7120501..0000000000 --- a/office/misc/coolreader-qt/pspec.xml +++ /dev/null @@ -1,77 +0,0 @@ - - - - - coolreader-qt - https://github.com/buggins/coolreader - - Pisi Linux Community - admin@pisilinux.org - - GPL-2 - app:gui - office.misc - CoolReader 3 - cross platform open source e-book reader. - CoolReader 3 - cross platform open source e-book reader. - - https://github.com/buggins/coolreader/archive/refs/tags/cr3.2.59.tar.gz - - - cmake - zlib-devel - zstd-devel - libxcb-devel - libpng-devel - qt5-linguist - fribidi-devel - qt5-base-devel - freetype-devel - harfbuzz-devel - utf8proc-devel - fontconfig-devel - libunibreak-devel - libjpeg-turbo-devel - - - - - coolreader-qt - - zlib - zstd - libgcc - libpng - fribidi - freetype - harfbuzz - utf8proc - qt5-base - fontconfig - libunibreak - libjpeg-turbo - - - /usr/bin - /usr/share - /usr/share/cr3 - - - - - - 2022-07-30 - 3.2.59 - Rebuild - fury - uglyside@yandex.ru - - - 2021-12-21 - 3.2.59 - First build - fury - uglyside@yandex.ru - - - - diff --git a/office/misc/crengine-ng/actions.py b/office/misc/crengine-ng/actions.py index 19684c4b70..63f8a0cc6f 100644 --- a/office/misc/crengine-ng/actions.py +++ b/office/misc/crengine-ng/actions.py @@ -9,8 +9,8 @@ from pisi.actionsapi import cmaketools, mesontools, pisitools i = ''.join([ ' -DBUILD_TOOLS=ON', ' -DENABLE_LTO=ON', - ' -DUSE_CMARK_GFM=OFF', - ' -DUSE_CMARK=ON', + ' -DUSE_CMARK_GFM=ON', + ' -DUSE_CMARK=OFF', ' -DCMAKE_BUILD_TYPE=Release', ' -DCRE_BUILD_STATIC=OFF', ' -DADD_DEBUG_EXTRA_OPTS=OFF', diff --git a/office/misc/crengine-ng/pspec.xml b/office/misc/crengine-ng/pspec.xml index 01780c2844..20759e17ff 100644 --- a/office/misc/crengine-ng/pspec.xml +++ b/office/misc/crengine-ng/pspec.xml @@ -15,8 +15,8 @@ Supported document formats: fb2, fb3, epub (without DRM), rtf, doc, docx, odt, htm, chm, pdb, mobi (without DRM), txt, trc, prc. In fact, this is a fork of the CoolReader project. - - https://gitlab.com/coolreader-ng/crengine-ng/-/archive/0.9.4/crengine-ng-0.9.4.tar.bz2 + + https://gitlab.com/coolreader-ng/crengine-ng/-/archive/0.9.5/crengine-ng-0.9.5.tar.bz2 cmake @@ -44,7 +44,7 @@ zlib zstd - cmark + libgcc libpng libX11 @@ -88,8 +88,8 @@ - 2023-01-02 - 0.9.4 + 2023-01-21 + 0.9.5 First build. fury uglyside@yandex.ru diff --git a/office/misc/crqt/pspec.xml b/office/misc/crqt/pspec.xml index bb6123b755..e780aae856 100644 --- a/office/misc/crqt/pspec.xml +++ b/office/misc/crqt/pspec.xml @@ -49,7 +49,7 @@ - 2023-01-02 + 2023-01-21 1.0.4 First build. fury