2018-11-28 12:42:19 -06:00
|
|
|
# Copyright 1999-2017 Gentoo Foundation
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
2021-05-05 04:29:24 -05:00
|
|
|
EAPI=7
|
2018-11-28 12:42:19 -06:00
|
|
|
|
|
|
|
AUTOTOOLS_AUTORECONF=1
|
|
|
|
|
2021-05-05 04:29:24 -05:00
|
|
|
inherit autotools
|
2018-11-28 12:42:19 -06:00
|
|
|
|
|
|
|
DESCRIPTION="Library providing high performance logging, tracing, ipc, and poll"
|
|
|
|
HOMEPAGE="https://github.com/ClusterLabs/libqb"
|
|
|
|
SRC_URI="https://github.com/ClusterLabs/${PN}/releases/download/v${PV}/${P}.tar.xz"
|
|
|
|
|
|
|
|
LICENSE="LGPL-2.1"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="~amd64 ~arm64 ~hppa ~ppc ~ppc64 ~x86"
|
|
|
|
IUSE="debug doc examples static-libs test"
|
|
|
|
|
|
|
|
RDEPEND="dev-libs/glib:2"
|
|
|
|
DEPEND="${RDEPEND}
|
|
|
|
app-arch/xz-utils
|
|
|
|
test? ( dev-libs/check )
|
|
|
|
doc? ( app-doc/doxygen[dot] )"
|
|
|
|
|
|
|
|
DOCS=(README.markdown ChangeLog)
|
|
|
|
|
|
|
|
src_prepare() {
|
2021-05-05 04:29:24 -05:00
|
|
|
default
|
|
|
|
|
|
|
|
# Skip installation of text documents without value
|
2018-11-28 12:42:19 -06:00
|
|
|
sed -e '/dist_doc_DATA/d' -i Makefile.am || die
|
2021-05-05 04:29:24 -05:00
|
|
|
|
|
|
|
# Do not append version suffix "-yank"
|
|
|
|
sed 's|1-yank|1|' -i configure.ac || die
|
|
|
|
|
|
|
|
eautoreconf
|
2018-11-28 12:42:19 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
src_configure() {
|
2021-05-05 04:29:24 -05:00
|
|
|
econf \
|
2018-11-28 12:42:19 -06:00
|
|
|
$(use_enable debug)
|
|
|
|
}
|
|
|
|
|
|
|
|
src_compile() {
|
2021-05-05 04:29:24 -05:00
|
|
|
default
|
|
|
|
use doc && emake doxygen
|
2018-11-28 12:42:19 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
2021-05-05 04:29:24 -05:00
|
|
|
emake install DESTDIR="${D}"
|
|
|
|
|
2018-11-28 12:42:19 -06:00
|
|
|
if use examples ; then
|
2021-05-05 04:29:24 -05:00
|
|
|
docinto examples
|
|
|
|
dodoc examples/*.c
|
2018-11-28 12:42:19 -06:00
|
|
|
fi
|
2021-05-05 04:29:24 -05:00
|
|
|
|
|
|
|
use doc && HTML_DOCS=("docs/html/.")
|
|
|
|
einstalldocs
|
|
|
|
|
|
|
|
find "${D}" -name '*.la' -delete || die
|
2018-11-28 12:42:19 -06:00
|
|
|
}
|