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-libs/libpreludedb/libpreludedb-0.9.15.1.ebuild

49 lines
1.2 KiB

# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libpreludedb/libpreludedb-0.9.15.1.ebuild,v 1.6 2011/07/26 07:47:04 xarthisius Exp $
inherit flag-o-matic eutils perl-module
DESCRIPTION="Prelude-IDS framework for easy access to the Prelude database"
HOMEPAGE="http://www.prelude-ids.org/"
SRC_URI="http://www.prelude-ids.org/download/releases/${PN}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc mysql postgres perl python sqlite swig"
RDEPEND=">=dev-libs/libprelude-0.9.10
mysql? ( virtual/mysql )
postgres? ( dev-db/postgresql-server )
sqlite? ( =dev-db/sqlite-3* )"
DEPEND="${RDEPEND}
doc? ( dev-util/gtk-doc )"
src_compile() {
local myconf
econf \
$(use_with doc gtk-doc) \
$(use_with mysql) \
$(use_with postgres pgsql) \
$(use_with sqlite sqlite3) \
$(use_with perl) \
$(use_with swig) \
$(use_with python) \
|| die "econf failed"
emake || die "emake failed"
}
src_install() {
emake DESTDIR="${D}" install || die "make install failed"
use perl && fixlocalpod
}
pkg_postinst() {
elog "For additional installation instructions go to"
elog "https://trac.prelude-ids.org/wiki/InstallingLibpreludedb"
}