From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1585887-garchives=archives.gentoo.org@lists.gentoo.org>
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 8878B15803E
	for <garchives@archives.gentoo.org>; Sun, 31 Dec 2023 17:22:04 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id D74BA2BC058;
	Sun, 31 Dec 2023 17:22:02 +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))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id B56062BC058
	for <gentoo-commits@lists.gentoo.org>; Sun, 31 Dec 2023 17:22:02 +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 CF6F9335DEC
	for <gentoo-commits@lists.gentoo.org>; Sun, 31 Dec 2023 17:22:01 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 3922714AA
	for <gentoo-commits@lists.gentoo.org>; Sun, 31 Dec 2023 17:21:59 +0000 (UTC)
From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" <mgorny@gentoo.org>
Message-ID: <1704043313.d984f6872fa61936967e656ccc68d63e11db92a6.mgorny@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/qpdf/
X-VCS-Repository: repo/gentoo
X-VCS-Files: app-text/qpdf/Manifest app-text/qpdf/qpdf-11.6.4.ebuild
X-VCS-Directories: app-text/qpdf/
X-VCS-Committer: mgorny
X-VCS-Committer-Name: Michał Górny
X-VCS-Revision: d984f6872fa61936967e656ccc68d63e11db92a6
X-VCS-Branch: master
Date: Sun, 31 Dec 2023 17:21:59 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: cc0c16a5-f7a2-49d2-b267-db2f32135180
X-Archives-Hash: 74f884475c290bbac0aa2bfeb37de0b2

commit:     d984f6872fa61936967e656ccc68d63e11db92a6
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Dec 31 16:43:40 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Dec 31 17:21:53 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d984f687

app-text/qpdf: Bump to 11.6.4

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 app-text/qpdf/Manifest           |  3 ++
 app-text/qpdf/qpdf-11.6.4.ebuild | 97 ++++++++++++++++++++++++++++++++++++++++
 2 files changed, 100 insertions(+)

diff --git a/app-text/qpdf/Manifest b/app-text/qpdf/Manifest
index 74917605c3a1..98c0d0d15a54 100644
--- a/app-text/qpdf/Manifest
+++ b/app-text/qpdf/Manifest
@@ -2,3 +2,6 @@ DIST qpdf-11.5.0-doc.zip 6858454 BLAKE2B bd1e7f974eb2b0e22395216a1e3d55b18b1140c
 DIST qpdf-11.5.0.tar.gz 18638138 BLAKE2B 54545665a31cf0cbfc50faa18f1dc64f036cd5bfd2b274ff443718e704e26f3a8cf83600f9dd7d8039cf4bdcaf42e1c14f03db775226b56c8ba53be33e0ca522 SHA512 3c8504de11c34e7d623b829c0c987ba5555c2bdcfdd5d4408d29f321fd79154ec2d6fa76f45556046dfc931b51bd75e3062973c36c8020383acacbe56c90e04c
 DIST qpdf-11.6.3-doc.zip 6864204 BLAKE2B 05a9d44b877ab9eab4548646ec2cd8110a47e594b0b1d364c7a5d25b249efa368f94c0e549da8697f685fde17ce59378a32e6c31f5dcd1731c97a2434cbe5af0 SHA512 0cdeb6d408823a49909d2394a9cedd8ae5d4f9fd4f4dbef70ce60c60401bc9b78b1740669f46b78609f11b0b4c8bdaafe094158e52b9449dca32d6afd3ece377
 DIST qpdf-11.6.3.tar.gz 18660605 BLAKE2B c684dab7544fe6024db26c7538cc2e16319aeb6c023b53ea97ec9c5ae474ac67538a99a80524d924ac0758f0fc7d552dbea1a47df7595b25dbec121738a07ec8 SHA512 afc1d130e10bb527a7425ce39f6d93245c3d9b08002d104fdf0e909b586f80174fa2eed863794f10b76bab86a064b904eebca89902212accc45a68f9430c122e
+DIST qpdf-11.6.4-doc.zip 6865106 BLAKE2B e9d68c384fec1da18e4a677b6b1eed58cb2589609af937d39710a4cd8848df93f702778fe83868d2e3a6232fa4e7d044821770f954b558869e1ff435cb934d64 SHA512 2ebbf7b257adc56b27f645cdda9b311c21db4823f3fb6227a408e874a4aff4a0de2ccb578e71790287141cacac71e08d3f13b87e34041e0c6a980ea89918826e
+DIST qpdf-11.6.4.tar.gz 18655617 BLAKE2B 57e460f106989e9f5e882f80827c4f0346b4dc829e6dd2f960cd321a3dd6587d77b1fd2a94a5c0a2be32d5e2183e1d98fab53d37cbefe176814f221793807e8c SHA512 4e2497ae0f2524173b9288466e94a5bcab8326c153a605b4de7a7c55f640934818ecb40c2f9bbb7508c5bd7afd529fa1f88dd08647bfaa4d2b3b6118ca928c9a
+DIST qpdf-11.6.4.tar.gz.asc 833 BLAKE2B 423552746f54f52dc7149bc1ba6854dfc4df8e4bb9d076c2cf42196e81c16efdf7fffacf3f155c394042ca08a25a5006b007afe932e64697c3f4bd023837a18b SHA512 3b7a78a9233516f98a26b6c320903ed41bad065a2d7a54d4525c60fa7839bb577b7e3b2200df232e205cd844daa7d582a9970c375a9d40d21fc9782e60b41525

diff --git a/app-text/qpdf/qpdf-11.6.4.ebuild b/app-text/qpdf/qpdf-11.6.4.ebuild
new file mode 100644
index 000000000000..fa1477cfe723
--- /dev/null
+++ b/app-text/qpdf/qpdf-11.6.4.ebuild
@@ -0,0 +1,97 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit bash-completion-r1 cmake verify-sig
+
+DESCRIPTION="Command-line tool for structural, content-preserving transformation of PDF files"
+HOMEPAGE="
+	https://qpdf.sourceforge.net/
+	https://github.com/qpdf/qpdf/
+"
+SRC_URI="
+	https://github.com/qpdf/qpdf/releases/download/v${PV}/${P}.tar.gz
+	verify-sig? (
+		https://github.com/qpdf/qpdf/releases/download/v${PV}/${P}.tar.gz.asc
+	)
+"
+SRC_URI+=" doc? ( https://github.com/qpdf/qpdf/releases/download/v${PV}/${P}-doc.zip )"
+
+LICENSE="|| ( Apache-2.0 Artistic-2 )"
+# Subslot for libqpdf soname version (just represent via major version)
+SLOT="0/$(ver_cut 1)"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
+IUSE="doc examples gnutls test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+	media-libs/libjpeg-turbo:=
+	sys-libs/zlib
+	gnutls? ( net-libs/gnutls:= )
+	!gnutls? ( dev-libs/openssl:= )
+"
+DEPEND="
+	${RDEPEND}
+	test? (
+		app-text/ghostscript-gpl[tiff(+)]
+		media-libs/tiff
+		sys-apps/diffutils
+	)
+"
+BDEPEND="
+	dev-lang/perl
+	doc? ( app-arch/unzip )
+	verify-sig? ( sec-keys/openpgp-keys-jberkenbilt )
+"
+
+QA_CONFIG_IMPL_DECL_SKIP=(
+	# glibc only (bug #899052)
+	malloc_info
+)
+
+VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/jberkenbilt.asc
+
+src_unpack() {
+	if use verify-sig; then
+		verify-sig_verify_detached "${DISTDIR}"/${P}.tar.gz{,.asc}
+	fi
+
+	default
+}
+
+src_configure() {
+	local crypto_provider=$(usex gnutls GNUTLS OPENSSL)
+	local crypto_provider_lowercase=${crypto_provider,,}
+
+	# Keep an eye on https://qpdf.readthedocs.io/en/stable/packaging.html.
+	local mycmakeargs=(
+		-DINSTALL_EXAMPLES=$(usex examples)
+
+		# Avoid automagic crypto deps
+		-DUSE_IMPLICIT_CRYPTO=OFF
+		-DALLOW_CRYPTO_NATIVE=ON
+
+		# Breaks install with USE=-doc in 11.0.0?
+		#-DINSTALL_MANUAL=ON
+
+		-DDEFAULT_CRYPTO=${crypto_provider_lowercase}
+		-DREQUIRE_CRYPTO_${crypto_provider}=ON
+	)
+
+	cmake_src_configure
+}
+
+src_install() {
+	if use doc ; then
+		mv "${WORKDIR}"/${P}-doc "${BUILD_DIR}"/manual/doc-dist || die
+	fi
+
+	cmake_src_install
+
+	# Completions
+	dobashcomp completions/bash/qpdf
+
+	insinto /usr/share/zsh/site-functions
+	doins completions/zsh/_qpdf
+}