summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz93@gmail.com>2023-09-20 01:28:44 -0400
committerZac Medico <zmedico@gentoo.org>2023-09-20 23:17:48 -0700
commitfb167a63978ae916c47e7d9d8b8454d492a02838 (patch)
tree603107a4038d6233c30d6c3c396777f25538340e /app-text
parentdev-db/postgresql: Switch live to Meson (diff)
downloadgentoo-fb167a63978ae916c47e7d9d8b8454d492a02838.tar.gz
gentoo-fb167a63978ae916c47e7d9d8b8454d492a02838.tar.bz2
gentoo-fb167a63978ae916c47e7d9d8b8454d492a02838.zip
app-text/podofo: add 0.10.1
Upstream moved to github and did a lot of cleanup. I have taken the opportunity to drop lots of complicated logic that I don't understand the need for, but which doesn't seem to be relevant to 0.10.x anyway. This is effectively a brand-new ebuild. Of particular note, the library soname is now incremented in CMakeLists.txt (with real ABI tracking!) and is NOT simply the appended project version in full. The slot has been adjusted accordingly. Closes: https://github.com/gentoo/gentoo/pull/32941 Signed-off-by: Eli Schwartz <eschwartz93@gmail.com> Signed-off-by: Zac Medico <zmedico@gentoo.org>
Diffstat (limited to 'app-text')
-rw-r--r--app-text/podofo/Manifest2
-rw-r--r--app-text/podofo/metadata.xml2
-rw-r--r--app-text/podofo/podofo-0.10.1.ebuild65
3 files changed, 68 insertions, 1 deletions
diff --git a/app-text/podofo/Manifest b/app-text/podofo/Manifest
index 3049a57c0a5d..706dc97a31bc 100644
--- a/app-text/podofo/Manifest
+++ b/app-text/podofo/Manifest
@@ -1,2 +1,4 @@
+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.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/metadata.xml b/app-text/podofo/metadata.xml
index c0b71a582307..c274503a81d6 100644
--- a/app-text/podofo/metadata.xml
+++ b/app-text/podofo/metadata.xml
@@ -11,7 +11,7 @@
</flag>
</use>
<upstream>
+ <remote-id type="github">podofo/podofo</remote-id>
<remote-id type="sourceforge">podofo</remote-id>
- <changelog>https://sourceforge.net/p/podofo/code/commit_browser</changelog>
</upstream>
</pkgmetadata>
diff --git a/app-text/podofo/podofo-0.10.1.ebuild b/app-text/podofo/podofo-0.10.1.ebuild
new file mode 100644
index 000000000000..3d211d26ccf8
--- /dev/null
+++ b/app-text/podofo/podofo-0.10.1.ebuild
@@ -0,0 +1,65 @@
+# 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/${PV}"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
+IUSE="fontconfig idn jpeg png tiff 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
+
+ sed -i -e 's|TEST_CASE("testLoadEncrypedFilePdfParser")|void testLoadEncrypedFilePdfParser()|' \
+ -e 's|TEST_CASE("testLoadEncrypedFilePdfMemDocument")|void testLoadEncrypedFilePdfMemDocument()|' \
+ test/unit/EncryptTest.cpp || die
+ sed -i -e 's|TEST_CASE("testCyclicTree")|void testCyclicTree()|' \
+ -e 's|TEST_CASE("testEmptyKidsTree")|void testEmptyKidsTree()|' \
+ -e 's|TEST_CASE("testNestedArrayTree")|void testNestedArrayTree()|' \
+ -e 's|TEST_CASE("testCreateDelete")|void testCreateDelete()|' \
+ test/unit/PageTreeTest.cpp || 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
+}