public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-perl/Sereal-Decoder/
Date: Sat,  4 Jun 2022 00:06:10 +0000 (UTC)	[thread overview]
Message-ID: <1654301141.21c38cef4234688e50377827cb4b404a27618941.sam@gentoo> (raw)

commit:     21c38cef4234688e50377827cb4b404a27618941
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Jun  3 22:46:42 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> 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 <sam <AT> 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
+}


             reply	other threads:[~2022-06-04  0:06 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-04  0:06 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-01-11 14:42 [gentoo-commits] repo/gentoo:master commit in: dev-perl/Sereal-Decoder/ Jakov Smolić
2025-01-10 11:44 Arthur Zamarin
2025-01-10  8:48 Arthur Zamarin
2025-01-10  4:41 WANG Xuerui
2025-01-10  4:17 Sam James
2025-01-10  4:17 Sam James
2023-08-02 13:19 Sam James
2023-07-24  4:03 Sam James
2023-06-18 23:46 Sam James
2023-01-13 14:09 Arthur Zamarin
2023-01-02  5:37 Sam James
2023-01-02  5:37 Sam James
2023-01-02  5:37 Sam James
2023-01-02  5:37 Sam James
2022-06-28 15:44 Arthur Zamarin
2022-06-20 17:57 Arthur Zamarin
2022-06-09 19:39 Arthur Zamarin
2022-06-06  0:54 Sam James
2022-06-05 12:47 Jakov Smolić
2022-06-04 21:03 Sam James
2022-06-04 20:00 Jakov Smolić
2022-06-04 19:49 Matthew Smith
2022-06-04  1:17 Sam James
2021-08-06 19:33 Andreas K. Hüttel
2021-08-02  2:25 Sam James
2021-08-01  7:40 Sam James
2021-04-30 21:27 Andreas K. Hüttel
2018-07-21 12:27 Kent Fredric
2018-06-24 20:25 Sergei Trofimovich
2018-06-10 18:14 Sergei Trofimovich
2018-06-10 16:55 Thomas Deutschmann
2018-06-10 15:38 Aaron Bauman
2018-06-09 10:06 Sergei Trofimovich
2018-01-08 23:36 Kent Fredric
2016-12-08 19:09 Kent Fredric

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1654301141.21c38cef4234688e50377827cb4b404a27618941.sam@gentoo \
    --to=sam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox