blob: 05f8387ae157cebf8d45c9650debf33b3bd876cc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=5
PYTHON_COMPAT=( python{2_6,2_7} )
inherit flag-o-matic python-r1 xorg-2
EGIT_REPO_URI="git://anongit.freedesktop.org/git/xcb/xpyb"
#SRC_URI="http://xcb.freedesktop.org/dist/${P}.tar.bz2"
DESCRIPTION="XCB-based Python bindings for the X Window System"
HOMEPAGE="http://xcb.freedesktop.org/"
KEYWORDS=""
IUSE="selinux"
RDEPEND=">=x11-libs/libxcb-1.7
>=x11-proto/xcb-proto-1.7.1[${PYTHON_USEDEP}]
${PYTHON_DEPS}"
DEPEND="${RDEPEND}"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
DOCS=( NEWS README )
_mypywrap() {
local CFLAGS="${CFLAGS} $(python_get_CFLAGS)"
local CXXFLAGS="${CXXFLAGS} $(python_get_CFLAGS)"
export CFLAGS CXXFLAGS
"$@"
}
pkg_setup() {
xorg-2_pkg_setup
}
src_configure() {
XORG_CONFIGURE_OPTIONS=(
$(use_enable selinux xselinux)
)
append-cflags -fno-strict-aliasing
python_parallel_foreach_impl _mypywrap xorg-2_src_configure
}
src_compile() {
python_foreach_impl _mypywrap xorg-2_src_compile
}
src_install() {
python_foreach_impl _mypywrap xorg-2_src_install
}
|