From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 2D264158013 for ; Tue, 5 Dec 2023 05:57:39 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 48E7B2BC01A; Tue, 5 Dec 2023 05:57:38 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 28A452BC01A for ; Tue, 5 Dec 2023 05:57:38 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 1ED38335D7B for ; Tue, 5 Dec 2023 05:57:37 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8AB4BAE2 for ; Tue, 5 Dec 2023 05:57:35 +0000 (UTC) From: "Zac Medico" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Zac Medico" Message-ID: <1701755090.e34f64ca9a922117791103971b101deed162066b.zmedico@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/podofo/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-text/podofo/Manifest app-text/podofo/podofo-0.10.2.ebuild X-VCS-Directories: app-text/podofo/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: e34f64ca9a922117791103971b101deed162066b X-VCS-Branch: master Date: Tue, 5 Dec 2023 05:57:35 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 46249927-6756-4682-b7b6-8ff5e5075406 X-Archives-Hash: 4bab101cfd584b9e50d153b072c810fc commit: e34f64ca9a922117791103971b101deed162066b Author: Zac Medico gentoo org> AuthorDate: Tue Dec 5 05:34:37 2023 +0000 Commit: Zac Medico gentoo org> CommitDate: Tue Dec 5 05:44:50 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e34f64ca app-text/podofo: add 0.10.2 Closes: https://bugs.gentoo.org/919046 Signed-off-by: Zac Medico gentoo.org> app-text/podofo/Manifest | 2 + app-text/podofo/podofo-0.10.2.ebuild | 74 ++++++++++++++++++++++++++++++++++++ 2 files changed, 76 insertions(+) diff --git a/app-text/podofo/Manifest b/app-text/podofo/Manifest index 706dc97a31bc..ad4bfbe4c18e 100644 --- a/app-text/podofo/Manifest +++ b/app-text/podofo/Manifest @@ -1,4 +1,6 @@ DIST podofo-0.10.1-test-resources.tar.gz 4228392 BLAKE2B 95526d145a18976d5b9f782dfcac15e17bc4ef20a22ca5892905a19193ad88c2855cb8551886754c334f6ca666b9b74fe9a3b5c89ce774fa24e579f563be57c6 SHA512 4cb33e5a6050ef745cda42b7fdf53fee9f45d4d488555b79c9cdd6680c5265065aac92ad3d72ea0b75eee9a73098f920a3dd61b7728db6d2171888cbc83c6d55 DIST podofo-0.10.1.tar.gz 1690279 BLAKE2B 0fc161c467ffce07c1b2cb1a2124ffddc6c18189b5c8b31dc1212921637601a667cd2b0d6f1269214bd0fe47e8853367283e3053813d45aed01589f0dfb1c29b SHA512 cbbd183cd940345f9b077b7da140414c27badc70fdf754e2f3c6f0e51c25072de46d7fe312b014c0eab359bd03e9dca0283260db00f079c5014e268d5c5ef5c9 +DIST podofo-0.10.2-libxml2-2.12.patch 1353 BLAKE2B 73ba1f94eaf6ec5b3896218dcdf385ca933795dbcc2b637b5dc7cf463b9a942d9fe777949c0c947583bd1dfca6b0f1e1b8fd7d11c2a3f6f51cea33063656b8e4 SHA512 8ea5d60e94568f1a34793453b9055e333b3d3587caec5919256ef1ad6843b66259fa26c6af35286947ddde6151452dd97837e7699c1bb3b2ba7641f6fcd61340 +DIST podofo-0.10.2.tar.gz 1690362 BLAKE2B 5ca1fb276d10fa85320d5cbe2c90dd3175ffbca24be860d57ad3c3958ac1f16e20642d615f68b8845511a1605b0af4c10a16cb66aa0092fa21ef02b363df23b0 SHA512 b5b7d4236a1f15b4eeee9d24210015b983910e88efa4727dd551f58b4d39cf7566314513b99099f54835b90a209cbf8231e04d19b63019223113abe6520fc932 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 diff --git a/app-text/podofo/podofo-0.10.2.ebuild b/app-text/podofo/podofo-0.10.2.ebuild new file mode 100644 index 000000000000..67a3c96f2b8d --- /dev/null +++ b/app-text/podofo/podofo-0.10.2.ebuild @@ -0,0 +1,74 @@ +# 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 + https://github.com/podofo/podofo/commit/5f4df41c552cb2357ff6fefdbe277b072a4c1c4a.patch -> ${P}-libxml2-2.12.patch + test? ( + https://github.com/podofo/podofo-resources/archive/4afe5c3fdb543a4347681b2e52252f1b10f12f24.tar.gz + -> podofo-0.10.1-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 ) ) +" + +PATCHES=("${DISTDIR}/${P}-libxml2-2.12.patch") + +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 +} + +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 +}