Сравнение Sereal-Decoder-4.23.0 с Sereal-Decoder-4.23.0-r1

/usr/portage/dev-perl/Sereal-Decoder/Sereal-Decoder-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 deserialization"
11 11
SLOT="0"
12
KEYWORDS="~amd64"
12
KEYWORDS="amd64 ~ia64 ppc ppc64 sparc x86"
13 13
IUSE="test"
14 14
RESTRICT="!test? ( test )"
15 15

  
......
17 17
	virtual/perl-XSLoader
18 18
	app-arch/csnappy:=
19 19
	app-arch/zstd:=
20
	dev-libs/miniz:=
20
	>=dev-libs/miniz-2.2.0-r1:=
21 21
"
22 22
DEPEND="
23 23
	app-arch/csnappy:=
24 24
	app-arch/zstd:=
25
	dev-libs/miniz:=
25
	>=dev-libs/miniz-2.2.0-r1:=
26 26
"
27 27
BDEPEND="${RDEPEND}
28 28
	dev-perl/Devel-CheckLib
29 29
	>=virtual/perl-ExtUtils-MakeMaker-7.0
30 30
	>=virtual/perl-ExtUtils-ParseXS-2.210.0
31 31
	virtual/perl-File-Path
32
	virtual/pkgconfig
32 33
	test? (
33 34
		virtual/perl-Data-Dumper
34 35
		virtual/perl-File-Spec
......
52 53
	perl-module_src_prepare
53 54
}
54 55

  
55
src_configure() {
56
	append-cflags "-I${ESYSROOT}/usr/include/miniz -DHAVE_MINIZ"
57
	append-ldflags "-L${ESYSROOT}/usr/$(get_libdir)/miniz"
58

  
59
	local myconf=(
60
		OPTIMIZE="${CFLAGS}"
61
		LDFLAGS="${LDFLAGS}"
62
	)
63

  
64
	perl-module_src_configure
65
}
66

  
67 56
src_compile() {
68
	# TODO: switch to pkg-config when bug #849578 is fixed
69 57
	DIST_MAKE=(
70
		"INC=-I${ESYSROOT}/usr/include/miniz"
71
		"OTHERLDFLAGS=-lminiz"
58
		  "INC=$($(tc-getPKG_CONFIG) --cflags miniz)"
59
		  "OTHERLDFLAGS=$($(tc-getPKG_CONFIG) --libs miniz)"
72 60
	)
73 61

  
74
	#DIST_MAKE=(
75
	#       "INC=$($(tc-getPKG_CONFIG) --cflags miniz)"
76
	#       "OTHERLDFLAGS=$($(tc-getPKG_CONFIG) --libs miniz)"
77
	#)
78

  
79 62
	perl-module_src_compile
80 63
}
Спасибо!