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/weston/
Date: Sun, 30 Aug 2015 00:43:18
Message-Id: 1440895602.89b8616e42fdf7be3e3244cab6451562e922773f.mattst88@gentoo
1 commit: 89b8616e42fdf7be3e3244cab6451562e922773f
2 Author: Matt Turner <mattst88 <AT> gentoo <DOT> org>
3 AuthorDate: Sun Aug 30 00:34:19 2015 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Sun Aug 30 00:46:42 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=89b8616e
7
8 dev-libs/weston: Add git ebuild.
9
10 dev-libs/weston/weston-9999.ebuild | 161 +++++++++++++++++++++++++++++++++++++
11 1 file changed, 161 insertions(+)
12
13 diff --git a/dev-libs/weston/weston-9999.ebuild b/dev-libs/weston/weston-9999.ebuild
14 new file mode 100644
15 index 0000000..51191e0
16 --- /dev/null
17 +++ b/dev-libs/weston/weston-9999.ebuild
18 @@ -0,0 +1,161 @@
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/wayland/${PN}"
27 + GIT_ECLASS="git-r3"
28 + EXPERIMENTAL="true"
29 +fi
30 +VIRTUALX_REQUIRED="test"
31 +RESTRICT="test"
32 +
33 +inherit autotools readme.gentoo toolchain-funcs virtualx $GIT_ECLASS
34 +
35 +DESCRIPTION="Wayland reference compositor"
36 +HOMEPAGE="http://wayland.freedesktop.org/"
37 +
38 +if [[ $PV = 9999* ]]; then
39 + SRC_URI="${SRC_PATCHES}"
40 + KEYWORDS=""
41 +else
42 + SRC_URI="http://wayland.freedesktop.org/releases/${P}.tar.xz"
43 + KEYWORDS="~amd64 ~arm ~x86 ~arm-linux"
44 +fi
45 +
46 +LICENSE="MIT CC-BY-SA-3.0"
47 +SLOT="0"
48 +IUSE="colord dbus +drm +egl editor examples fbdev gles2 headless ivi +opengl rdp +resize-optimization rpi +launch screen-sharing static-libs +suid systemd test unwind wayland-compositor +X xwayland"
49 +
50 +REQUIRED_USE="
51 + drm? ( egl )
52 + egl? ( || ( gles2 opengl ) )
53 + gles2? ( !opengl )
54 + screen-sharing? ( rdp )
55 + test? ( X )
56 + wayland-compositor? ( egl )
57 +"
58 +
59 +RDEPEND="
60 + >=dev-libs/libinput-0.8.0
61 + >=dev-libs/wayland-1.8.1
62 + media-libs/lcms:2
63 + media-libs/libpng:0=
64 + media-libs/libwebp:0=
65 + virtual/jpeg
66 + >=x11-libs/cairo-1.11.3[gles2(-)?,opengl?]
67 + >=x11-libs/libdrm-2.4.30
68 + x11-libs/libxkbcommon
69 + x11-libs/pixman
70 + x11-misc/xkeyboard-config
71 + fbdev? (
72 + >=sys-libs/mtdev-1.1.0
73 + >=virtual/udev-136
74 + )
75 + colord? ( >=x11-misc/colord-0.1.27 )
76 + dbus? ( sys-apps/dbus )
77 + drm? (
78 + media-libs/mesa[gbm]
79 + >=sys-libs/mtdev-1.1.0
80 + >=virtual/udev-136
81 + )
82 + egl? (
83 + media-libs/glu
84 + media-libs/mesa[gles2,wayland]
85 + )
86 + editor? ( x11-libs/pango )
87 + gles2? (
88 + media-libs/mesa[wayland]
89 + )
90 + opengl? (
91 + media-libs/mesa[wayland]
92 + )
93 + rdp? ( >=net-misc/freerdp-1.1.0_beta1_p20130710 )
94 + rpi? (
95 + >=sys-libs/mtdev-1.1.0
96 + >=virtual/udev-136
97 + )
98 + systemd? (
99 + sys-auth/pambase[systemd]
100 + sys-apps/systemd[pam]
101 + )
102 + launch? ( sys-auth/pambase )
103 + unwind? ( sys-libs/libunwind )
104 + X? (
105 + x11-libs/libxcb
106 + x11-libs/libX11
107 + )
108 + xwayland? (
109 + x11-base/xorg-server[wayland]
110 + x11-libs/cairo[xcb]
111 + x11-libs/libxcb
112 + x11-libs/libXcursor
113 + )
114 +"
115 +DEPEND="${RDEPEND}
116 + virtual/pkgconfig
117 +"
118 +
119 +src_prepare() {
120 + if [[ ${PV} = 9999* ]]; then
121 + eautoreconf
122 + fi
123 +}
124 +
125 +src_configure() {
126 + local myconf
127 + if use examples || use gles2 || use test; then
128 + myconf="--enable-simple-clients
129 + $(use_enable egl simple-egl-clients)"
130 + else
131 + myconf="--disable-simple-clients
132 + --disable-simple-egl-clients"
133 + fi
134 +
135 + if use gles2; then
136 + myconf+=" --with-cairo=glesv2"
137 + elif use opengl; then
138 + myconf+=" --with-cairo=gl"
139 + else
140 + myconf+=" --with-cairo=image"
141 + fi
142 +
143 + econf \
144 + $(use_enable examples demo-clients-install) \
145 + $(use_enable fbdev fbdev-compositor) \
146 + $(use_enable dbus) \
147 + $(use_enable drm drm-compositor) \
148 + $(use_enable headless headless-compositor) \
149 + $(use_enable ivi ivi-shell) \
150 + $(use_enable rdp rdp-compositor) \
151 + $(use_enable rpi rpi-compositor) \
152 + $(use_enable wayland-compositor) \
153 + $(use_enable X x11-compositor) \
154 + $(use_enable launch weston-launch) \
155 + $(use_enable colord) \
156 + $(use_enable egl) \
157 + $(use_enable unwind libunwind) \
158 + $(use_enable resize-optimization) \
159 + $(use_enable screen-sharing) \
160 + $(use_enable suid setuid-install) \
161 + $(use_enable xwayland) \
162 + $(use_enable xwayland xwayland-test) \
163 + ${myconf}
164 +}
165 +
166 +src_test() {
167 + export XDG_RUNTIME_DIR="${T}/runtime-dir"
168 + mkdir "${XDG_RUNTIME_DIR}" || die
169 + chmod 0700 "${XDG_RUNTIME_DIR}" || die
170 +
171 + cd "${BUILD_DIR}" || die
172 + Xemake check
173 +}
174 +
175 +src_install() {
176 + default
177 +
178 + readme.gentoo_src_install
179 +}