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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Fri May 15 18:03:51 2015 UTC (4 years, 7 months ago) by prometheanfire
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
bup for bug 549192

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

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.20-r1.ebuild,v 1.1 2014/10/17 02:29:40 prometheanfire 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" # 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 epatch "${FILESDIR}/${PN}-1.4.17-EWOULDBLOCK.patch"
35 sed -i -e 's,-Werror,,g' configure.ac || die
36 sed -i -e 's,AM_CONFIG_HEADER,AC_CONFIG_HEADERS,' configure.ac || die
37 eautoreconf
38 use slabs-reassign && append-flags -DALLOW_SLABS_REASSIGN
39 }
40
41 src_configure() {
42 econf \
43 --disable-docs \
44 $(use_enable sasl)
45 # The xml2rfc tool to build the additional docs requires TCL :-(
46 # `use_enable doc docs`
47 }
48
49 src_compile() {
50 # There is a heavy degree of per-object compile flags
51 # Users do NOT know better than upstream. Trying to compile the testapp and
52 # the -debug version with -DNDEBUG _WILL_ fail.
53 append-flags -UNDEBUG -pthread
54 emake testapp memcached-debug CFLAGS="${CFLAGS}"
55 filter-flags -UNDEBUG
56 emake
57 }
58
59 src_install() {
60 emake DESTDIR="${D}" install
61 dobin scripts/memcached-tool
62 use debug && dobin memcached-debug
63
64 dodoc AUTHORS ChangeLog NEWS README.md doc/{CONTRIBUTORS,*.txt}
65
66 newconfd "${FILESDIR}/memcached.confd" memcached
67 newinitd "${FILESDIR}/memcached.init2" memcached
68 systemd_dounit "${FILESDIR}/memcached.service"
69 }
70
71 pkg_postinst() {
72 enewuser memcached -1 -1 /dev/null daemon
73
74 elog "With this version of Memcached Gentoo now supports multiple instances."
75 elog "To enable this you should create a symlink in /etc/init.d/ for each instance"
76 elog "to /etc/init.d/memcached and create the matching conf files in /etc/conf.d/"
77 elog "Please see Gentoo bug #122246 for more info"
78 }
79
80 src_test() {
81 emake -j1 test
82 }

  ViewVC Help
Powered by ViewVC 1.1.20