You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

74 lines
1.7 KiB

  1. # Copyright 1999-2018 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. EGIT_REPO_URI="https://anongit.freedesktop.org/git/wayland/wayland.git"
  5. if [[ ${PV} = 9999* ]]; then
  6. GIT_ECLASS="git-r3"
  7. fi
  8. inherit autotools libtool ltprune multilib-minimal toolchain-funcs $GIT_ECLASS
  9. DESCRIPTION="Wayland protocol libraries"
  10. HOMEPAGE="https://wayland.freedesktop.org/"
  11. if [[ $PV = 9999* ]]; then
  12. SRC_URI=""
  13. else
  14. SRC_URI="https://wayland.freedesktop.org/releases/${P}.tar.xz"
  15. KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86"
  16. fi
  17. LICENSE="MIT"
  18. SLOT="0"
  19. IUSE="doc static-libs"
  20. RDEPEND=">=dev-libs/expat-2.1.0-r3:=[${MULTILIB_USEDEP}]
  21. >=virtual/libffi-3.0.13-r1:=[${MULTILIB_USEDEP}]
  22. dev-libs/libxml2:=
  23. !<media-libs/mesa-18.1.1-r1"
  24. DEPEND="${RDEPEND}
  25. doc? (
  26. >=app-doc/doxygen-1.6[dot]
  27. app-text/xmlto
  28. >=media-gfx/graphviz-2.26.0
  29. sys-apps/grep[pcre]
  30. )
  31. virtual/pkgconfig"
  32. src_prepare() {
  33. default
  34. [[ $PV = 9999* ]] && eautoreconf || elibtoolize
  35. }
  36. multilib_src_configure() {
  37. local myconf
  38. if tc-is-cross-compiler ; then
  39. myconf+=' --with-host-scanner '
  40. fi
  41. ECONF_SOURCE="${S}" econf \
  42. --disable-static \
  43. $(multilib_native_use_enable doc documentation) \
  44. $(multilib_native_enable dtd-validation) \
  45. ${myconf}
  46. }
  47. multilib_src_install_all() {
  48. prune_libtool_files
  49. einstalldocs
  50. }
  51. src_test() {
  52. # We set it on purpose to only a short subdir name, as socket paths are
  53. # created in there, which are 108 byte limited. With this it hopefully
  54. # barely fits to the limit with /var/tmp/portage/$CAT/$PF/temp/xdr
  55. export XDG_RUNTIME_DIR="${T}"/xdr
  56. mkdir "${XDG_RUNTIME_DIR}" || die
  57. chmod 0700 "${XDG_RUNTIME_DIR}" || die
  58. multilib-minimal_src_test
  59. }