Сравнение Sereal-Encoder-4.18.0 с Sereal-Encoder-4.23.0
/usr/portage/dev-perl/Sereal-Encoder/Sereal-Encoder-4.23.0.ebuild 2023-10-09 14:52:29.920368361 +0300 | ||
---|---|---|
1 |
# Copyright 1999-2021 Gentoo Authors |
|
1 |
# Copyright 1999-2022 Gentoo Authors |
|
2 | 2 |
# Distributed under the terms of the GNU General Public License v2 |
3 | 3 | |
4 | 4 |
EAPI=8 |
5 | 5 | |
6 | 6 |
DIST_AUTHOR=YVES |
7 |
DIST_VERSION=4.018 |
|
8 |
inherit perl-module |
|
7 |
DIST_VERSION=4.023 |
|
8 |
inherit edo perl-module flag-o-matic |
|
9 | 9 | |
10 | 10 |
DESCRIPTION="Fast, compact, powerful binary serialization" |
11 | 11 |
SLOT="0" |
12 |
KEYWORDS="amd64 ~ia64 ppc ppc64 sparc x86" |
|
12 |
KEYWORDS="~amd64" |
|
13 | 13 | |
14 | 14 |
# Note: bundled zstd fails compile |
15 | 15 |
RDEPEND=" |
16 | 16 |
virtual/perl-XSLoader |
17 |
app-arch/csnappy:= |
|
17 | 18 |
app-arch/zstd:= |
19 |
dev-libs/miniz:= |
|
20 |
" |
|
21 |
DEPEND=" |
|
22 |
app-arch/csnappy:= |
|
23 |
app-arch/zstd:= |
|
24 |
dev-libs/miniz:= |
|
18 | 25 |
" |
19 | ||
20 | 26 |
# Tester note: ideally you want dev-perl/Sereal-Decoder |
21 | 27 |
# as well, but we can't depend on it because it forms |
22 | 28 |
# a tight cycle if we do |
23 | 29 |
BDEPEND="${RDEPEND} |
30 |
dev-perl/Devel-CheckLib |
|
24 | 31 |
>=virtual/perl-ExtUtils-MakeMaker-7.0.0 |
25 | 32 |
>=virtual/perl-ExtUtils-ParseXS-2.210.0 |
26 | 33 |
virtual/perl-File-Path |
... | ... | |
35 | 42 |
dev-perl/Test-Warn |
36 | 43 |
) |
37 | 44 |
" |
45 | ||
46 |
src_prepare() { |
|
47 |
local bundled_lib |
|
48 |
for bundled_lib in inc/Devel snappy miniz{.c,.h} zstd ; do |
|
49 |
edo rm -r ${bundled_lib} |
|
50 |
done |
|
51 | ||
52 |
sed -i -e "/miniz.*OBJ_EXT/d" inc/Sereal/BuildTools.pm || die |
|
53 | ||
54 |
perl-module_src_prepare |
|
55 |
} |
|
56 | ||
57 |
src_configure() { |
|
58 |
append-cflags "-I${ESYSROOT}/usr/include/miniz -DHAVE_MINIZ" |
|
59 |
append-ldflags "-L${ESYSROOT}/usr/$(get_libdir)/miniz" |
|
60 | ||
61 |
local myconf=( |
|
62 |
OPTIMIZE="${CFLAGS}" |
|
63 |
LDFLAGS="${LDFLAGS}" |
|
64 |
) |
|
65 | ||
66 |
perl-module_src_configure |
|
67 |
} |
|
68 | ||
69 |
src_compile() { |
|
70 |
# TODO: switch to pkg-config when bug #849578 is fixed |
|
71 |
DIST_MAKE=( |
|
72 |
"INC=-I${ESYSROOT}/usr/include/miniz" |
|
73 |
"OTHERLDFLAGS=-lminiz" |
|
74 |
) |
|
75 | ||
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 |
} |