blob: 29e943fcf6eb97442c37f8851d3cc3dfb6422670 (
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
55
|
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
DIST_AUTHOR=JAWNSY
DIST_VERSION=1.004
DIST_EXAMPLES=("examples/*")
inherit perl-module
DESCRIPTION="C implementation of the ISAAC PRNG algorithm"
LICENSE="public-domain || ( Artistic GPL-1+ )"
SLOT="0"
KEYWORDS="amd64 ~riscv x86"
IUSE="minimal test"
RESTRICT="!test? ( test )"
RDEPEND="
!minimal? (
dev-perl/Math-Random-ISAAC
)
"
DEPEND="dev-perl/Module-Build"
BDEPEND="${RDEPEND}
virtual/perl-ExtUtils-CBuilder
virtual/perl-ExtUtils-ParseXS
>=dev-perl/Module-Build-0.280.801_rc
test? (
>=dev-perl/Test-NoWarnings-0.84.0
>=virtual/perl-Test-Simple-0.620.0
)
"
PERL_RM_FILES=(
# dubious use for gentoo, maybe one day?
t/03memory.t
t/05valgrind.t
# release only
t/04uniform.t
t/release-dist-manifest.t
t/release-kwalitee.t
t/release-pod-coverage.t
t/release-pod-syntax.t
t/release-portability.t
)
src_configure() {
unset LD
[[ -n "${CCLD}" ]] && export LD="${CCLD}"
perl-module_src_configure
}
src_compile() {
./Build --config "optimize=${CFLAGS}" build || die
}
|