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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (show annotations) (download)
Sun Jan 26 11:58:47 2014 UTC (5 years, 10 months ago) by ago
Branch: MAIN
CVS Tags: HEAD
Changes since 1.10: +2 -2 lines
Stable for sparc, wrt bug #496506

(Portage version: 2.2.7/cvs/Linux x86_64, RepoMan options: --include-arches="sparc", signed Manifest commit with key 7194459F)

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.17.ebuild,v 1.10 2014/01/26 11:48:31 ago Exp $
4
5 EAPI=5
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://www.memcached.org/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 ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
18 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 -pthread
52 emake testapp memcached-debug CFLAGS="${CFLAGS}"
53 filter-flags -UNDEBUG
54 emake
55 }
56
57 src_install() {
58 emake DESTDIR="${D}" install
59 dobin scripts/memcached-tool
60 use debug && dobin memcached-debug
61
62 dodoc AUTHORS ChangeLog NEWS README.md doc/{CONTRIBUTORS,*.txt}
63
64 newconfd "${FILESDIR}/memcached.confd" memcached
65 newinitd "${FILESDIR}/memcached.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
79 }

  ViewVC Help
Powered by ViewVC 1.1.20