From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1442936-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 6949B158094
	for <garchives@archives.gentoo.org>; Tue,  4 Oct 2022 09:09:12 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 3BFFCE0917;
	Tue,  4 Oct 2022 09:09:11 +0000 (UTC)
Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4])
	(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 1B49AE0917
	for <gentoo-commits@lists.gentoo.org>; Tue,  4 Oct 2022 09:09:11 +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 3B2A0340EFD
	for <gentoo-commits@lists.gentoo.org>; Tue,  4 Oct 2022 09:09:10 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id C6553603
	for <gentoo-commits@lists.gentoo.org>; Tue,  4 Oct 2022 09:09:08 +0000 (UTC)
From: "Sam James" <sam@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, "Sam James" <sam@gentoo.org>
Message-ID: <1664874539.442db4d45a15b497cf43e75e3ad38ae90aaaabbc.sam@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/ghostscript-gpl/
X-VCS-Repository: repo/gentoo
X-VCS-Files: app-text/ghostscript-gpl/ghostscript-gpl-10.0.0-r1.ebuild app-text/ghostscript-gpl/ghostscript-gpl-10.0.0.ebuild
X-VCS-Directories: app-text/ghostscript-gpl/
X-VCS-Committer: sam
X-VCS-Committer-Name: Sam James
X-VCS-Revision: 442db4d45a15b497cf43e75e3ad38ae90aaaabbc
X-VCS-Branch: master
Date: Tue,  4 Oct 2022 09:09:08 +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: e6ad7f3f-c207-4b7a-8bbc-9c41ff80a873
X-Archives-Hash: 54c0308a6fdd3fcbf067975f63f9364d

commit:     442db4d45a15b497cf43e75e3ad38ae90aaaabbc
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Oct  4 09:08:21 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Oct  4 09:08:59 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=442db4d4

app-text/ghostscript-gpl: fix version used for /usr/share/poppler/* symlink

Sometimes it deviates from the actual tarball & tag version, apparently.

Closes: https://bugs.gentoo.org/844115
Thanks-to: Guillaume Ayoub <guillaume <AT> yabz.fr>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 ...stscript-gpl-10.0.0.ebuild => ghostscript-gpl-10.0.0-r1.ebuild} | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/app-text/ghostscript-gpl/ghostscript-gpl-10.0.0.ebuild b/app-text/ghostscript-gpl/ghostscript-gpl-10.0.0-r1.ebuild
similarity index 94%
rename from app-text/ghostscript-gpl/ghostscript-gpl-10.0.0.ebuild
rename to app-text/ghostscript-gpl/ghostscript-gpl-10.0.0-r1.ebuild
index 131bd53e91c0..6a6286bd995e 100644
--- a/app-text/ghostscript-gpl/ghostscript-gpl-10.0.0.ebuild
+++ b/app-text/ghostscript-gpl/ghostscript-gpl-10.0.0-r1.ebuild
@@ -169,8 +169,13 @@ src_install() {
 	cd "${S}/ijs" || die
 	emake DESTDIR="${D}" install
 
+	# Sometimes the upstream versioning deviates from the tarball(!)
+	# bug #844115#c32
+	local my_gs_version=$(find "${ED}"/usr/share/ghostscript/ -maxdepth 1 -mindepth 1 -type d || die)
+	my_gs_version=${my_gs_version##*/}
+
 	# Install the CMaps from poppler-data properly, bug #409361
-	dosym -r /usr/share/poppler/cMaps /usr/share/ghostscript/${PV}/Resource/CMap
+	dosym -r /usr/share/poppler/cMaps /usr/share/ghostscript/${my_gs_version}/Resource/CMap
 
 	if ! use static-libs; then
 		find "${ED}" -name '*.la' -delete || die