1 |
commit: bb88134e0de08bf417c06beb9af45635945cc0cc |
2 |
Author: Matthew Smith <matthew <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jun 4 09:00:40 2022 +0000 |
4 |
Commit: Matthew Smith <matthew <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jun 4 19:49:26 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bb88134e |
7 |
|
8 |
dev-perl/Sereal-Decoder: Use miniz pkg-config file |
9 |
|
10 |
Bug: https://bugs.gentoo.org/849578 |
11 |
Signed-off-by: Matthew Smith <matthew <AT> gentoo.org> |
12 |
|
13 |
.../Sereal-Decoder/Sereal-Decoder-4.23.0-r1.ebuild | 61 ++++++++++++++++++++++ |
14 |
1 file changed, 61 insertions(+) |
15 |
|
16 |
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 |
17 |
new file mode 100644 |
18 |
index 000000000000..1570f492ae58 |
19 |
--- /dev/null |
20 |
+++ b/dev-perl/Sereal-Decoder/Sereal-Decoder-4.23.0-r1.ebuild |
21 |
@@ -0,0 +1,61 @@ |
22 |
+# Copyright 1999-2022 Gentoo Authors |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=8 |
26 |
+ |
27 |
+DIST_AUTHOR=YVES |
28 |
+DIST_VERSION=4.023 |
29 |
+inherit edo perl-module toolchain-funcs |
30 |
+ |
31 |
+DESCRIPTION="Fast, compact, powerful binary deserialization" |
32 |
+SLOT="0" |
33 |
+KEYWORDS="~amd64" |
34 |
+IUSE="test" |
35 |
+RESTRICT="!test? ( test )" |
36 |
+ |
37 |
+RDEPEND=" |
38 |
+ virtual/perl-XSLoader |
39 |
+ app-arch/csnappy:= |
40 |
+ app-arch/zstd:= |
41 |
+ >=dev-libs/miniz-2.2.0-r1:= |
42 |
+" |
43 |
+DEPEND=" |
44 |
+ app-arch/csnappy:= |
45 |
+ app-arch/zstd:= |
46 |
+ >=dev-libs/miniz-2.2.0-r1:= |
47 |
+" |
48 |
+BDEPEND="${RDEPEND} |
49 |
+ >=virtual/perl-ExtUtils-MakeMaker-7.0 |
50 |
+ >=virtual/perl-ExtUtils-ParseXS-2.210.0 |
51 |
+ virtual/perl-File-Path |
52 |
+ test? ( |
53 |
+ virtual/perl-Data-Dumper |
54 |
+ virtual/perl-File-Spec |
55 |
+ virtual/perl-Scalar-List-Utils |
56 |
+ dev-perl/Test-Deep |
57 |
+ dev-perl/Test-Differences |
58 |
+ dev-perl/Test-LongString |
59 |
+ >=virtual/perl-Test-Simple-0.880.0 |
60 |
+ dev-perl/Test-Warn |
61 |
+ ) |
62 |
+" |
63 |
+ |
64 |
+src_prepare() { |
65 |
+ local bundled_lib |
66 |
+ for bundled_lib in inc/Devel snappy miniz{.c,.h} zstd ; do |
67 |
+ edo rm -r ${bundled_lib} |
68 |
+ done |
69 |
+ |
70 |
+ sed -i -e "/miniz.*OBJ_EXT/d" inc/Sereal/BuildTools.pm || die |
71 |
+ |
72 |
+ perl-module_src_prepare |
73 |
+} |
74 |
+ |
75 |
+src_compile() { |
76 |
+ DIST_MAKE=( |
77 |
+ "INC=$($(tc-getPKG_CONFIG) --cflags miniz)" |
78 |
+ "OTHERLDFLAGS=$($(tc-getPKG_CONFIG) --libs miniz)" |
79 |
+ ) |
80 |
+ |
81 |
+ perl-module_src_compile |
82 |
+} |