1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
12 inherit python-any-r1 xorg-2
14 DESCRIPTION="X C-language Bindings library"
15 HOMEPAGE="https://xcb.freedesktop.org/"
16 EGIT_REPO_URI="https://anongit.freedesktop.org/git/xcb/libxcb.git"
17 [[ ${PV} != 9999* ]] && \
18 SRC_URI="https://xcb.freedesktop.org/dist/${P}.tar.bz2"
20 KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
21 IUSE="doc selinux test xkb"
22 SLOT="0/1.12" # Locked down for now to 1.12 to avoid further rebuilds on no ABI changes (e.g with any upcoming 1.12.1 bugfix release), bug 576890
24 RDEPEND=">=dev-libs/libpthread-stubs-0.3-r1[${MULTILIB_USEDEP}]
25 >=x11-libs/libXau-1.0.7-r1[${MULTILIB_USEDEP}]
26 >=x11-libs/libXdmcp-1.1.1-r1[${MULTILIB_USEDEP}]"
27 # Note: ${PYTHON_USEDEP} needs to go verbatim
29 test? ( dev-libs/check[${MULTILIB_USEDEP}] )
30 doc? ( app-doc/doxygen[dot] )
33 $(python_gen_any_dep \
34 ">=x11-proto/xcb-proto-1.12-r1[${MULTILIB_USEDEP},\${PYTHON_USEDEP}]")"
37 has_version --host-root ">=x11-proto/xcb-proto-1.11[${PYTHON_USEDEP}]"
41 python-any-r1_pkg_setup
45 "${FILESDIR}/${PN}-1.11-Don-t-install-headers-man-pages-for-disabled-extensi.patch"
46 "${FILESDIR}/${P}-fix-inconsistent-use-tabs-space.patch"
50 XORG_CONFIGURE_OPTIONS=(
51 $(use_enable doc devel-docs)