Diff Sereal-Decoder-4.18.0 with a Sereal-Decoder-4.23.0

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

  
16 16
RDEPEND="
17 17
	virtual/perl-XSLoader
18
	app-arch/csnappy:=
18 19
	app-arch/zstd:=
20
	dev-libs/miniz:=
21
"
22
DEPEND="
23
	app-arch/csnappy:=
24
	app-arch/zstd:=
25
	dev-libs/miniz:=
19 26
"
20 27
BDEPEND="${RDEPEND}
28
	dev-perl/Devel-CheckLib
21 29
	>=virtual/perl-ExtUtils-MakeMaker-7.0
22 30
	>=virtual/perl-ExtUtils-ParseXS-2.210.0
23 31
	virtual/perl-File-Path
......
32 40
		dev-perl/Test-Warn
33 41
	)
34 42
"
35
DEPEND="
36
	app-arch/zstd:=
37
"
43

  
44
src_prepare() {
45
	local bundled_lib
46
	for bundled_lib in inc/Devel snappy miniz{.c,.h} zstd ; do
47
		edo rm -r ${bundled_lib}
48
	done
49

  
50
	sed -i -e "/miniz.*OBJ_EXT/d" inc/Sereal/BuildTools.pm || die
51

  
52
	perl-module_src_prepare
53
}
54

  
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
src_compile() {
68
	# TODO: switch to pkg-config when bug #849578 is fixed
69
	DIST_MAKE=(
70
		"INC=-I${ESYSROOT}/usr/include/miniz"
71
		"OTHERLDFLAGS=-lminiz"
72
	)
73

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

  
79
	perl-module_src_compile
80
}
Thank you!