# Copyright 1999-2016 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ EAPI=6 inherit toolchain-funcs cmake-utils DESCRIPTION="Tools for configuration and query of SMB Traffic Analyzer" HOMEPAGE="https://github.com/hhetter/smbtatools" SRC_URI="http://morelias.org/smbta/${P}.tar.bz2" LICENSE="GPL-3" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="debug" RDEPEND=" dev-db/libdbi >=dev-db/sqlite-3.7.0:3 net-fs/samba net-misc/curl sys-libs/ncurses:0= sys-libs/talloc x11-libs/cairo x11-libs/pango dev-qt/qtgui:4 " DEPEND="${RDEPEND} virtual/pkgconfig " RDEPEND+=" net-fs/smbtad " DOCS="doc/smbta-guide.html doc/gfx/*.png" PATCHES=( "${FILESDIR}"/${P}-fix-cmake.patch ) src_configure() { local PKG_CONFIG=$(tc-getPKG_CONFIG) local mycmakeargs=( -Ddebug=$(usex debug) -DLIBSMBCLIENT_LIBRARIES="$(${PKG_CONFIG} --libs smbclient)" -DLIBSMBCLIENT_INCLUDE_DIRS="$(${PKG_CONFIG} --variable includedir smbclient)" ) cmake-utils_src_configure }