| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: $
|
| 4 |
|
| 5 |
EAPI=4
|
| 6 |
|
| 7 |
AUTOTOOLS_AUTORECONF=1
|
| 8 |
|
| 9 |
inherit autotools-utils
|
| 10 |
|
| 11 |
DESCRIPTION="Library providing high performance logging, tracing, ipc, and poll"
|
| 12 |
HOMEPAGE="https://github.com/asalkeld/libqb"
|
| 13 |
SRC_URI="http://fedorahosted.org/releases/q/u/quarterback/${P}.tar.xz"
|
| 14 |
|
| 15 |
LICENSE="LGPL-2.1"
|
| 16 |
SLOT="0"
|
| 17 |
KEYWORDS="~amd64 ~x86"
|
| 18 |
IUSE="debug doc examples static-libs test"
|
| 19 |
|
| 20 |
RDEPEND="dev-libs/glib:2"
|
| 21 |
DEPEND="${RDEPEND}
|
| 22 |
app-arch/xz-utils
|
| 23 |
test? ( dev-libs/check )
|
| 24 |
doc? ( app-doc/doxygen[dot] )"
|
| 25 |
|
| 26 |
DOCS=(README.markdown ChangeLog)
|
| 27 |
|
| 28 |
src_prepare() {
|
| 29 |
sed -e '/dist_doc_DATA/d' -i Makefile.am || die
|
| 30 |
autotools-utils_src_prepare
|
| 31 |
}
|
| 32 |
|
| 33 |
src_configure() {
|
| 34 |
local myeconfargs=(
|
| 35 |
$(use_enable debug)
|
| 36 |
)
|
| 37 |
autotools-utils_src_configure
|
| 38 |
}
|
| 39 |
|
| 40 |
src_compile() {
|
| 41 |
autotools-utils_src_compile
|
| 42 |
use doc && autotools-utils_src_compile doxygen
|
| 43 |
}
|
| 44 |
|
| 45 |
src_install() {
|
| 46 |
use doc && HTML_DOCS=("${AUTOTOOLS_BUILD_DIR}/docs/html/")
|
| 47 |
autotools-utils_src_install
|
| 48 |
if use examples ; then
|
| 49 |
insinto /usr/share/doc/${PF}/examples
|
| 50 |
doins examples/*.c
|
| 51 |
fi
|
| 52 |
}
|