summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Grozin <grozin@gentoo.org>2022-12-23 11:43:04 +0700
committerAndrey Grozin <grozin@gentoo.org>2022-12-23 11:43:04 +0700
commit556c8737825cc466b51405224c36588f6fd68441 (patch)
tree4040a9db2f3b58f119dc57424c548b4f3f41f4e3 /app-text/crengine-ng
parentapp-arch/pxz: fix finding xz (diff)
downloadgentoo-556c8737825cc466b51405224c36588f6fd68441.tar.gz
gentoo-556c8737825cc466b51405224c36588f6fd68441.tar.bz2
gentoo-556c8737825cc466b51405224c36588f6fd68441.zip
app-text/crengine-ng: Initial import
Signed-off-by: Andrey Grozin <grozin@gentoo.org>
Diffstat (limited to 'app-text/crengine-ng')
-rw-r--r--app-text/crengine-ng/Manifest1
-rw-r--r--app-text/crengine-ng/crengine-ng-0.9.2.ebuild58
-rw-r--r--app-text/crengine-ng/metadata.xml28
3 files changed, 87 insertions, 0 deletions
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 @@
+<?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>
+ <flag name="lto">Use link time optimization</flag>
+ </use>
+ <upstream>
+ <remote-id type="gitlab">coolreader-ng/crengine-ng</remote-id>
+ </upstream>
+</pkgmetadata>