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.
gentoo-overlay/dev-perl/Cache-Memcached-Fast/Cache-Memcached-Fast-0.250....

44 lines
912 B

# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
DIST_AUTHOR=RAZ
DIST_VERSION=0.25
DIST_EXAMPLES=("script/*")
inherit perl-module
DESCRIPTION="Perl client for memcached, in C language"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test"
PATCHES=(
"${FILESDIR}/0.230.0-parallel-make.patch"
"${FILESDIR}/${P}-no-flto.patch"
)
RDEPEND="virtual/perl-Storable"
DEPEND="${RDEPEND}
virtual/perl-ExtUtils-MakeMaker
test? (
net-misc/memcached
virtual/perl-Test-Simple
)
"
src_test() {
perl_rm_files t/pod-coverage.t t/pod.t
local memcached_opts=( -d -P "${T}/memcached.pid" -p 11211 -l 127.0.0.1 )
[[ ${EUID} == 0 ]] && memcached_opts+=( -u portage )
memcached "${memcached_opts[@]}" || die "Can't start memcached test server"
local exit_status
perl-module_src_test
exit_status=$?
kill "$(<"${T}/memcached.pid")"
return ${exit_status}
}