1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 if [[ ${PV} = *9999* ]]; then
7 EGIT_REPO_URI="https://gitlab.freedesktop.org/wayland/wayland.git"
10 SRC_URI="https://wayland.freedesktop.org/releases/${P}.tar.xz"
11 KEYWORDS="~alpha amd64 arm arm64 hppa ia64 ~m68k ~mips ppc ppc64 s390 sparc x86"
13 inherit autotools libtool multilib-minimal toolchain-funcs
15 DESCRIPTION="Wayland protocol libraries"
16 HOMEPAGE="https://wayland.freedesktop.org/ https://gitlab.freedesktop.org/wayland/wayland"
20 IUSE="doc static-libs"
25 >=app-doc/doxygen-1.6[dot]
27 >=media-gfx/graphviz-2.26.0
32 >=dev-libs/expat-2.1.0-r3:=[${MULTILIB_USEDEP}]
34 >=virtual/libffi-3.0.13-r1:=[${MULTILIB_USEDEP}]
37 !<media-libs/mesa-18.1.1-r1
42 [[ $PV = 9999* ]] && eautoreconf || elibtoolize
45 multilib_src_configure() {
48 $(multilib_native_use_enable doc documentation)
49 $(multilib_native_enable dtd-validation)
51 tc-is-cross-compiler && myeconfargs+=( --with-host-scanner )
53 ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
56 multilib_src_install_all() {
57 find "${D}" -name '*.la' -delete || die
62 # We set it on purpose to only a short subdir name, as socket paths are
63 # created in there, which are 108 byte limited. With this it hopefully
64 # barely fits to the limit with /var/tmp/portage/$CAT/$PF/temp/xdr
65 export XDG_RUNTIME_DIR="${T}"/xdr
66 mkdir "${XDG_RUNTIME_DIR}" || die
67 chmod 0700 "${XDG_RUNTIME_DIR}" || die
69 multilib-minimal_src_test