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 5CB5F158009 for ; Sun, 18 Jun 2023 23:46:10 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 954D4E084A; Sun, 18 Jun 2023 23:46:09 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.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 763D3E084A for ; Sun, 18 Jun 2023 23:46:09 +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) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id ABF2C34105A for ; Sun, 18 Jun 2023 23:46:08 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0C97DA91 for ; Sun, 18 Jun 2023 23:46:07 +0000 (UTC) From: "Sam James" 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" Message-ID: <1687131557.4ff6f966dc47a58776cd03d563f587eb6ea7811d.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-perl/Sereal-Encoder/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-perl/Sereal-Encoder/Manifest dev-perl/Sereal-Encoder/Sereal-Encoder-5.4.0.ebuild X-VCS-Directories: dev-perl/Sereal-Encoder/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 4ff6f966dc47a58776cd03d563f587eb6ea7811d X-VCS-Branch: master Date: Sun, 18 Jun 2023 23:46:07 +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: 146faf9b-274f-4ea6-839f-52431ba9a45c X-Archives-Hash: f687d5eb6ad91996bf3e2ab23f289a35 commit: 4ff6f966dc47a58776cd03d563f587eb6ea7811d Author: Sam James gentoo org> AuthorDate: Sun Jun 18 23:30:23 2023 +0000 Commit: Sam James gentoo org> CommitDate: Sun Jun 18 23:39:17 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4ff6f966 dev-perl/Sereal-Encoder: add 5.4.0 Signed-off-by: Sam James gentoo.org> dev-perl/Sereal-Encoder/Manifest | 1 + .../Sereal-Encoder/Sereal-Encoder-5.4.0.ebuild | 66 ++++++++++++++++++++++ 2 files changed, 67 insertions(+) diff --git a/dev-perl/Sereal-Encoder/Manifest b/dev-perl/Sereal-Encoder/Manifest index 7194b621589a..5f148e12b30c 100644 --- a/dev-perl/Sereal-Encoder/Manifest +++ b/dev-perl/Sereal-Encoder/Manifest @@ -1,2 +1,3 @@ DIST Sereal-Encoder-4.018.tar.gz 700306 BLAKE2B 92e2d005b48c9714761dd6abb390de14f31642b05850664ff396e3d92958cb715599e922d7bc5da9912047ebbcae3f7631e585ccb35ff16b15e1e28a15d1fb9a SHA512 021586f02560906fa315cf7eefc877ff029c123550dd2889a90d8e36e2d480bc4c53fa7437728cb73bda6da886af52f1b58661796f78859c7b41f62a2000a070 DIST Sereal-Encoder-4.023.tar.gz 723637 BLAKE2B 59abae93a719e13163b028c734d7fc9551d79b12c7a7e0db5dee92babce8567fa999cd44f26f79bbfb1299cc513ccc6bd4e3581aa3e168b119de1f6303c3bc38 SHA512 dc4b1b4e1d7977c1f7c8f00c7c0d1a475b785ccda29aee22a6cd09593000b176027d535f2820dd33de8820ec63cb2522d2eee4b6bd5cbbf432d5cf45437b9a67 +DIST Sereal-Encoder-5.004.tar.gz 836822 BLAKE2B 7e0fa107c3bb7f1d4dc766f3b197e2bc1e2535827471faeb0510b8c5aedd31bde2d21eba7074f4b8a9769db4dc9a4565996ee158afcaf692f529c0b8d05c015e SHA512 6ad25a4a3cdc3e7de7b7f47b7511154b5e6eca90a54b305a8d50f59dd1352000f054255912c4eeb6d37991813844068b1a0e2f544be27ac9bcea08fb6c0fc6d5 diff --git a/dev-perl/Sereal-Encoder/Sereal-Encoder-5.4.0.ebuild b/dev-perl/Sereal-Encoder/Sereal-Encoder-5.4.0.ebuild new file mode 100644 index 000000000000..8f7ccfab26a5 --- /dev/null +++ b/dev-perl/Sereal-Encoder/Sereal-Encoder-5.4.0.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DIST_AUTHOR=YVES +DIST_VERSION=5.004 +inherit edo perl-module toolchain-funcs + +DESCRIPTION="Fast, compact, powerful binary serialization" +SLOT="0" +KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86" + +# Note: bundled zstd fails to compile +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} + >=dev-perl/Devel-CheckLib-1.160.0 + >=virtual/perl-ExtUtils-MakeMaker-7.0.0 + >=virtual/perl-ExtUtils-ParseXS-2.210.0 + virtual/perl-File-Path + virtual/pkgconfig + 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 + >=dev-perl/Sereal-Decoder-${PV} + ) +" + +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() { + # UB + export USE_UNALIGNED=no + + DIST_MAKE=( + "INC=$($(tc-getPKG_CONFIG) --cflags miniz)" + "OTHERLDFLAGS=$($(tc-getPKG_CONFIG) --libs miniz)" + ) + + perl-module_src_compile +}