diff options
author | Sam James <sam@gentoo.org> | 2022-06-04 00:49:15 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-06-04 01:05:58 +0100 |
commit | 0c306efa9df43d300c267fc93aaa89558c11cbea (patch) | |
tree | 0cccf0cc3cacf33f81de4c6817897752be657b89 /dev-perl/Sereal-Encoder | |
parent | dev-perl/Sereal-Decoder: add 4.23.0 (diff) | |
download | gentoo-0c306efa9df43d300c267fc93aaa89558c11cbea.tar.gz gentoo-0c306efa9df43d300c267fc93aaa89558c11cbea.tar.bz2 gentoo-0c306efa9df43d300c267fc93aaa89558c11cbea.zip |
dev-perl/Sereal-Encoder: add 4.23.0
Unbundles csnappy, miniz.
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-perl/Sereal-Encoder')
-rw-r--r-- | dev-perl/Sereal-Encoder/Manifest | 1 | ||||
-rw-r--r-- | dev-perl/Sereal-Encoder/Sereal-Encoder-4.23.0.ebuild | 81 |
2 files changed, 82 insertions, 0 deletions
diff --git a/dev-perl/Sereal-Encoder/Manifest b/dev-perl/Sereal-Encoder/Manifest index 55f3bd36833c..7194b621589a 100644 --- a/dev-perl/Sereal-Encoder/Manifest +++ b/dev-perl/Sereal-Encoder/Manifest @@ -1 +1,2 @@ DIST Sereal-Encoder-4.018.tar.gz 700306 BLAKE2B 92e2d005b48c9714761dd6abb390de14f31642b05850664ff396e3d92958cb715599e922d7bc5da9912047ebbcae3f7631e585ccb35ff16b15e1e28a15d1fb9a SHA512 021586f02560906fa315cf7eefc877ff029c123550dd2889a90d8e36e2d480bc4c53fa7437728cb73bda6da886af52f1b58661796f78859c7b41f62a2000a070 +DIST Sereal-Encoder-4.023.tar.gz 723637 BLAKE2B 59abae93a719e13163b028c734d7fc9551d79b12c7a7e0db5dee92babce8567fa999cd44f26f79bbfb1299cc513ccc6bd4e3581aa3e168b119de1f6303c3bc38 SHA512 dc4b1b4e1d7977c1f7c8f00c7c0d1a475b785ccda29aee22a6cd09593000b176027d535f2820dd33de8820ec63cb2522d2eee4b6bd5cbbf432d5cf45437b9a67 diff --git a/dev-perl/Sereal-Encoder/Sereal-Encoder-4.23.0.ebuild b/dev-perl/Sereal-Encoder/Sereal-Encoder-4.23.0.ebuild new file mode 100644 index 000000000000..3590bcf78e08 --- /dev/null +++ b/dev-perl/Sereal-Encoder/Sereal-Encoder-4.23.0.ebuild @@ -0,0 +1,81 @@ +# 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 serialization" +SLOT="0" +KEYWORDS="~amd64" + +# Note: bundled zstd fails compile +RDEPEND=" + virtual/perl-XSLoader + app-arch/csnappy:= + app-arch/zstd:= + dev-libs/miniz:= +" +DEPEND=" + app-arch/csnappy:= + app-arch/zstd:= + dev-libs/miniz:= +" +# Tester note: ideally you want dev-perl/Sereal-Decoder +# as well, but we can't depend on it because it forms +# a tight cycle if we do +BDEPEND="${RDEPEND} + >=virtual/perl-ExtUtils-MakeMaker-7.0.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 +} |