diff options
author | Andrey Grozin <grozin@gentoo.org> | 2023-05-29 19:08:12 +0700 |
---|---|---|
committer | Andrey Grozin <grozin@gentoo.org> | 2023-05-29 19:08:12 +0700 |
commit | 8994022ac77c69f64c17b8cb6cd6f87e85c4f818 (patch) | |
tree | 6d17baebd51adfd0cc12c0b3e14d0f12b596cfc9 /app-text/crengine-ng | |
parent | dev-libs/libunibreak: add ~arm64 (diff) | |
download | gentoo-8994022ac77c69f64c17b8cb6cd6f87e85c4f818.tar.gz gentoo-8994022ac77c69f64c17b8cb6cd6f87e85c4f818.tar.bz2 gentoo-8994022ac77c69f64c17b8cb6cd6f87e85c4f818.zip |
app-text/crengine-ng: bump to 0.9.10
Signed-off-by: Andrey Grozin <grozin@gentoo.org>
Diffstat (limited to 'app-text/crengine-ng')
-rw-r--r-- | app-text/crengine-ng/Manifest | 2 | ||||
-rw-r--r-- | app-text/crengine-ng/crengine-ng-0.9.10.ebuild | 79 |
2 files changed, 81 insertions, 0 deletions
diff --git a/app-text/crengine-ng/Manifest b/app-text/crengine-ng/Manifest index a75271b52005..369eee5ec7f4 100644 --- a/app-text/crengine-ng/Manifest +++ b/app-text/crengine-ng/Manifest @@ -1 +1,3 @@ +DIST crengine-ng-0.9.10.tar.bz2 3416315 BLAKE2B ea1e4aa13c8ab233f26a2878a138cbdf8c371cdcdb86103a91bf09eb3ae3f060da76b5d32fb6d70236b3f9c787876d3f87a4caed353a51942f78b9cd25c11202 SHA512 7cb51ebaf7a62ce996f84deed2d61eef2b5adc76743755aa33e13d53a00409eaba41898f1f613973d3f361529d661952bca690c239f1e7536fcb153d120df83d DIST crengine-ng-0.9.9.tar.bz2 3408221 BLAKE2B b300e0bc6f06f00f14199a44a51dac1ac36c9db409083f23220d1554d31a7b28c59cbcc2a00cb794b13a18b74f7b25cae0892e28d8ef2d8b3ed2f421250741d0 SHA512 6a17445f49e7ce7a6ac942c19f9ab017e6d04d02b2b88654763fcc48a904d44cbb4a863531c39bc5bf2c857dbe8fa0f0335181eff496f4e0784c39a251b36a50 +DIST freefont-otf-20120503.tar.gz 4487813 BLAKE2B a280bef885bc71897a8475814602d7537b05d14a70e5857acd1007bc0a074be9db1e08fbd63fcabf3fde7874391bdd319d00b213e29b203d474fb320e91b82a2 SHA512 cee9a573b17ccc689b61f0925fb6624d58e3a3369d996e379e70c3a4cd750429d68c14c85fbcab4381101c8f4bf56730ef40e0045fdd79647019db41b4ec74fd diff --git a/app-text/crengine-ng/crengine-ng-0.9.10.ebuild b/app-text/crengine-ng/crengine-ng-0.9.10.ebuild new file mode 100644 index 000000000000..983c4272dfb5 --- /dev/null +++ b/app-text/crengine-ng/crengine-ng-0.9.10.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2023 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" +HOMEPAGE="https://gitlab.com/coolreader-ng/crengine-ng" +SRC_URI="https://gitlab.com/coolreader-ng/${PN}/-/archive/${PV}/${P}.tar.bz2" +SRC_URI+=" test? ( mirror://gnu/freefont/freefont-otf-20120503.tar.gz )" + +LICENSE="GPL-2+" +SLOT="0/5" +KEYWORDS="~amd64 ~arm64 ~x86" +IUSE="+png +jpeg +gif +svg +chm +harfbuzz +fontconfig +libunibreak +fribidi +zstd +libutf8proc lto static-libs test" + +RESTRICT="!test? ( test )" + +CDEPEND="sys-libs/zlib + png? ( media-libs/libpng:0 ) + jpeg? ( media-libs/libjpeg-turbo ) + >=media-libs/freetype-2.10.0 + harfbuzz? ( media-libs/harfbuzz:=[truetype] ) + libunibreak? ( dev-libs/libunibreak:= ) + fribidi? ( dev-libs/fribidi ) + zstd? ( app-arch/zstd:= ) + libutf8proc? ( dev-libs/libutf8proc:= ) + fontconfig? ( media-libs/fontconfig )" + +RDEPEND="${CDEPEND}" +DEPEND=" + ${RDEPEND} + test? ( dev-cpp/gtest + app-arch/zip ) +" +BDEPEND="virtual/pkgconfig + ${CDEPEND}" + +src_prepare() { + cmake_src_prepare + if use test; then + mkdir -p "${BUILD_DIR}/crengine/tests/fonts/" + cp -p "${WORKDIR}/freefont-20120503/"*.otf "${BUILD_DIR}/crengine/tests/fonts/" + fi +} + +src_configure() { + 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 + -DUSE_CMARK_GFM=ON + -DBUILD_TOOLS=OFF + -DENABLE_UNITTESTING=$(usex test) + -DOFFLINE_BUILD_MODE=ON + -DENABLE_LTO=$(usex lto) + ) + cmake_src_configure +} + +src_test() { + cd "${BUILD_DIR}/crengine/tests" + ./unittests +} |