summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Grozin <grozin@gentoo.org>2022-12-23 11:45:35 +0700
committerAndrey Grozin <grozin@gentoo.org>2022-12-23 11:45:35 +0700
commited39357e9e4234408fce263bb79fecbde4c2c746 (patch)
tree0899d5879ed01b22a9f0594b4c7c474a917b59a7 /app-text/crqt-ng
parentapp-text/crengine-ng: Initial import (diff)
downloadgentoo-ed39357e9e4234408fce263bb79fecbde4c2c746.tar.gz
gentoo-ed39357e9e4234408fce263bb79fecbde4c2c746.tar.bz2
gentoo-ed39357e9e4234408fce263bb79fecbde4c2c746.zip
app-text/crqt-ng: Initial import
Signed-off-by: Andrey Grozin <grozin@gentoo.org>
Diffstat (limited to 'app-text/crqt-ng')
-rw-r--r--app-text/crqt-ng/Manifest1
-rw-r--r--app-text/crqt-ng/crqt-ng-1.0.2.ebuild41
-rw-r--r--app-text/crqt-ng/metadata.xml27
3 files changed, 69 insertions, 0 deletions
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 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>grozin@gentoo.org</email>
+ <name>Andrey Grozin</name>
+ </maintainer>
+ <maintainer type="person">
+ <email>valexlin@gmail.com</email>
+ <name>Aleksey Chernov</name>
+ <description>upstream</description>
+ </maintainer>
+ <longdescription lang="en">
+ 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.
+ </longdescription>
+ <use>
+ <flag name="chm">Support chm format</flag>
+ <flag name="harfbuzz">Use <pkg>media-libs/harfbuzz</pkg> for kerning and ligatures</flag>
+ <flag name="libunibreak">Use <pkg>dev-libs/libunibreak</pkg> for hyphenation</flag>
+ <flag name="fribidi">Support bidirectional text by <pkg>dev-libs/fribidi</pkg></flag>
+ <flag name="libutf8proc">Use <pkg>dev-libs/libutf8proc</pkg> for manipulating unicode strings</flag>
+ </use>
+ <upstream>
+ <remote-id type="gitlab">coolreader-ng/crqt-ng</remote-id>
+ </upstream>
+</pkgmetadata>