| 1 |
# Copyright 1999-2012 Gentoo Foundation |
| 2 |
# Distributed under the terms of the GNU General Public License v2 |
| 3 |
# $Header: /var/cvsroot/gentoo-x86/dev-libs/wayland/wayland-0.85.0.ebuild,v 1.5 2012/06/14 23:17:12 ssuominen Exp $ |
| 4 |
|
| 5 |
EAPI=4 |
| 6 |
|
| 7 |
EGIT_REPO_URI="git://anongit.freedesktop.org/git/${PN}/${PN}" |
| 8 |
|
| 9 |
if [[ ${PV} = 9999* ]]; then |
| 10 |
GIT_ECLASS="git-2" |
| 11 |
EXPERIMENTAL="true" |
| 12 |
fi |
| 13 |
|
| 14 |
inherit autotools toolchain-funcs $GIT_ECLASS |
| 15 |
|
| 16 |
DESCRIPTION="Wayland protocol libraries" |
| 17 |
HOMEPAGE="http://wayland.freedesktop.org/" |
| 18 |
|
| 19 |
if [[ $PV = 9999* ]]; then |
| 20 |
SRC_URI="${SRC_PATCHES}" |
| 21 |
else |
| 22 |
SRC_URI="http://wayland.freedesktop.org/releases/${P}.tar.xz" |
| 23 |
fi |
| 24 |
|
| 25 |
LICENSE="CCPL-Attribution-ShareAlike-3.0 MIT" |
| 26 |
SLOT="0" |
| 27 |
KEYWORDS="~amd64 ~arm ~hppa ~ppc64 ~x86" |
| 28 |
IUSE="static-libs" |
| 29 |
|
| 30 |
RDEPEND="dev-libs/expat |
| 31 |
virtual/libffi" |
| 32 |
DEPEND="${RDEPEND}" |
| 33 |
|
| 34 |
src_prepare() { |
| 35 |
if [[ ${PV} = 9999* ]]; then |
| 36 |
eautoreconf |
| 37 |
fi |
| 38 |
} |
| 39 |
|
| 40 |
src_configure() { |
| 41 |
if tc-is-cross-compiler ; then |
| 42 |
econf $(use_enable static-libs static) --disable-scanner |
| 43 |
else |
| 44 |
econf $(use_enable static-libs static) |
| 45 |
fi |
| 46 |
} |