/[gentoo-x86]/net-misc/memcached/memcached-1.4.2-r1.ebuild
Gentoo

Contents of /net-misc/memcached/memcached-1.4.2-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Sun Jan 26 19:58:35 2014 UTC (5 years, 10 months ago) by prometheanfire
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
removing the old and jankey and vulnerable as well for bug 496506

(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 0x2471eb3e40ac5ac3)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/memcached/memcached-1.4.2-r1.ebuild,v 1.3 2014/01/08 06:19:21 vapier Exp $
4
5 EAPI=2
6 inherit eutils autotools flag-o-matic user
7
8 MY_PV="${PV/_rc/-rc}"
9 MY_P="${PN}-${MY_PV}"
10
11 DESCRIPTION="High-performance, distributed memory object caching system"
12 HOMEPAGE="http://code.google.com/p/memcached/"
13 SRC_URI="http://memcached.googlecode.com/files/${MY_P}.tar.gz"
14
15 LICENSE="BSD"
16 SLOT="0"
17 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
18 IUSE="test slabs-reassign debug" # hugetlbfs later
19
20 RDEPEND=">=dev-libs/libevent-1.4
21 dev-lang/perl"
22 DEPEND="${RDEPEND}
23 test? ( virtual/perl-Test-Harness >=dev-perl/Cache-Memcached-1.24 )"
24
25 S="${WORKDIR}/${MY_P}"
26
27 src_prepare() {
28 epatch "${FILESDIR}/${PN}-1.2.2-fbsd.patch"
29 # Handled different upstream
30 #epatch "${FILESDIR}/${PN}-1.3.3-gcc4-slab-fixup.patch"
31 epatch "${FILESDIR}/${PN}-1.4.0-fix-as-needed-linking.patch"
32 sed -i -e 's,-Werror,,g' configure.ac || die "sed failed"
33 eautoreconf
34 use slabs-reassign && append-flags -DALLOW_SLABS_REASSIGN
35 }
36
37 src_configure() {
38 econf --disable-docs
39 # The xml2rfc tool to build the additional docs requires TCL :-(
40 # `use_enable doc docs`
41 }
42
43 src_compile() {
44 # There is a heavy degree of per-object compile flags
45 # Users do NOT know better than upstream. Trying to compile the testapp and
46 # the -debug version with -DNDEBUG _WILL_ fail.
47 append-flags -UNDEBUG
48 emake testapp memcached-debug CFLAGS="${CFLAGS}" || die "emake of testapp and memcached-debug failed."
49 filter-flags -UNDEBUG
50 emake || die "emake failed."
51 }
52
53 src_install() {
54 emake DESTDIR="${D}" install || die "emake install failed."
55 dobin scripts/memcached-tool
56 use debug && dobin memcached-debug
57
58 dodoc AUTHORS ChangeLog NEWS README doc/{CONTRIBUTORS,*.txt}
59
60 newconfd "${FILESDIR}"/1.3.3/conf memcached
61 newinitd "${FILESDIR}"/1.3.3/init memcached
62 }
63
64 pkg_postinst() {
65 enewuser memcached -1 -1 /dev/null daemon
66
67 elog "With this version of Memcached Gentoo now supports multiple instances."
68 elog "To enable this you should create a symlink in /etc/init.d/ for each instance"
69 elog "to /etc/init.d/memcached and create the matching conf files in /etc/conf.d/"
70 elog "Please see Gentoo bug #122246 for more info"
71 }
72
73 src_test() {
74 emake -j1 test || die "Failed testing"
75 }

  ViewVC Help
Powered by ViewVC 1.1.20