You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-db/haildb/haildb-2.3.1.ebuild

55 lines
1.4 KiB

# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-db/haildb/haildb-2.3.1.ebuild,v 1.3 2010/10/25 00:23:07 fauli Exp $
EAPI=2
inherit versionator flag-o-matic
DESCRIPTION="a relational database in shared library form"
HOMEPAGE="http://www.haildb.com/"
SRC_URI="http://launchpad.net/haildb/$(get_version_component_range 1-2)/athens/+download/${P}.tar.gz"
LICENSE="GPL-2 MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="debug tcmalloc zlib"
RDEPEND="tcmalloc? ( dev-util/google-perftools )
zlib? ( sys-libs/zlib )"
DEPEND="${RDEPEND}
sys-devel/bison"
src_configure() {
local myconf
if use debug; then
# Since --with-debug would turn off optimisations as well as
# enabling debug, we just enable debug through the
# preprocessor then.
append-flags -DDEBUG
else
myconf="${myconf} --disable-assert"
fi
# never allow it to find valgrind, easier this way
export ac_cv_header_valgrind_memcheck_h=no
econf \
--disable-static \
--disable-dependency-tracking \
--enable-fast-install \
--disable-silent-rules \
--disable-mtmalloc \
$(use_enable zlib compression) \
$(use_enable tcmalloc) \
${myconf} \
|| die "econf failed"
}
src_install() {
emake DESTDIR="${D}" install || die "install failed"
dodoc ChangeLog README || die
find "${D}" -name '*.la' -delete || die
}