blob: c93134b2499ed1e146436ac59f3c79f2c813411e [file] [log] [blame]
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=5
XORG_MULTILIB="yes"
if [[ ${PV} = *9999* ]]; then
GIT_ECLASS="git-r3"
EXPERIMENTAL="true"
EGIT_REPO_URI="https://github.com/xkbcommon/${PN}"
else
XORG_BASE_INDIVIDUAL_URI=""
SRC_URI="https://xkbcommon.org/download/${P}.tar.xz"
fi
inherit xorg-2 ${GIT_ECLASS}
DESCRIPTION="X.Org xkbcommon library"
HOMEPAGE="https://xkbcommon.org/"
KEYWORDS="*"
IUSE="X doc test"
DEPEND="sys-devel/bison
X? (
x11-base/xorg-proto
>=x11-libs/libxcb-1.10[${MULTILIB_USEDEP},xkb]
)
doc? ( app-doc/doxygen )"
RDEPEND="X? ( >=x11-libs/libxcb-1.10[${MULTILIB_USEDEP},xkb] )"
PATCHES=(
"${FILESDIR}"/${PN}-provide-0.4.3-compat-versions-for-select-symbols.patch
)
pkg_setup() {
XORG_CONFIGURE_OPTIONS=(
--with-xkb-config-root="${EPREFIX}/usr/share/X11/xkb"
$(use X || use_enable X x11)
$(use_with doc doxygen)
)
xorg-2_pkg_setup
}