summaryrefslogtreecommitdiff
blob: 06ac468a0fe2822aca2b64c89c4532f7739e9f0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-text/tokyodystopia/tokyodystopia-0.9.13.ebuild,v 1.1 2009/10/10 00:00:15 patrick Exp $

EAPI=2

inherit eutils

DESCRIPTION="A fulltext search engine for Tokyo Cabinet"
HOMEPAGE="http://1978th.net/tokyodystopia/"
SRC_URI="${HOMEPAGE}${P}.tar.gz"

LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

#dev-db/tokyocabinet for depend?
DEPEND="dev-db/tokyocabinet"
RDEPEND="${DEPEND}"

pkg_setup() {
	enewgroup tyrant
	enewuser tyrant -1 -1 /var/lib/${PN} tyrant
}

src_install() {
	emake DESTDIR="${D}" install || die "Install failed"

	for x in /var/{lib,run,log}/${PN}; do
		dodir "${x}" || die "Install failed"
		fowners tyrant:tyrant "${x}"
	done

}

src_test() {
	emake -j1 check || die "Tests failed"
}