From ed39357e9e4234408fce263bb79fecbde4c2c746 Mon Sep 17 00:00:00 2001 From: Andrey Grozin Date: Fri, 23 Dec 2022 11:45:35 +0700 Subject: app-text/crqt-ng: Initial import Signed-off-by: Andrey Grozin --- app-text/crqt-ng/Manifest | 1 + app-text/crqt-ng/crqt-ng-1.0.2.ebuild | 41 +++++++++++++++++++++++++++++++++++ app-text/crqt-ng/metadata.xml | 27 +++++++++++++++++++++++ 3 files changed, 69 insertions(+) create mode 100644 app-text/crqt-ng/Manifest create mode 100644 app-text/crqt-ng/crqt-ng-1.0.2.ebuild create mode 100644 app-text/crqt-ng/metadata.xml (limited to 'app-text') diff --git a/app-text/crqt-ng/Manifest b/app-text/crqt-ng/Manifest new file mode 100644 index 000000000000..8684a4a14325 --- /dev/null +++ b/app-text/crqt-ng/Manifest @@ -0,0 +1 @@ +DIST crqt-ng-1.0.2.tar.bz2 419058 BLAKE2B 5d8b6704e6ec226852a0c82cc6c00b386c5b348675f00c4acc9dddbee999f381616083101f183523671ef81bb5036eddb7643b3f31857535d6773a549405ab1c SHA512 f8ebf9d5dec13b69fe7440209cd4da807d25413075b4ad2de885fa73134729be5c23df7d0a73bff061171449e394474ac3779b940120f144d93a7a98eca6cf55 diff --git a/app-text/crqt-ng/crqt-ng-1.0.2.ebuild b/app-text/crqt-ng/crqt-ng-1.0.2.ebuild new file mode 100644 index 000000000000..107e93f22c54 --- /dev/null +++ b/app-text/crqt-ng/crqt-ng-1.0.2.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +PLOCALES="bg cs hu ru uk" +inherit cmake plocale xdg + +DESCRIPTION="Cross-platform e-book reader" +HOMEPAGE="https://gitlab.com/coolreader-ng/crqt-ng" +SRC_URI="https://gitlab.com/coolreader-ng/${PN}/-/archive/${PV}/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" +IUSE="+gif +svg +chm +harfbuzz +libunibreak +fribidi +zstd +libutf8proc" + +CDEPEND="app-text/crengine-ng[png,jpeg,fontconfig,gif=,svg=,chm=,harfbuzz=,fribidi=,zstd=,libutf8proc=] + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtwidgets:5" +BDEPEND="${CDEPEND} + dev-qt/linguist-tools:5" + +src_prepare() { + cmake_src_prepare + xdg_environment_reset + + # locales + plocale_find_changes "${S}"/src/i18n 'crqt_' '.ts' + sed -e "s|set(LANGUAGES .*)|set(LANGUAGES $(plocale_get_locales))|i" \ + -i "${S}"/src/CMakeLists.txt \ + || die "sed CMakeLists.txt failed" +} + +src_configure() { + CMAKE_USE_DIR="${S}" + CMAKE_BUILD_TYPE="Release" + local mycmakeargs=(-DUSE_QT=QT5) + cmake_src_configure +} diff --git a/app-text/crqt-ng/metadata.xml b/app-text/crqt-ng/metadata.xml new file mode 100644 index 000000000000..6aee26085f6e --- /dev/null +++ b/app-text/crqt-ng/metadata.xml @@ -0,0 +1,27 @@ + + + + + grozin@gentoo.org + Andrey Grozin + + + valexlin@gmail.com + Aleksey Chernov + upstream + + + A fork of coolreader. Supported formats are: fb2 (including fb2.zip), fb3, epub (without DRM), + rtf, doc, docx, odt, html, chm, pdb, mobi (without DRM), txt, trc, prc. + + + Support chm format + Use media-libs/harfbuzz for kerning and ligatures + Use dev-libs/libunibreak for hyphenation + Support bidirectional text by dev-libs/fribidi + Use dev-libs/libutf8proc for manipulating unicode strings + + + coolreader-ng/crqt-ng + + -- cgit v1.2.3-65-gdbad