Gentoo Archives: gentoo-commits

From: "Matt Thode (prometheanfire)" <prometheanfire@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-misc/memcached: memcached-1.4.17-r1.ebuild ChangeLog
Date: Mon, 27 Jan 2014 07:19:53
Message-Id: 20140127071949.4E4542004E@flycatcher.gentoo.org
1 prometheanfire 14/01/27 07:19:49
2
3 Modified: ChangeLog
4 Added: memcached-1.4.17-r1.ebuild
5 Log:
6 some file cleanup and a fix for bug 498262
7
8 (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 0x2471eb3e40ac5ac3)
9
10 Revision Changes Path
11 1.147 net-misc/memcached/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/memcached/ChangeLog?rev=1.147&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/memcached/ChangeLog?rev=1.147&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/memcached/ChangeLog?r1=1.146&r2=1.147
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-misc/memcached/ChangeLog,v
20 retrieving revision 1.146
21 retrieving revision 1.147
22 diff -u -r1.146 -r1.147
23 --- ChangeLog 26 Jan 2014 19:58:35 -0000 1.146
24 +++ ChangeLog 27 Jan 2014 07:19:49 -0000 1.147
25 @@ -1,6 +1,13 @@
26 # ChangeLog for net-misc/memcached
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-misc/memcached/ChangeLog,v 1.146 2014/01/26 19:58:35 prometheanfire Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-misc/memcached/ChangeLog,v 1.147 2014/01/27 07:19:49 prometheanfire Exp $
30 +
31 +*memcached-1.4.17-r1 (27 Jan 2014)
32 +
33 + 27 Jan 2014; Matthew Thode <prometheanfire@g.o>
34 + +files/memcached-1.4.17-EWOULDBLOCK.patch, +memcached-1.4.17-r1.ebuild,
35 + -files/memcached-1.2.2-p-threads.patch:
36 + some file cleanup and a fix for bug 498262
37
38 26 Jan 2014; Matthew Thode <prometheanfire@g.o>
39 -memcached-1.1.12-r3.ebuild, -memcached-1.2.1-r2.ebuild,
40
41
42
43 1.1 net-misc/memcached/memcached-1.4.17-r1.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/memcached/memcached-1.4.17-r1.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/memcached/memcached-1.4.17-r1.ebuild?rev=1.1&content-type=text/plain
47
48 Index: memcached-1.4.17-r1.ebuild
49 ===================================================================
50 # Copyright 1999-2014 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/net-misc/memcached/memcached-1.4.17-r1.ebuild,v 1.1 2014/01/27 07:19:49 prometheanfire Exp $
53
54 EAPI=5
55 inherit eutils autotools flag-o-matic user
56
57 MY_PV="${PV/_rc/-rc}"
58 MY_P="${PN}-${MY_PV}"
59
60 DESCRIPTION="High-performance, distributed memory object caching system"
61 HOMEPAGE="http://code.google.com/p/memcached/"
62 SRC_URI="http://www.memcached.org/files/${MY_P}.tar.gz"
63
64 LICENSE="BSD"
65 SLOT="0"
66 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
67 IUSE="test slabs-reassign debug sasl" # hugetlbfs later
68
69 RDEPEND=">=dev-libs/libevent-1.4
70 dev-lang/perl
71 sasl? ( dev-libs/cyrus-sasl )"
72 DEPEND="${RDEPEND}
73 test? ( virtual/perl-Test-Harness >=dev-perl/Cache-Memcached-1.24 )"
74
75 S="${WORKDIR}/${MY_P}"
76
77 src_prepare() {
78 epatch "${FILESDIR}/${PN}-1.2.2-fbsd.patch"
79 # Handled different upstream
80 #epatch "${FILESDIR}/${PN}-1.3.3-gcc4-slab-fixup.patch"
81 epatch "${FILESDIR}/${PN}-1.4.0-fix-as-needed-linking.patch"
82 epatch "${FILESDIR}/${PN}-1.4.4-as-needed.patch"
83 epatch "${FILESDIR}/${PN}-1.4.17-EWOULDBLOCK.patch"
84 sed -i -e 's,-Werror,,g' configure.ac || die "sed failed"
85 eautoreconf
86 use slabs-reassign && append-flags -DALLOW_SLABS_REASSIGN
87 }
88
89 src_configure() {
90 econf \
91 --disable-docs \
92 $(use_enable sasl)
93 # The xml2rfc tool to build the additional docs requires TCL :-(
94 # `use_enable doc docs`
95 }
96
97 src_compile() {
98 # There is a heavy degree of per-object compile flags
99 # Users do NOT know better than upstream. Trying to compile the testapp and
100 # the -debug version with -DNDEBUG _WILL_ fail.
101 append-flags -UNDEBUG -pthread
102 emake testapp memcached-debug CFLAGS="${CFLAGS}"
103 filter-flags -UNDEBUG
104 emake
105 }
106
107 src_install() {
108 emake DESTDIR="${D}" install
109 dobin scripts/memcached-tool
110 use debug && dobin memcached-debug
111
112 dodoc AUTHORS ChangeLog NEWS README.md doc/{CONTRIBUTORS,*.txt}
113
114 newconfd "${FILESDIR}/memcached.confd" memcached
115 newinitd "${FILESDIR}/memcached.init" memcached
116 }
117
118 pkg_postinst() {
119 enewuser memcached -1 -1 /dev/null daemon
120
121 elog "With this version of Memcached Gentoo now supports multiple instances."
122 elog "To enable this you should create a symlink in /etc/init.d/ for each instance"
123 elog "to /etc/init.d/memcached and create the matching conf files in /etc/conf.d/"
124 elog "Please see Gentoo bug #122246 for more info"
125 }
126
127 src_test() {
128 emake -j1 test
129 }