/[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.2 - (hide annotations) (download)
Wed Jan 8 06:30:37 2014 UTC (6 years, 1 month ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +3 -3 lines
Inherit the user eclass for enewuser/etc...

(Portage version: 2.2.8/cvs/Linux x86_64, signed Manifest commit with key D2E96200)

1 vapier 1.2 # Copyright 1999-2014 Gentoo Foundation
2 patrick 1.1 # Distributed under the terms of the GNU General Public License v2
3 vapier 1.2 # $Header: /var/cvsroot/gentoo-x86/net-misc/tokyotyrant/tokyotyrant-1.1.41-r1.ebuild,v 1.1 2013/02/28 04:44:22 patrick Exp $
4 patrick 1.1
5     EAPI=2
6    
7 vapier 1.2 inherit eutils user
8 patrick 1.1
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