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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Thu Jul 30 12:57:10 2015 UTC (4 years, 1 month ago) by ago
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +2 -2 lines
Stable for sparc, wrt bug #552400

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

1 # Copyright 1999-2015 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.24.ebuild,v 1.8 2015/07/23 20:58:29 pacho Exp $
4
5 EAPI=5
6 inherit autotools eutils flag-o-matic systemd 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 selinux" # hugetlbfs later
19
20 RDEPEND=">=dev-libs/libevent-1.4
21 dev-lang/perl
22 sasl? ( dev-libs/cyrus-sasl )
23 selinux? ( sec-policy/selinux-memcached )"
24 DEPEND="${RDEPEND}
25 test? ( virtual/perl-Test-Harness >=dev-perl/Cache-Memcached-1.24 )"
26
27 S="${WORKDIR}/${MY_P}"
28
29 src_prepare() {
30 epatch "${FILESDIR}/${PN}-1.2.2-fbsd.patch"
31 # Handled different upstream
32 #epatch "${FILESDIR}/${PN}-1.3.3-gcc4-slab-fixup.patch"
33 epatch "${FILESDIR}/${PN}-1.4.0-fix-as-needed-linking.patch"
34 epatch "${FILESDIR}/${PN}-1.4.4-as-needed.patch"
35 epatch "${FILESDIR}/${PN}-1.4.17-EWOULDBLOCK.patch"
36 sed -i -e 's,-Werror,,g' configure.ac || die
37 sed -i -e 's,AM_CONFIG_HEADER,AC_CONFIG_HEADERS,' configure.ac || die
38 eautoreconf
39 use slabs-reassign && append-flags -DALLOW_SLABS_REASSIGN
40 }
41
42 src_configure() {
43 econf \
44 --disable-docs \
45 $(use_enable sasl)
46 # The xml2rfc tool to build the additional docs requires TCL :-(
47 # `use_enable doc docs`
48 }
49
50 src_compile() {
51 # There is a heavy degree of per-object compile flags
52 # Users do NOT know better than upstream. Trying to compile the testapp and
53 # the -debug version with -DNDEBUG _WILL_ fail.
54 append-flags -UNDEBUG -pthread
55 emake testapp memcached-debug CFLAGS="${CFLAGS}"
56 filter-flags -UNDEBUG
57 emake
58 }
59
60 src_install() {
61 emake DESTDIR="${D}" install
62 dobin scripts/memcached-tool
63 use debug && dobin memcached-debug
64
65 dodoc AUTHORS ChangeLog NEWS README.md doc/{CONTRIBUTORS,*.txt}
66
67 newconfd "${FILESDIR}/memcached.confd" memcached
68 newinitd "${FILESDIR}/memcached.init2" memcached
69 systemd_dounit "${FILESDIR}/memcached.service"
70 }
71
72 pkg_postinst() {
73 enewuser memcached -1 -1 /dev/null daemon
74
75 elog "With this version of Memcached Gentoo now supports multiple instances."
76 elog "To enable this you should create a symlink in /etc/init.d/ for each instance"
77 elog "to /etc/init.d/memcached and create the matching conf files in /etc/conf.d/"
78 elog "Please see Gentoo bug #122246 for more info"
79 }
80
81 src_test() {
82 emake -j1 test
83 }

  ViewVC Help
Powered by ViewVC 1.1.20