diff options
Diffstat (limited to 'net-misc/memcached/memcached-1.6.9.ebuild')
-rw-r--r-- | net-misc/memcached/memcached-1.6.9.ebuild | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/net-misc/memcached/memcached-1.6.9.ebuild b/net-misc/memcached/memcached-1.6.9.ebuild index a78e6283331d..4126566cc8e8 100644 --- a/net-misc/memcached/memcached-1.6.9.ebuild +++ b/net-misc/memcached/memcached-1.6.9.ebuild @@ -2,7 +2,8 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=7 -inherit autotools eutils flag-o-matic systemd + +inherit autotools flag-o-matic systemd MY_PV="${PV/_rc/-rc}" MY_P="${PN}-${MY_PV}" @@ -38,9 +39,13 @@ PATCHES=( ) src_prepare() { + default + sed -i -e 's,-Werror,,g' configure.ac || die sed -i -e 's,AM_CONFIG_HEADER,AC_CONFIG_HEADERS,' configure.ac || die + eautoreconf + use slabs-reassign && append-flags -DALLOW_SLABS_REASSIGN # Tweak upstream systemd unit to use Gentoo variables/envfile. @@ -54,7 +59,6 @@ src_prepare() { /EnvironmentFile=/{s,/sysconfig/,/conf.d/,g;}; ' \ "${S}"/scripts/memcached.service - default } src_configure() { @@ -71,10 +75,15 @@ src_compile() { # the -debug version with -DNDEBUG _WILL_ fail. append-flags -UNDEBUG -pthread emake testapp memcached-debug CFLAGS="${CFLAGS}" + filter-flags -UNDEBUG emake } +src_test() { + emake -j1 test +} + src_install() { emake DESTDIR="${D}" install dobin scripts/memcached-tool @@ -93,7 +102,3 @@ pkg_postinst() { elog "to /etc/init.d/memcached and create the matching conf files in /etc/conf.d/" elog "Please see Gentoo bug #122246 for more info" } - -src_test() { - emake -j1 test -} |