From 556c8737825cc466b51405224c36588f6fd68441 Mon Sep 17 00:00:00 2001 From: Andrey Grozin Date: Fri, 23 Dec 2022 11:43:04 +0700 Subject: app-text/crengine-ng: Initial import Signed-off-by: Andrey Grozin --- app-text/crengine-ng/Manifest | 1 + app-text/crengine-ng/crengine-ng-0.9.2.ebuild | 58 +++++++++++++++++++++++++++ app-text/crengine-ng/metadata.xml | 28 +++++++++++++ 3 files changed, 87 insertions(+) create mode 100644 app-text/crengine-ng/Manifest create mode 100644 app-text/crengine-ng/crengine-ng-0.9.2.ebuild create mode 100644 app-text/crengine-ng/metadata.xml (limited to 'app-text') diff --git a/app-text/crengine-ng/Manifest b/app-text/crengine-ng/Manifest new file mode 100644 index 000000000000..35b7fbbbad3e --- /dev/null +++ b/app-text/crengine-ng/Manifest @@ -0,0 +1 @@ +DIST crengine-ng-0.9.2.tar.bz2 3123671 BLAKE2B 7ecafc398e81fa9771f5728d0fa60fbc6c3fb883a56d09fc4857d92c3d2f997cbbc0d4ac9818bff82d38ffb110463b88663f3298380a15e83df7292dff461cc2 SHA512 09b6f8f9bb747d71258802741d0d8962808279122ed6f2791b2c3813b684bb515206bc8656128e129fc7bcc76bcbb2c485360adb3b60f51377b87f26a1874e05 diff --git a/app-text/crengine-ng/crengine-ng-0.9.2.ebuild b/app-text/crengine-ng/crengine-ng-0.9.2.ebuild new file mode 100644 index 000000000000..35edaf121645 --- /dev/null +++ b/app-text/crengine-ng/crengine-ng-0.9.2.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +inherit cmake + +DESCRIPTION="Cross-platform library designed to implement e-book readers. Supports many e-book formats" +HOMEPAGE="https://gitlab.com/coolreader-ng/crengine-ng" +SRC_URI="https://gitlab.com/coolreader-ng/${PN}/-/archive/${PV}/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+png +jpeg +gif +svg +chm +harfbuzz +fontconfig +libunibreak +fribidi +zstd +libutf8proc lto static-libs" + +CDEPEND="sys-libs/zlib + png? ( media-libs/libpng:0 ) + jpeg? ( media-libs/libjpeg-turbo ) + >=media-libs/freetype-2.10.0 + harfbuzz? ( media-libs/harfbuzz:= ) + libunibreak? ( dev-libs/libunibreak:= ) + fribidi? ( dev-libs/fribidi ) + zstd? ( app-arch/zstd:= ) + libutf8proc? ( dev-libs/libutf8proc:= ) + fontconfig? ( media-libs/fontconfig )" + +RDEPEND="${CDEPEND}" +DEPEND="${RDEPEND}" +BDEPEND="virtual/pkgconfig + ${CDEPEND}" + +src_configure() { + CMAKE_USE_DIR="${S}" + CMAKE_BUILD_TYPE="Release" + local mycmakeargs=( + -DCRE_BUILD_SHARED=ON + -DCRE_BUILD_STATIC=$(usex static-libs) + -DUSE_COLOR_BACKBUFFER=ON + -DWITH_LIBPNG=$(usex png) + -DWITH_LIBJPEG=$(usex jpeg) + -DWITH_FREETYPE=ON + -DWITH_HARFBUZZ=$(usex harfbuzz) + -DWITH_LIBUNIBREAK=$(usex libunibreak) + -DWITH_FRIBIDI=$(usex fribidi) + -DWITH_ZSTD=$(usex zstd) + -DWITH_UTF8PROC=$(usex libutf8proc) + -DUSE_GIF=$(usex gif) + -DUSE_NANOSVG=$(usex svg) + -DUSE_CHM=$(usex chm) + -DUSE_ANTIWORD=ON + -DUSE_FONTCONFIG=$(usex fontconfig) + -DUSE_SHASUM=OFF + -DBUILD_TOOLS=OFF + -DENABLE_UNITTESTING=OFF + -DENABLE_LTO=$(usex lto) + ) + cmake_src_configure +} diff --git a/app-text/crengine-ng/metadata.xml b/app-text/crengine-ng/metadata.xml new file mode 100644 index 000000000000..19324ff37cd7 --- /dev/null +++ b/app-text/crengine-ng/metadata.xml @@ -0,0 +1,28 @@ + + + + + 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 + Use link time optimization + + + coolreader-ng/crengine-ng + + -- cgit v1.2.3-65-gdbad