You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
871 B
43 lines
871 B
# Copyright 1999-2021 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=7
|
|
|
|
DIST_AUTHOR=LEONT
|
|
DIST_VERSION=0.67
|
|
inherit perl-module
|
|
|
|
DESCRIPTION="Memory mapping made simple and safe"
|
|
|
|
SLOT="0"
|
|
KEYWORDS="amd64 arm ppc x86 ~amd64-linux ~x86-linux"
|
|
IUSE="test"
|
|
RESTRICT="!test? ( test )"
|
|
|
|
RDEPEND="
|
|
virtual/perl-Carp
|
|
dev-perl/PerlIO-Layers
|
|
>=dev-perl/Sub-Exporter-Progressive-0.1.5
|
|
virtual/perl-XSLoader
|
|
"
|
|
DEPEND="dev-perl/Module-Build"
|
|
BDEPEND="${RDEPEND}
|
|
>=dev-perl/Module-Build-0.280.0
|
|
test? (
|
|
virtual/perl-IO
|
|
virtual/perl-Scalar-List-Utils
|
|
dev-perl/Test-Fatal
|
|
virtual/perl-Test-Simple
|
|
>=dev-perl/Test-Warnings-0.5.0
|
|
virtual/perl-Time-HiRes
|
|
)
|
|
"
|
|
src_configure() {
|
|
unset LD
|
|
[[ -n "${CCLD}" ]] && export LD="${CCLD}"
|
|
perl-module_src_configure
|
|
}
|
|
src_compile() {
|
|
./Build --config "optimize=${CFLAGS}" build || die
|
|
}
|