Skip to content

Instantly share code, notes, and snippets.

@matsuu
Created April 23, 2009 15:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matsuu/100541 to your computer and use it in GitHub Desktop.
Save matsuu/100541 to your computer and use it in GitHub Desktop.
# 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"
dodoc ChangeLog README THANKS || die
dohtml doc/* || die
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment