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 D4EA5158091 for ; Sat, 4 Jun 2022 19:49:58 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 18B2FE08F1; Sat, 4 Jun 2022 19:49:58 +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 F2137E08F1 for ; Sat, 4 Jun 2022 19:49:57 +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 104043420F4 for ; Sat, 4 Jun 2022 19:49:57 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9C0444E7 for ; Sat, 4 Jun 2022 19:49:55 +0000 (UTC) From: "Matthew Smith" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Matthew Smith" Message-ID: <1654372166.bb88134e0de08bf417c06beb9af45635945cc0cc.matthew@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-perl/Sereal-Decoder/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-perl/Sereal-Decoder/Sereal-Decoder-4.23.0-r1.ebuild X-VCS-Directories: dev-perl/Sereal-Decoder/ X-VCS-Committer: matthew X-VCS-Committer-Name: Matthew Smith X-VCS-Revision: bb88134e0de08bf417c06beb9af45635945cc0cc X-VCS-Branch: master Date: Sat, 4 Jun 2022 19:49:55 +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: 45fbf6a7-a45d-4665-a568-342c84dbc1aa X-Archives-Hash: a69c4d4ba1e9c9c2ff56cc869368a46d commit: bb88134e0de08bf417c06beb9af45635945cc0cc Author: Matthew Smith gentoo org> AuthorDate: Sat Jun 4 09:00:40 2022 +0000 Commit: Matthew Smith gentoo org> CommitDate: Sat Jun 4 19:49:26 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bb88134e dev-perl/Sereal-Decoder: Use miniz pkg-config file Bug: https://bugs.gentoo.org/849578 Signed-off-by: Matthew Smith gentoo.org> .../Sereal-Decoder/Sereal-Decoder-4.23.0-r1.ebuild | 61 ++++++++++++++++++++++ 1 file changed, 61 insertions(+) diff --git a/dev-perl/Sereal-Decoder/Sereal-Decoder-4.23.0-r1.ebuild b/dev-perl/Sereal-Decoder/Sereal-Decoder-4.23.0-r1.ebuild new file mode 100644 index 000000000000..1570f492ae58 --- /dev/null +++ b/dev-perl/Sereal-Decoder/Sereal-Decoder-4.23.0-r1.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DIST_AUTHOR=YVES +DIST_VERSION=4.023 +inherit edo perl-module toolchain-funcs + +DESCRIPTION="Fast, compact, powerful binary deserialization" +SLOT="0" +KEYWORDS="~amd64" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND=" + virtual/perl-XSLoader + app-arch/csnappy:= + app-arch/zstd:= + >=dev-libs/miniz-2.2.0-r1:= +" +DEPEND=" + app-arch/csnappy:= + app-arch/zstd:= + >=dev-libs/miniz-2.2.0-r1:= +" +BDEPEND="${RDEPEND} + >=virtual/perl-ExtUtils-MakeMaker-7.0 + >=virtual/perl-ExtUtils-ParseXS-2.210.0 + virtual/perl-File-Path + test? ( + virtual/perl-Data-Dumper + virtual/perl-File-Spec + virtual/perl-Scalar-List-Utils + dev-perl/Test-Deep + dev-perl/Test-Differences + dev-perl/Test-LongString + >=virtual/perl-Test-Simple-0.880.0 + dev-perl/Test-Warn + ) +" + +src_prepare() { + local bundled_lib + for bundled_lib in inc/Devel snappy miniz{.c,.h} zstd ; do + edo rm -r ${bundled_lib} + done + + sed -i -e "/miniz.*OBJ_EXT/d" inc/Sereal/BuildTools.pm || die + + perl-module_src_prepare +} + +src_compile() { + DIST_MAKE=( + "INC=$($(tc-getPKG_CONFIG) --cflags miniz)" + "OTHERLDFLAGS=$($(tc-getPKG_CONFIG) --libs miniz)" + ) + + perl-module_src_compile +}