diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2009-05-05 19:37:00 +0000 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2009-05-05 19:37:00 +0000 |
commit | fdfb9075dbc4501735833f3daa0b32dce851822b (patch) | |
tree | 2bfb3229e5c06088a86f4a9987db36b16a8ae9aa /dev-libs | |
parent | stable x86, bug 261720 (diff) | |
download | gentoo-2-fdfb9075dbc4501735833f3daa0b32dce851822b.tar.gz gentoo-2-fdfb9075dbc4501735833f3daa0b32dce851822b.tar.bz2 gentoo-2-fdfb9075dbc4501735833f3daa0b32dce851822b.zip |
Bug #267095: version bump. Testsuite now available thanks to patches from Johan Bergström <bugs@bergstroem.nu>.
(Portage version: 2.2_rc33/cvs/Linux x86_64)
Diffstat (limited to 'dev-libs')
4 files changed, 75 insertions, 1 deletions
diff --git a/dev-libs/libmemcached/ChangeLog b/dev-libs/libmemcached/ChangeLog index 1cfa2c02dcae..7da9078b9ec4 100644 --- a/dev-libs/libmemcached/ChangeLog +++ b/dev-libs/libmemcached/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for dev-libs/libmemcached # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/libmemcached/ChangeLog,v 1.11 2009/02/04 00:23:34 patrick Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-libs/libmemcached/ChangeLog,v 1.12 2009/05/05 19:36:59 robbat2 Exp $ + +*libmemcached-0.28 (05 May 2009) + + 05 May 2009; Robin H. Johnson <robbat2@gentoo.org> + +libmemcached-0.28.ebuild, +files/libmemcached-0.28-removebogustest.patch, + +files/libmemcached-0.28-runtestsasuser.patch: + Bug #267095: version bump. Testsuite now available thanks to patches from + Johan Bergström <bugs@bergstroem.nu>. *libmemcached-0.26 (04 Feb 2009) diff --git a/dev-libs/libmemcached/files/libmemcached-0.28-removebogustest.patch b/dev-libs/libmemcached/files/libmemcached-0.28-removebogustest.patch new file mode 100644 index 000000000000..f58d6cf9d118 --- /dev/null +++ b/dev-libs/libmemcached/files/libmemcached-0.28-removebogustest.patch @@ -0,0 +1,11 @@ +--- tests/Makefile.in 2009-04-15 03:56:45.000000000 +0200 ++++ tests/Makefile-user.in 2009-04-22 16:36:20.000000000 +0200 +@@ -594,7 +594,6 @@ + + library_test: + ./testapp > output.cmp +- diff output.res output.cmp + + clients: + memcached -d -P /tmp/Xumemc.pid -p 12555 + diff --git a/dev-libs/libmemcached/files/libmemcached-0.28-runtestsasuser.patch b/dev-libs/libmemcached/files/libmemcached-0.28-runtestsasuser.patch new file mode 100644 index 000000000000..4564b27c2628 --- /dev/null +++ b/dev-libs/libmemcached/files/libmemcached-0.28-runtestsasuser.patch @@ -0,0 +1,17 @@ +--- tests/server.c 2009-04-15 03:47:48.000000000 +0200 ++++ tests/server-user.c 2009-04-22 16:26:54.000000000 +0200 +@@ -40,12 +40,12 @@ + + if (x == 0) + { +- sprintf(buffer, "%s -d -P /tmp/%umemc.pid -t 1 -p %u -U %u -m 128", ++ sprintf(buffer, "%s -d -P /tmp/%umemc.pid -t 1 -p %u -U %u -m 128 -u memcached", + MEMCACHED_BINARY, x, x + TEST_PORT_BASE, x + TEST_PORT_BASE); + } + else + { +- sprintf(buffer, "%s -d -P /tmp/%umemc.pid -t 1 -p %u -U %u", ++ sprintf(buffer, "%s -d -P /tmp/%umemc.pid -t 1 -p %u -U %u -u memcached", + MEMCACHED_BINARY, x, x + TEST_PORT_BASE, x + TEST_PORT_BASE); + } + fprintf(stderr, "STARTING SERVER: %s\n", buffer); diff --git a/dev-libs/libmemcached/libmemcached-0.28.ebuild b/dev-libs/libmemcached/libmemcached-0.28.ebuild new file mode 100644 index 000000000000..e529ceed0bdc --- /dev/null +++ b/dev-libs/libmemcached/libmemcached-0.28.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/libmemcached/libmemcached-0.28.ebuild,v 1.1 2009/05/05 19:37:00 robbat2 Exp $ + +inherit eutils + +DESCRIPTION="a C client library to the memcached server" +HOMEPAGE="http://tangent.org/552/libmemcached.html" +SRC_URI="http://download.tangent.org/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~sparc-fbsd ~x86" +IUSE="test" + +DEPEND="net-misc/memcached" +RDEPEND="${DEPEND}" + +#RESTRICT="test" + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/${PN}-0.28-runtestsasuser.patch + epatch "${FILESDIR}"/${PN}-0.28-removebogustest.patch +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed." + dodoc AUTHORS ChangeLog NEWS README THANKS TODO +} + +src_test() { + vecho ">>> Test phase [test]: ${CATEGORY}/${PF}" + emake test || die "tests failed" + vecho ">>> Test phase [none]: ${CATEGORY}/${PF}" +} + |