libxkbcommon-0.5.0.ebuild 948 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. XORG_EAUTORECONF="yes"
  5. XORG_MULTILIB="yes"
  6. if [[ ${PV} = *9999* ]]; then
  7. GIT_ECLASS="git-r3"
  8. EXPERIMENTAL="true"
  9. EGIT_REPO_URI="git://github.com/xkbcommon/${PN}"
  10. else
  11. XORG_BASE_INDIVIDUAL_URI=""
  12. SRC_URI="http://xkbcommon.org/download/${P}.tar.xz"
  13. fi
  14. inherit xorg-2 ${GIT_ECLASS}
  15. DESCRIPTION="X.Org xkbcommon library"
  16. HOMEPAGE="https://xkbcommon.org/"
  17. KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ppc ppc64 sparc x86"
  18. IUSE="X doc test"
  19. DEPEND="sys-devel/bison
  20. X? ( >=x11-libs/libxcb-1.10[${MULTILIB_USEDEP},xkb] )
  21. >=x11-proto/xproto-7.0.24[${MULTILIB_USEDEP}]
  22. >=x11-proto/kbproto-1.0.6-r1[${MULTILIB_USEDEP}]
  23. doc? ( app-doc/doxygen )"
  24. RDEPEND=""
  25. pkg_setup() {
  26. XORG_CONFIGURE_OPTIONS=(
  27. --with-xkb-config-root="${EPREFIX}/usr/share/X11/xkb"
  28. $(use X || use_enable X x11)
  29. $(use_with doc doxygen)
  30. )
  31. xorg-2_pkg_setup
  32. }