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

Contents of /net-misc/memcached/memcached-1.4.5.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (hide annotations) (download)
Sat Apr 24 19:41:19 2010 UTC (9 years, 8 months ago) by armin76
Branch: MAIN
Changes since 1.3: +2 -2 lines
alpha/arm/ia64/sh/sparc stable wrt #314597
(Portage version: 2.1.7.17/cvs/Linux ia64)

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

  ViewVC Help
Powered by ViewVC 1.1.20