blob: e94f03a64b8a2f77159b35db4c9a6312c9a6d898 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
DIST_AUTHOR=YVES
DIST_VERSION=2.40
inherit perl-module
DESCRIPTION="Accurately serialize a data structure as Perl code"
SLOT="0"
KEYWORDS="~amd64 ~arm ~ppc ~x86"
IUSE="test"
RESTRICT="!test? ( test )"
RDEPEND="
dev-perl/B-Utils
virtual/perl-Data-Dumper
virtual/perl-Exporter
virtual/perl-IO
virtual/perl-IO-Compress
virtual/perl-MIME-Base64
virtual/perl-Text-Balanced
dev-perl/PadWalker
virtual/perl-XSLoader
"
DEPEND="
dev-perl/Module-Build
"
BDEPEND="${RDEPEND}
dev-perl/Module-Build
virtual/perl-Carp
virtual/perl-ExtUtils-CBuilder
dev-perl/ExtUtils-Depends
test? (
virtual/perl-Test-Simple
dev-perl/JSON-XS
)
"
PATCHES=( "${FILESDIR}/${P}-perl526.patch" )
src_prepare() {
# Add DDS.pm shortcut
echo 'yes' > "${S}"/.answer
perl-module_src_prepare
}
src_configure() {
unset LD
[[ -n "${CCLD}" ]] && export LD="${CCLD}"
perl-module_src_configure
}
src_compile() {
./Build --config optimize="${CFLAGS}" build || die
}
|