# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-libs/libprelude/libprelude-1.0.0-r1.ebuild,v 1.2 2011/01/06 23:45:29 jer Exp $ EAPI=2 inherit libtool perl-module flag-o-matic eutils DESCRIPTION="Prelude-IDS Framework Library" HOMEPAGE="http://www.prelude-technologies.com" SRC_URI="${HOMEPAGE}/download/releases/${PN}/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~sparc ~x86" IUSE="doc easy-bindings perl python swig" RDEPEND=">=net-libs/gnutls-1.0.17 !net-analyzer/prelude-nids" DEPEND="${RDEPEND} sys-devel/flex" src_prepare() { epatch "${FILESDIR}"/${P}-libtool.patch } src_configure() { filter-lfs-flags econf \ $(use_enable doc gtk-doc) \ $(use_with swig) \ $(use_with perl) \ $(use_with python) \ $(use_enable easy-bindings) } src_compile() { emake OTHERLDFLAGS="${LDFLAGS}" || die "emake failed" } src_install() { emake DESTDIR="${D}" INSTALLDIRS=vendor install || die "make install failed" if use perl ; then perl_delete_localpod perl_delete_packlist fi }