Gentoo Archives: gentoo-commits

From: Matt Turner <mattst88@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/wayland/
Date: Sun, 30 Aug 2015 00:43:18
Message-Id: 1440895601.2f5f3597c24a5372120a1f69c4ce4e368d35f426.mattst88@gentoo
1 commit: 2f5f3597c24a5372120a1f69c4ce4e368d35f426
2 Author: Matt Turner <mattst88 <AT> gentoo <DOT> org>
3 AuthorDate: Sun Aug 30 00:29:09 2015 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Sun Aug 30 00:46:41 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2f5f3597
7
8 dev-libs/wayland: Add git ebuild.
9
10 dev-libs/wayland/wayland-9999.ebuild | 63 ++++++++++++++++++++++++++++++++++++
11 1 file changed, 63 insertions(+)
12
13 diff --git a/dev-libs/wayland/wayland-9999.ebuild b/dev-libs/wayland/wayland-9999.ebuild
14 new file mode 100644
15 index 0000000..ae7ec67
16 --- /dev/null
17 +++ b/dev-libs/wayland/wayland-9999.ebuild
18 @@ -0,0 +1,63 @@
19 +# Copyright 1999-2015 Gentoo Foundation
20 +# Distributed under the terms of the GNU General Public License v2
21 +# $Id$
22 +
23 +EAPI=5
24 +
25 +if [[ ${PV} = 9999* ]]; then
26 + EGIT_REPO_URI="git://anongit.freedesktop.org/git/${PN}/${PN}"
27 + GIT_ECLASS="git-r3"
28 + EXPERIMENTAL="true"
29 + AUTOTOOLS_AUTORECONF=1
30 +fi
31 +
32 +inherit autotools-multilib toolchain-funcs $GIT_ECLASS
33 +
34 +DESCRIPTION="Wayland protocol libraries"
35 +HOMEPAGE="http://wayland.freedesktop.org/"
36 +
37 +if [[ $PV = 9999* ]]; then
38 + SRC_URI="${SRC_PATCHES}"
39 + KEYWORDS=""
40 +else
41 + SRC_URI="http://wayland.freedesktop.org/releases/${P}.tar.xz"
42 + KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
43 +fi
44 +
45 +LICENSE="MIT"
46 +SLOT="0"
47 +IUSE="doc static-libs"
48 +
49 +RDEPEND=">=dev-libs/expat-2.1.0-r3:=[${MULTILIB_USEDEP}]
50 + >=virtual/libffi-3.0.13-r1:=[${MULTILIB_USEDEP}]"
51 +DEPEND="${RDEPEND}
52 + doc? (
53 + >=app-doc/doxygen-1.6[dot]
54 + app-text/xmlto
55 + >=media-gfx/graphviz-2.26.0
56 + sys-apps/grep[pcre]
57 + )
58 + virtual/pkgconfig"
59 +
60 +src_configure() {
61 + local myeconfargs=(
62 + $(use_enable static-libs static)
63 + $(use_enable doc documentation)
64 + )
65 + if tc-is-cross-compiler ; then
66 + myeconfargs+=( --disable-scanner )
67 + fi
68 + if ! multilib_is_native_abi; then
69 + myeconfargs+=( --disable-documentation )
70 + fi
71 +
72 + autotools-multilib_src_configure
73 +}
74 +
75 +src_test() {
76 + export XDG_RUNTIME_DIR="${T}/runtime-dir"
77 + mkdir "${XDG_RUNTIME_DIR}" || die
78 + chmod 0700 "${XDG_RUNTIME_DIR}" || die
79 +
80 + autotools-multilib_src_test
81 +}