From 4eda0fe5576868e6c7f97b51aa1c279ff8cd320c Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 25 Sep 2023 05:24:31 +0100 Subject: gentoo auto-resync : 25:09:2023 - 05:24:31 --- app-text/podofo/Manifest | 2 +- app-text/podofo/podofo-0.10.1-r1.ebuild | 76 +++++++++++++++++++++++++++++++++ app-text/podofo/podofo-0.10.1.ebuild | 56 ------------------------ 3 files changed, 77 insertions(+), 57 deletions(-) create mode 100644 app-text/podofo/podofo-0.10.1-r1.ebuild delete mode 100644 app-text/podofo/podofo-0.10.1.ebuild (limited to 'app-text/podofo') diff --git a/app-text/podofo/Manifest b/app-text/podofo/Manifest index 36b00fa3d0a4..bf8e03bc7241 100644 --- a/app-text/podofo/Manifest +++ b/app-text/podofo/Manifest @@ -3,6 +3,6 @@ DIST podofo-0.10.1-test-resources.tar.gz 4228392 BLAKE2B 95526d145a18976d5b9f782 DIST podofo-0.10.1.tar.gz 1690279 BLAKE2B 0fc161c467ffce07c1b2cb1a2124ffddc6c18189b5c8b31dc1212921637601a667cd2b0d6f1269214bd0fe47e8853367283e3053813d45aed01589f0dfb1c29b SHA512 cbbd183cd940345f9b077b7da140414c27badc70fdf754e2f3c6f0e51c25072de46d7fe312b014c0eab359bd03e9dca0283260db00f079c5014e268d5c5ef5c9 DIST podofo-0.9.8-bug-888463.patch 1269 BLAKE2B 632e9326112eecb484a15a532fc218263eab081acaf2af2bc1cc3d1020347846ce9ce82147d9d2fa9b42d690270b01b68eaf621cfbbdcfce041b8d651754c08e SHA512 9b0764d8697fad57107647a620f6dbe5d8025628faf02b1d6839d3f975216b16a58ccc115f58809aa4e31fb6b4b487b1490eedf468ddc8b90e494f68d8e50dc6 DIST podofo-0.9.8.tar.gz 1012918 BLAKE2B 5d343128bcf06dbb8ef1d70b32f580a800726c33e4c14c86a6c7df0278a34b2d96cba7975c00d32e792596ca3cb54fa66fee262b49a240cd52e31646947b943e SHA512 b220322114450f1656c73d325f5172bc4cec0b1913e98b4eb2455f8ed7394bcaa47438d41003c9678937ef44d411e135431ddd6784f83d3663337d471baa02b1 -EBUILD podofo-0.10.1.ebuild 1616 BLAKE2B c6844f2e48aa96ab1cad09230bbe82885c1d22919861b3994f5e138c274cd7548d3cca2fc0c67ba3a721cc4aa8a628196e6568795a81023d085041496edc70d8 SHA512 4f62a79ffe7d4940414294a883d015b68f574002a5f0ca029e7bed83103b1bc312606f1f3a238686227d6d0fea043f220054482b95ecd347236ce1dd05c3bbdb +EBUILD podofo-0.10.1-r1.ebuild 2271 BLAKE2B 88adc6154ecfd642475e0b77ad9ccbf2f3c13d617ff3679ea32b95c435c78fedd0da80341f620f9b655b14995e26a42eaa2b3083db4d3b40065c17a3f2b095d5 SHA512 9a3ad3f91f9ce0b0c0716360fb242b51ab6789c45d617de51d28a2cd528e5e26056978cf38ea2794ae607aadd8b78213c01c9c782254f1481501e444c37517b7 EBUILD podofo-0.9.8-r1.ebuild 3304 BLAKE2B 9914548743904ca027878a0c8584786e427700744bd6e56bc8f4c4b21de837a85d66cf74c56072b7ae39a918202a2f2955c521439f8aa4699327229d430026c1 SHA512 dd67345ef90972668c896cbb81f3a8bb31289da2a008f8b2b896d9f80cc5c0bb2df24348cbc9a92e753a072f7630ee474567194eb723990186d248667cbd8470 MISC metadata.xml 485 BLAKE2B 80da5271943f738cfbc6076d00e93ea404208f8d24604beab0f2cfd339efc535e1b217f87f9d2a87908db0c9c1b77759b66355d5c0a3f61aef128b44990c9969 SHA512 4ea145783ae9f42702dcf2936d2f5bed576f0222675f481d7a2118d44ab7eecfa12d889707942a5c60482f37e1e36e2476657fd401d523022cc1b2d9c76e56ca diff --git a/app-text/podofo/podofo-0.10.1-r1.ebuild b/app-text/podofo/podofo-0.10.1-r1.ebuild new file mode 100644 index 000000000000..01677dd282b6 --- /dev/null +++ b/app-text/podofo/podofo-0.10.1-r1.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake flag-o-matic + +DESCRIPTION="PoDoFo is a C++ library to work with the PDF file format" +HOMEPAGE="https://github.com/podofo/podofo" +# testsuite resources require separate download. Reported at https://github.com/podofo/podofo/issues/102 +SRC_URI="https://github.com/podofo/podofo/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz + test? ( + https://github.com/podofo/podofo-resources/archive/4afe5c3fdb543a4347681b2e52252f1b10f12f24.tar.gz + -> ${P}-test-resources.tar.gz + ) +" + +LICENSE="LGPL-2+ tools? ( GPL-2+ )" +SLOT="0/2" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86" +IUSE="idn jpeg tiff png fontconfig test tools" +RESTRICT="!test? ( test )" + +RDEPEND=" + idn? ( net-dns/libidn:= ) + dev-libs/openssl:= + fontconfig? ( media-libs/fontconfig:= ) + media-libs/freetype:2= + jpeg? ( media-libs/libjpeg-turbo:= ) + png? ( media-libs/libpng:= ) + dev-libs/libxml2 + tiff? ( media-libs/tiff:= ) + sys-libs/zlib:=" +DEPEND="${RDEPEND}" +BDEPEND=" + virtual/pkgconfig + test? ( fontconfig? ( media-fonts/liberation-fonts ) ) +" + +src_prepare() { + cmake_src_prepare + if use test; then + rmdir extern/resources || die + mv "${WORKDIR}"/podofo-resources-4afe5c3fdb543a4347681b2e52252f1b10f12f24 extern/resources || die + fi +} + +src_configure() { + local mycmakeargs=( + -DPODOFO_BUILD_TEST=$(usex test ON OFF) + -DPODOFO_BUILD_TOOLS=$(usex tools ON OFF) + $(cmake_use_find_package idn Libidn) + $(cmake_use_find_package jpeg JPEG) + $(cmake_use_find_package tiff TIFF) + $(cmake_use_find_package png PNG) + $(cmake_use_find_package fontconfig Fontconfig) + ) + + # some optimizations cause testsuite failures which may indicate + # unsoundness with contraction. Be cautious for now. Reported + # upstream as https://github.com/podofo/podofo/issues/103 + append-cxxflags $(test-flags-CXX -ffp-contract=off) + + cmake_src_configure +} + +src_test() { + local CMAKE_SKIP_TESTS=( + $(usev !png 'TestImage3') + $(usev !jpeg 'TestImage2 TestImage4 TestImage5') + # relies on finding arial font + $(usev !fontconfig 'testLoadEncrypedFilePdfMemDocument testLoadEncrypedFilePdfParser testCyclicTree testNestedArrayTree testEmptyKidsTree testNestedArrayTree testCreateDelete') + ) + + cmake_src_test +} diff --git a/app-text/podofo/podofo-0.10.1.ebuild b/app-text/podofo/podofo-0.10.1.ebuild deleted file mode 100644 index 29d54510af38..000000000000 --- a/app-text/podofo/podofo-0.10.1.ebuild +++ /dev/null @@ -1,56 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit cmake - -DESCRIPTION="PoDoFo is a C++ library to work with the PDF file format" -HOMEPAGE="https://github.com/podofo/podofo" -# testsuite resources require separate download. Reported at https://github.com/podofo/podofo/issues/102 -SRC_URI="https://github.com/podofo/podofo/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz - test? ( - https://github.com/podofo/podofo-resources/archive/4afe5c3fdb543a4347681b2e52252f1b10f12f24.tar.gz - -> ${P}-test-resources.tar.gz - ) -" - -LICENSE="LGPL-2+ tools? ( GPL-2+ )" -SLOT="0/2" -KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86" -IUSE="idn jpeg tiff png fontconfig test tools" -RESTRICT="!test? ( test )" - -RDEPEND=" - idn? ( net-dns/libidn:= ) - dev-libs/openssl:= - fontconfig? ( media-libs/fontconfig:= ) - media-libs/freetype:2= - jpeg? ( media-libs/libjpeg-turbo:= ) - png? ( media-libs/libpng:= ) - dev-libs/libxml2 - tiff? ( media-libs/tiff:= ) - sys-libs/zlib:=" -DEPEND="${RDEPEND}" -BDEPEND="virtual/pkgconfig" - -src_prepare() { - cmake_src_prepare - if use test; then - rmdir extern/resources || die - mv "${WORKDIR}"/podofo-resources-4afe5c3fdb543a4347681b2e52252f1b10f12f24 extern/resources || die - fi -} - -src_configure() { - local mycmakeargs=( - -DPODOFO_BUILD_TEST=$(usex test ON OFF) - -DPODOFO_BUILD_TOOLS=$(usex tools ON OFF) - $(cmake_use_find_package idn Libidn) - $(cmake_use_find_package jpeg JPEG) - $(cmake_use_find_package tiff TIFF) - $(cmake_use_find_package png PNG) - $(cmake_use_find_package fontconfig Fontconfig) - ) - cmake_src_configure -} -- cgit v1.2.3