/[gentoo-x86]/net-misc/tokyotyrant/tokyotyrant-1.1.41-r1.ebuild
Gentoo

Contents of /net-misc/tokyotyrant/tokyotyrant-1.1.41-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Thu Feb 28 04:44:22 2013 UTC (6 years, 11 months ago) by patrick
Branch: MAIN
Bump to force update init script #459574

(Portage version: 2.2.0_alpha163/cvs/Linux x86_64, unsigned Manifest commit)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/tokyotyrant/tokyotyrant-1.1.41.ebuild,v 1.1 2010/08/13 10:49:15 patrick Exp $
4
5 EAPI=2
6
7 inherit eutils
8
9 DESCRIPTION="A network interface to Tokyo Cabinet"
10 HOMEPAGE="http://fallabs.com/tokyotyrant/"
11 SRC_URI="${HOMEPAGE}${P}.tar.gz"
12
13 LICENSE="LGPL-2.1"
14 SLOT="0"
15 KEYWORDS="~amd64 ~x86 ~ppc-macos ~x86-macos"
16 IUSE="debug examples lua"
17
18 DEPEND="dev-db/tokyocabinet
19 sys-libs/zlib
20 app-arch/bzip2
21 lua? ( dev-lang/lua )"
22 RDEPEND="${DEPEND}"
23
24 pkg_setup() {
25 if use !prefix ; then
26 enewgroup tyrant
27 enewuser tyrant -1 -1 /var/lib/${PN} tyrant
28 fi
29 }
30
31 src_prepare() {
32 epatch "${FILESDIR}"/fix_makefiles-1.4.41.patch
33 epatch "${FILESDIR}"/fix_testsuite.patch
34 }
35
36 src_configure() {
37 econf \
38 $(use_enable debug) \
39 $(use_enable lua)
40 }
41
42 src_install() {
43 rm ttservctl || die "Install failed"
44 emake DESTDIR="${D}" install || die "Install failed"
45
46 for x in /var/{lib,run,log}/${PN}; do
47 dodir "${x}" || die "Install failed"
48 use prefix || fowners tyrant:tyrant "${x}"
49 done
50
51 if use examples; then
52 insinto /usr/share/${PF}/example
53 doins example/* || die "Install failed"
54 fi
55
56 dohtml doc/* || die
57
58 newinitd "${FILESDIR}/${PN}.initd" ${PN} || die "Install failed"
59 newconfd "${FILESDIR}/${PN}.confd" ${PN} || die "Install failed"
60
61 }
62
63 src_test() {
64 emake -j1 check || die "Tests failed"
65 }

  ViewVC Help
Powered by ViewVC 1.1.20