diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-02-13 11:36:00 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-02-13 11:36:00 +0000 |
commit | c06ab4b7bc60f01a7bd8c233ba4697157f30315f (patch) | |
tree | 85da2c94693d575c9324ab8f1616170ef5c928a9 /app-text/crengine-ng | |
parent | 9e166f0fa8bc64fb267aaba88d9a55f8393e15a0 (diff) |
gentoo auto-resync : 13:02:2024 - 11:36:00
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_p1.ebuild | 78 |
2 files changed, 80 insertions, 0 deletions
diff --git a/app-text/crengine-ng/Manifest b/app-text/crengine-ng/Manifest index 47a43727f29e..8f8cddf397a0 100644 --- a/app-text/crengine-ng/Manifest +++ b/app-text/crengine-ng/Manifest @@ -1,4 +1,6 @@ DIST crengine-ng-0.9.10.tar.bz2 3416315 BLAKE2B ea1e4aa13c8ab233f26a2878a138cbdf8c371cdcdb86103a91bf09eb3ae3f060da76b5d32fb6d70236b3f9c787876d3f87a4caed353a51942f78b9cd25c11202 SHA512 7cb51ebaf7a62ce996f84deed2d61eef2b5adc76743755aa33e13d53a00409eaba41898f1f613973d3f361529d661952bca690c239f1e7536fcb153d120df83d +DIST crengine-ng-0.9.10_p1.tar.bz2 3520115 BLAKE2B cceeba21ccd0c0e4c753c894fe1abf96ce3d972559b6713a20c049e02ca55a1cae7590d55ef28c9219ebd2d845dfd2ffd51580155a37e091c22a0f30298b45ec SHA512 3294483c9b8e8814d6652eff24fbb2e9e74a535734049751c5eaa7efaaff915587a5258aebcb8b6df779d635f0e459cd5ca23c4993f4ecffa6f2036f853b55eb DIST freefont-otf-20120503.tar.gz 4487813 BLAKE2B a280bef885bc71897a8475814602d7537b05d14a70e5857acd1007bc0a074be9db1e08fbd63fcabf3fde7874391bdd319d00b213e29b203d474fb320e91b82a2 SHA512 cee9a573b17ccc689b61f0925fb6624d58e3a3369d996e379e70c3a4cd750429d68c14c85fbcab4381101c8f4bf56730ef40e0045fdd79647019db41b4ec74fd EBUILD crengine-ng-0.9.10.ebuild 2028 BLAKE2B 3b793ac5900e5a75181b05ad67b89a97af56cc0ff8760389b24df4b86edae0775b46a06fb61e99916c7f57c183059eb75251066e24f7e977221e55fff0650dd7 SHA512 06c427d2ef28862415670a7202b98a21688405df93a20effa39f8df66278f78bcc1797317b4bf4e23a768f72e3fde8d5a005e2e68498ca457a746de626002519 +EBUILD crengine-ng-0.9.10_p1.ebuild 2001 BLAKE2B 091dbb523c28661530c15561daf3e8d74ae9215747b21081bb2fde2f68a7fa69c4b6e07dd0892005393c3c821897369f77eef1a4dfc970d0a07323fd43328809 SHA512 45a188d6a166ed67609c789042e71cad9f7b3a962bd49c342a51537fdf7543522ec99a82865acaa0fc08f7ea686dc2873714858f5fe938d6f5bbfe946554bfb6 MISC metadata.xml 1181 BLAKE2B 313e8cf8f919009ba2172d5013280a3a890e421878ead9c6a67ec8b9a7bd05b105f156a4548d0b84c62c92f91e3e8432063927969b8b9b63305296c3722e0e8a SHA512 63029b0d8f1920edbc298c171498e0866055347d0997455b68b938439872443d0d1383aa2783607af542c0112364c5671a5bc2d37582d7af9405e36578213f83 diff --git a/app-text/crengine-ng/crengine-ng-0.9.10_p1.ebuild b/app-text/crengine-ng/crengine-ng-0.9.10_p1.ebuild new file mode 100644 index 000000000000..2139387e87fe --- /dev/null +++ b/app-text/crengine-ng/crengine-ng-0.9.10_p1.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2024 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://dev.gentoo.org/~grozin/${P}.tar.bz2 + test? ( mirror://gnu/freefont/freefont-otf-20120503.tar.gz )" + +LICENSE="GPL-2+" +SLOT="0/6-beta1" +KEYWORDS="~amd64 ~arm64 ~x86" +IUSE="+png +jpeg +gif +svg +chm +harfbuzz +fontconfig +libunibreak +fribidi +zstd +libutf8proc 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 + ) + cmake_src_configure +} + +src_test() { + cd "${BUILD_DIR}/crengine/tests" + ./unittests +} |