Сравнение Sereal-Encoder-4.23.0 с Sereal-Encoder-4.23.0-r1
/usr/portage/dev-perl/Sereal-Encoder/Sereal-Encoder-4.23.0-r1.ebuild 2023-10-09 14:52:29.920368361 +0300 | ||
---|---|---|
1 |
# Copyright 1999-2022 Gentoo Authors |
|
1 |
# Copyright 1999-2023 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 | 7 |
DIST_VERSION=4.023 |
8 |
inherit edo perl-module flag-o-matic |
|
8 |
inherit edo perl-module toolchain-funcs |
|
9 | 9 | |
10 | 10 |
DESCRIPTION="Fast, compact, powerful binary serialization" |
11 | 11 |
SLOT="0" |
12 |
KEYWORDS="~amd64" |
|
12 |
KEYWORDS="amd64 ~ia64 ppc ppc64 sparc x86" |
|
13 | 13 | |
14 | 14 |
# Note: bundled zstd fails compile |
15 | 15 |
RDEPEND=" |
16 | 16 |
virtual/perl-XSLoader |
17 | 17 |
app-arch/csnappy:= |
18 | 18 |
app-arch/zstd:= |
19 |
dev-libs/miniz:= |
|
19 |
>=dev-libs/miniz-2.2.0-r1:= |
|
20 | 20 |
" |
21 | 21 |
DEPEND=" |
22 | 22 |
app-arch/csnappy:= |
23 | 23 |
app-arch/zstd:= |
24 |
dev-libs/miniz:= |
|
24 |
>=dev-libs/miniz-2.2.0-r1:= |
|
25 | 25 |
" |
26 | 26 |
# Tester note: ideally you want dev-perl/Sereal-Decoder |
27 | 27 |
# as well, but we can't depend on it because it forms |
... | ... | |
31 | 31 |
>=virtual/perl-ExtUtils-MakeMaker-7.0.0 |
32 | 32 |
>=virtual/perl-ExtUtils-ParseXS-2.210.0 |
33 | 33 |
virtual/perl-File-Path |
34 |
virtual/pkgconfig |
|
34 | 35 |
test? ( |
35 | 36 |
virtual/perl-Data-Dumper |
36 | 37 |
virtual/perl-File-Spec |
... | ... | |
54 | 55 |
perl-module_src_prepare |
55 | 56 |
} |
56 | 57 | |
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 | 58 |
src_compile() { |
70 |
# TODO: switch to pkg-config when bug #849578 is fixed |
|
71 | 59 |
DIST_MAKE=( |
72 |
"INC=-I${ESYSROOT}/usr/include/miniz" |
|
73 |
"OTHERLDFLAGS=-lminiz" |
|
60 |
"INC=$($(tc-getPKG_CONFIG) --cflags miniz)" |
|
61 |
"OTHERLDFLAGS=$($(tc-getPKG_CONFIG) --libs miniz)" |
|
74 | 62 |
) |
75 | 63 | |
76 |
#DIST_MAKE=( |
|
77 |
# "INC=$($(tc-getPKG_CONFIG) --cflags miniz)" |
|
78 |
# "OTHERLDFLAGS=$($(tc-getPKG_CONFIG) --libs miniz)" |
|
79 |
#) |
|
80 | ||
81 | 64 |
perl-module_src_compile |
82 | 65 |
} |