diff options
author | Kent Fredric <kentnl@gentoo.org> | 2020-07-04 13:26:09 +1200 |
---|---|---|
committer | Kent Fredric <kentnl@gentoo.org> | 2020-07-06 06:23:23 +1200 |
commit | b3295c8bc60a1467d6b636ebca284992141f8f2a (patch) | |
tree | 09cc6337f01f55656b927ce3ee92264fc5530c9f /dev-perl/Cache-Memcached-Fast | |
parent | dev-perl/Cache-FastMmap: -r bump for CFLAGS love (diff) | |
download | gentoo-b3295c8bc60a1467d6b636ebca284992141f8f2a.tar.gz gentoo-b3295c8bc60a1467d6b636ebca284992141f8f2a.tar.bz2 gentoo-b3295c8bc60a1467d6b636ebca284992141f8f2a.zip |
dev-perl/Cache-Memcached-Fast: -r bump for CFLAGS love
- Ensure CFLAGS passed to make/compile
Package-Manager: Portage-2.3.100, Repoman-2.3.22
Signed-off-by: Kent Fredric <kentnl@gentoo.org>
Diffstat (limited to 'dev-perl/Cache-Memcached-Fast')
-rw-r--r-- | dev-perl/Cache-Memcached-Fast/Cache-Memcached-Fast-0.260.0-r1.ebuild | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/dev-perl/Cache-Memcached-Fast/Cache-Memcached-Fast-0.260.0-r1.ebuild b/dev-perl/Cache-Memcached-Fast/Cache-Memcached-Fast-0.260.0-r1.ebuild new file mode 100644 index 000000000000..1c39f3f15862 --- /dev/null +++ b/dev-perl/Cache-Memcached-Fast/Cache-Memcached-Fast-0.260.0-r1.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DIST_AUTHOR=RAZ +DIST_VERSION=0.26 +DIST_EXAMPLES=("script/*") +inherit perl-module + +DESCRIPTION="Perl client for memcached, in C language" +# License note: Perl 5.x or newer, + "when C parts used as standalone library" +# Bug: https://bugs.gentoo.org/718946#c4 +LICENSE="|| ( Artistic GPL-1+ ) LGPL-2.1+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +PATCHES=( + "${FILESDIR}/0.230.0-parallel-make.patch" + "${FILESDIR}/${PN}-0.250.0-no-flto.patch" +) +RDEPEND="virtual/perl-Storable" +BDEPEND="${RDEPEND} + virtual/perl-ExtUtils-MakeMaker + test? ( + net-misc/memcached + virtual/perl-Test-Simple + ) +" +PERL_RM_FILES=( + "t/pod-coverage.t" + "t/pod.t" +) + +src_compile() { + mymake=( + "OPTIMIZE=${CFLAGS}" + ) + perl-module_src_compile +} +src_test() { + ewarn "t/commands.t is known to fail: https://bugs.gentoo.org/722848" + 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} +} |