summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Smith <matthew@gentoo.org>2022-06-04 10:00:40 +0100
committerMatthew Smith <matthew@gentoo.org>2022-06-04 20:49:26 +0100
commitbb88134e0de08bf417c06beb9af45635945cc0cc (patch)
tree8f79b85911d3a6ca7fe767d612febf8986b740ea /dev-perl/Sereal-Decoder
parentdev-perl/Sereal-Encoder: Use miniz pkg-config file (diff)
downloadgentoo-bb88134e0de08bf417c06beb9af45635945cc0cc.tar.gz
gentoo-bb88134e0de08bf417c06beb9af45635945cc0cc.tar.bz2
gentoo-bb88134e0de08bf417c06beb9af45635945cc0cc.zip
dev-perl/Sereal-Decoder: Use miniz pkg-config file
Bug: https://bugs.gentoo.org/849578 Signed-off-by: Matthew Smith <matthew@gentoo.org>
Diffstat (limited to 'dev-perl/Sereal-Decoder')
-rw-r--r--dev-perl/Sereal-Decoder/Sereal-Decoder-4.23.0-r1.ebuild61
1 files changed, 61 insertions, 0 deletions
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
+}