summaryrefslogtreecommitdiff
blob: a2c092c2c23ff7f9365f79547a2026b7e1ef9025 (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
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

DESCRIPTION="A high performance database library similar to the DBM family"
HOMEPAGE="http://sourceforge.net/projects/tokyocabinet/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"

LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="bzip2 lzma lzo threads zlib"

DEPEND="bzip2? ( app-arch/bzip2 )
	lzma? ( app-arch/lzma )
	lzo? ( dev-libs/lzo )
	zlib? ( sys-libs/zlib )"
RDEPEND="${DEPEND}"

src_compile() {
	econf \
		$(use_enable bzip2 bzip) \
		$(use_enable lzma exlzma) \
		$(use_enable lzo exlzo) \
		$(use_enable threads pthread) \
		$(use_enable zlib) || die
	emake || die
}

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

	rm -rf "${D}usr/share/tokyocabinet"

	dodoc ChangeLog README THANKS || die
	dohtml doc/* || die
}