1 |
commit: 21c38cef4234688e50377827cb4b404a27618941 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jun 3 22:46:42 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jun 4 00:05:41 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=21c38cef |
7 |
|
8 |
dev-perl/Sereal-Decoder: add 4.23.0 |
9 |
|
10 |
Unbundles csnappy, miniz. |
11 |
|
12 |
Bug: https://bugs.gentoo.org/849578 |
13 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
14 |
|
15 |
dev-perl/Sereal-Decoder/Manifest | 1 + |
16 |
.../Sereal-Decoder/Sereal-Decoder-4.23.0.ebuild | 79 ++++++++++++++++++++++ |
17 |
2 files changed, 80 insertions(+) |
18 |
|
19 |
diff --git a/dev-perl/Sereal-Decoder/Manifest b/dev-perl/Sereal-Decoder/Manifest |
20 |
index a8bdb899df0a..6f8430042d37 100644 |
21 |
--- a/dev-perl/Sereal-Decoder/Manifest |
22 |
+++ b/dev-perl/Sereal-Decoder/Manifest |
23 |
@@ -1 +1,2 @@ |
24 |
DIST Sereal-Decoder-4.018.tar.gz 692820 BLAKE2B 9bafd14f3dab8c7c2c3c9e5eb8463a1681430ada500e1ad8543c77587f5117c564cad6043cd0e00b55d7c80fef1f62f2223f232b803546ead349439b62f25899 SHA512 18e4d54c1930187fbcfc39a39ef8512c1450ac3e5d22bee419e8333cbda1e08bcb1355bc2abfc388f9d45dfae3b8bcc101a19646b7caa670359bae98fccf87a3 |
25 |
+DIST Sereal-Decoder-4.023.tar.gz 716188 BLAKE2B fe7b59906ce96629f8f7f8c94d04410388295d30adc05b1b9a3ea88606a4c612c1fca80451b636e213c1abc57dcf628fae18125aafef5849ec91cb3e01bd5f92 SHA512 9380853532cad110758db119efd51a4004dda1c6c6065afb0ee5e67c79a3f3baaa4767abaac6224f9bccb48214c7e73bd5c0748868301b1be0bb50534592e6ae |
26 |
|
27 |
diff --git a/dev-perl/Sereal-Decoder/Sereal-Decoder-4.23.0.ebuild b/dev-perl/Sereal-Decoder/Sereal-Decoder-4.23.0.ebuild |
28 |
new file mode 100644 |
29 |
index 000000000000..0f341ef831c0 |
30 |
--- /dev/null |
31 |
+++ b/dev-perl/Sereal-Decoder/Sereal-Decoder-4.23.0.ebuild |
32 |
@@ -0,0 +1,79 @@ |
33 |
+# Copyright 1999-2022 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=8 |
37 |
+ |
38 |
+DIST_AUTHOR=YVES |
39 |
+DIST_VERSION=4.023 |
40 |
+inherit edo perl-module flag-o-matic toolchain-funcs |
41 |
+ |
42 |
+DESCRIPTION="Fast, compact, powerful binary deserialization" |
43 |
+SLOT="0" |
44 |
+KEYWORDS="~amd64" |
45 |
+IUSE="test" |
46 |
+RESTRICT="!test? ( test )" |
47 |
+ |
48 |
+RDEPEND=" |
49 |
+ virtual/perl-XSLoader |
50 |
+ app-arch/csnappy:= |
51 |
+ app-arch/zstd:= |
52 |
+ dev-libs/miniz:= |
53 |
+" |
54 |
+DEPEND=" |
55 |
+ app-arch/csnappy:= |
56 |
+ app-arch/zstd:= |
57 |
+ dev-libs/miniz:= |
58 |
+" |
59 |
+BDEPEND="${RDEPEND} |
60 |
+ >=virtual/perl-ExtUtils-MakeMaker-7.0 |
61 |
+ >=virtual/perl-ExtUtils-ParseXS-2.210.0 |
62 |
+ virtual/perl-File-Path |
63 |
+ test? ( |
64 |
+ virtual/perl-Data-Dumper |
65 |
+ virtual/perl-File-Spec |
66 |
+ virtual/perl-Scalar-List-Utils |
67 |
+ dev-perl/Test-Deep |
68 |
+ dev-perl/Test-Differences |
69 |
+ dev-perl/Test-LongString |
70 |
+ >=virtual/perl-Test-Simple-0.880.0 |
71 |
+ dev-perl/Test-Warn |
72 |
+ ) |
73 |
+" |
74 |
+ |
75 |
+src_prepare() { |
76 |
+ local bundled_lib |
77 |
+ for bundled_lib in inc/Devel snappy miniz{.c,.h} zstd ; do |
78 |
+ edo rm -r ${bundled_lib} |
79 |
+ done |
80 |
+ |
81 |
+ sed -i -e "/miniz.*OBJ_EXT/d" inc/Sereal/BuildTools.pm || die |
82 |
+ |
83 |
+ perl-module_src_prepare |
84 |
+} |
85 |
+ |
86 |
+src_configure() { |
87 |
+ append-cflags "-I${ESYSROOT}/usr/include/miniz -DHAVE_MINIZ" |
88 |
+ append-ldflags "-L${ESYSROOT}/usr/$(get_libdir)/miniz" |
89 |
+ |
90 |
+ local myconf=( |
91 |
+ OPTIMIZE="${CFLAGS}" |
92 |
+ LDFLAGS="${LDFLAGS}" |
93 |
+ ) |
94 |
+ |
95 |
+ perl-module_src_configure |
96 |
+} |
97 |
+ |
98 |
+src_compile() { |
99 |
+ # TODO: switch to pkg-config when bug #849578 is fixed |
100 |
+ DIST_MAKE=( |
101 |
+ "INC=-I${ESYSROOT}/usr/include/miniz" |
102 |
+ "OTHERLDFLAGS=-lminiz" |
103 |
+ ) |
104 |
+ |
105 |
+ #DIST_MAKE=( |
106 |
+ # "INC=$($(tc-getPKG_CONFIG) --cflags miniz)" |
107 |
+ # "OTHERLDFLAGS=$($(tc-getPKG_CONFIG) --libs miniz)" |
108 |
+ #) |
109 |
+ |
110 |
+ perl-module_src_compile |
111 |
+} |