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 4C043158091 for ; Sat, 4 Jun 2022 00:06:16 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 39D95E09B7; Sat, 4 Jun 2022 00:06:15 +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 50702E09B8 for ; Sat, 4 Jun 2022 00:06:13 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 46904341928 for ; Sat, 4 Jun 2022 00:06:12 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 21FE64EC for ; Sat, 4 Jun 2022 00:06:10 +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: <1654301141.21c38cef4234688e50377827cb4b404a27618941.sam@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/Manifest dev-perl/Sereal-Decoder/Sereal-Decoder-4.23.0.ebuild X-VCS-Directories: dev-perl/Sereal-Decoder/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 21c38cef4234688e50377827cb4b404a27618941 X-VCS-Branch: master Date: Sat, 4 Jun 2022 00:06:10 +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: 700000c6-0f3e-49d2-87d8-7ac4c0bf1eeb X-Archives-Hash: 86d89182db3466cc1121e71fd76d2d22 commit: 21c38cef4234688e50377827cb4b404a27618941 Author: Sam James gentoo org> AuthorDate: Fri Jun 3 22:46:42 2022 +0000 Commit: Sam James gentoo org> CommitDate: Sat Jun 4 00:05:41 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=21c38cef dev-perl/Sereal-Decoder: add 4.23.0 Unbundles csnappy, miniz. Bug: https://bugs.gentoo.org/849578 Signed-off-by: Sam James gentoo.org> dev-perl/Sereal-Decoder/Manifest | 1 + .../Sereal-Decoder/Sereal-Decoder-4.23.0.ebuild | 79 ++++++++++++++++++++++ 2 files changed, 80 insertions(+) diff --git a/dev-perl/Sereal-Decoder/Manifest b/dev-perl/Sereal-Decoder/Manifest index a8bdb899df0a..6f8430042d37 100644 --- a/dev-perl/Sereal-Decoder/Manifest +++ b/dev-perl/Sereal-Decoder/Manifest @@ -1 +1,2 @@ DIST Sereal-Decoder-4.018.tar.gz 692820 BLAKE2B 9bafd14f3dab8c7c2c3c9e5eb8463a1681430ada500e1ad8543c77587f5117c564cad6043cd0e00b55d7c80fef1f62f2223f232b803546ead349439b62f25899 SHA512 18e4d54c1930187fbcfc39a39ef8512c1450ac3e5d22bee419e8333cbda1e08bcb1355bc2abfc388f9d45dfae3b8bcc101a19646b7caa670359bae98fccf87a3 +DIST Sereal-Decoder-4.023.tar.gz 716188 BLAKE2B fe7b59906ce96629f8f7f8c94d04410388295d30adc05b1b9a3ea88606a4c612c1fca80451b636e213c1abc57dcf628fae18125aafef5849ec91cb3e01bd5f92 SHA512 9380853532cad110758db119efd51a4004dda1c6c6065afb0ee5e67c79a3f3baaa4767abaac6224f9bccb48214c7e73bd5c0748868301b1be0bb50534592e6ae diff --git a/dev-perl/Sereal-Decoder/Sereal-Decoder-4.23.0.ebuild b/dev-perl/Sereal-Decoder/Sereal-Decoder-4.23.0.ebuild new file mode 100644 index 000000000000..0f341ef831c0 --- /dev/null +++ b/dev-perl/Sereal-Decoder/Sereal-Decoder-4.23.0.ebuild @@ -0,0 +1,79 @@ +# 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 flag-o-matic 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:= +" +DEPEND=" + app-arch/csnappy:= + app-arch/zstd:= + dev-libs/miniz:= +" +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_configure() { + append-cflags "-I${ESYSROOT}/usr/include/miniz -DHAVE_MINIZ" + append-ldflags "-L${ESYSROOT}/usr/$(get_libdir)/miniz" + + local myconf=( + OPTIMIZE="${CFLAGS}" + LDFLAGS="${LDFLAGS}" + ) + + perl-module_src_configure +} + +src_compile() { + # TODO: switch to pkg-config when bug #849578 is fixed + DIST_MAKE=( + "INC=-I${ESYSROOT}/usr/include/miniz" + "OTHERLDFLAGS=-lminiz" + ) + + #DIST_MAKE=( + # "INC=$($(tc-getPKG_CONFIG) --cflags miniz)" + # "OTHERLDFLAGS=$($(tc-getPKG_CONFIG) --libs miniz)" + #) + + perl-module_src_compile +}