1 |
commit: 71278d7a119fdc4d27678801ec110c0fbeebf17b |
2 |
Author: Matthew Smith <matthew <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jun 4 09:00:20 2022 +0000 |
4 |
Commit: Matthew Smith <matthew <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jun 4 19:49:23 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=71278d7a |
7 |
|
8 |
dev-perl/Sereal-Encoder: 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-Encoder/Sereal-Encoder-4.23.0-r1.ebuild | 63 ++++++++++++++++++++++ |
14 |
1 file changed, 63 insertions(+) |
15 |
|
16 |
diff --git a/dev-perl/Sereal-Encoder/Sereal-Encoder-4.23.0-r1.ebuild b/dev-perl/Sereal-Encoder/Sereal-Encoder-4.23.0-r1.ebuild |
17 |
new file mode 100644 |
18 |
index 000000000000..4000313c09b4 |
19 |
--- /dev/null |
20 |
+++ b/dev-perl/Sereal-Encoder/Sereal-Encoder-4.23.0-r1.ebuild |
21 |
@@ -0,0 +1,63 @@ |
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 serialization" |
32 |
+SLOT="0" |
33 |
+KEYWORDS="~amd64" |
34 |
+ |
35 |
+# Note: bundled zstd fails compile |
36 |
+RDEPEND=" |
37 |
+ virtual/perl-XSLoader |
38 |
+ app-arch/csnappy:= |
39 |
+ app-arch/zstd:= |
40 |
+ >=dev-libs/miniz-2.2.0-r1:= |
41 |
+" |
42 |
+DEPEND=" |
43 |
+ app-arch/csnappy:= |
44 |
+ app-arch/zstd:= |
45 |
+ >=dev-libs/miniz-2.2.0-r1:= |
46 |
+" |
47 |
+# Tester note: ideally you want dev-perl/Sereal-Decoder |
48 |
+# as well, but we can't depend on it because it forms |
49 |
+# a tight cycle if we do |
50 |
+BDEPEND="${RDEPEND} |
51 |
+ >=virtual/perl-ExtUtils-MakeMaker-7.0.0 |
52 |
+ >=virtual/perl-ExtUtils-ParseXS-2.210.0 |
53 |
+ virtual/perl-File-Path |
54 |
+ test? ( |
55 |
+ virtual/perl-Data-Dumper |
56 |
+ virtual/perl-File-Spec |
57 |
+ virtual/perl-Scalar-List-Utils |
58 |
+ dev-perl/Test-Deep |
59 |
+ dev-perl/Test-Differences |
60 |
+ dev-perl/Test-LongString |
61 |
+ >=virtual/perl-Test-Simple-0.880.0 |
62 |
+ dev-perl/Test-Warn |
63 |
+ ) |
64 |
+" |
65 |
+ |
66 |
+src_prepare() { |
67 |
+ local bundled_lib |
68 |
+ for bundled_lib in inc/Devel snappy miniz{.c,.h} zstd ; do |
69 |
+ edo rm -r ${bundled_lib} |
70 |
+ done |
71 |
+ |
72 |
+ sed -i -e "/miniz.*OBJ_EXT/d" inc/Sereal/BuildTools.pm || die |
73 |
+ |
74 |
+ perl-module_src_prepare |
75 |
+} |
76 |
+ |
77 |
+src_compile() { |
78 |
+ DIST_MAKE=( |
79 |
+ "INC=$($(tc-getPKG_CONFIG) --cflags miniz)" |
80 |
+ "OTHERLDFLAGS=$($(tc-getPKG_CONFIG) --libs miniz)" |
81 |
+ ) |
82 |
+ |
83 |
+ perl-module_src_compile |
84 |
+} |