Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/x11:master commit in: x11-libs/xpyb/, x11-proto/xcb-proto/, x11-libs/libxcb/, media-libs/mesa/
Date: Wed, 06 Mar 2013 13:20:26
Message-Id: 1362576025.e6520cd1de58368a882402e9edd4f27851531f05.mgorny@gentoo
1 commit: e6520cd1de58368a882402e9edd4f27851531f05
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed Mar 6 13:20:25 2013 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed Mar 6 13:20:25 2013 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/x11.git;a=commit;h=e6520cd1
7
8 Convert live ebuilds to python-r1, sync to gx86.
9
10 ---
11 media-libs/mesa/mesa-9999.ebuild | 13 +++++++++----
12 x11-libs/libxcb/libxcb-9999.ebuild | 15 ++++++++++-----
13 x11-libs/xpyb/xpyb-9999.ebuild | 17 ++++++++++-------
14 x11-proto/xcb-proto/xcb-proto-9999.ebuild | 23 +++++++----------------
15 4 files changed, 36 insertions(+), 32 deletions(-)
16
17 diff --git a/media-libs/mesa/mesa-9999.ebuild b/media-libs/mesa/mesa-9999.ebuild
18 index 06c91e8..2f04276 100644
19 --- a/media-libs/mesa/mesa-9999.ebuild
20 +++ b/media-libs/mesa/mesa-9999.ebuild
21 @@ -11,7 +11,9 @@ if [[ ${PV} = 9999* ]]; then
22 EXPERIMENTAL="true"
23 fi
24
25 -inherit base autotools multilib flag-o-matic toolchain-funcs ${GIT_ECLASS}
26 +PYTHON_COMPAT=( python{2_6,2_7} )
27 +
28 +inherit base autotools multilib flag-o-matic python-single-r1 toolchain-funcs ${GIT_ECLASS}
29
30 OPENGL_DIR="xorg-x11"
31
32 @@ -36,7 +38,7 @@ fi
33 # GLES[2]/gl[2]{,ext,platform}.h are SGI-B-2.0
34 LICENSE="MIT SGI-B-2.0"
35 SLOT="0"
36 -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~sparc-solaris ~x64-solaris ~x86-solaris"
37 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~sparc-solaris ~x64-solaris ~x86-solaris"
38
39 INTEL_CARDS="i915 i965 intel"
40 RADEON_CARDS="r100 r200 r300 r600 radeon radeonsi"
41 @@ -115,8 +117,8 @@ DEPEND="${RDEPEND}
42 r600-llvm-compiler? ( >=sys-devel/llvm-3.1 )
43 video_cards_radeonsi? ( >=sys-devel/llvm-3.1 )
44 )
45 - =dev-lang/python-2*
46 - dev-libs/libxml2[python]
47 + ${PYTHON_DEPS}
48 + dev-libs/libxml2[python,${PYTHON_USEDEP}]
49 sys-devel/bison
50 sys-devel/flex
51 virtual/pkgconfig
52 @@ -139,6 +141,8 @@ QA_WX_LOAD="usr/lib*/opengl/xorg-x11/lib/libGL.so*"
53 pkg_setup() {
54 # workaround toc-issue wrt #386545
55 use ppc64 && append-flags -mminimal-toc
56 +
57 + python-single-r1_pkg_setup
58 }
59
60 src_unpack() {
61 @@ -260,6 +264,7 @@ src_configure() {
62 $(use_enable xorg) \
63 --with-dri-drivers=${DRI_DRIVERS} \
64 --with-gallium-drivers=${GALLIUM_DRIVERS} \
65 + PYTHON2="${PYTHON}" \
66 ${myconf}
67 }
68
69
70 diff --git a/x11-libs/libxcb/libxcb-9999.ebuild b/x11-libs/libxcb/libxcb-9999.ebuild
71 index 63dbf27..bb9356b 100644
72 --- a/x11-libs/libxcb/libxcb-9999.ebuild
73 +++ b/x11-libs/libxcb/libxcb-9999.ebuild
74 @@ -4,9 +4,12 @@
75
76 EAPI=5
77
78 +PYTHON_COMPAT=( python{2_6,2_7,3_1,3_2,3_3} )
79 +PYTHON_REQ_USE=xml
80 +
81 XORG_DOC=doc
82 XORG_MULTILIB=yes
83 -inherit xorg-2
84 +inherit python-single-r1 xorg-2
85
86 DESCRIPTION="X C-language Bindings library"
87 HOMEPAGE="http://xcb.freedesktop.org/"
88 @@ -14,7 +17,7 @@ EGIT_REPO_URI="git://anongit.freedesktop.org/git/xcb/libxcb"
89 [[ ${PV} != 9999* ]] && \
90 SRC_URI="http://xcb.freedesktop.org/dist/${P}.tar.bz2"
91
92 -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
93 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
94 IUSE="selinux"
95
96 RDEPEND="dev-libs/libpthread-stubs[${MULTILIB_USEDEP}]
97 @@ -23,13 +26,15 @@ RDEPEND="dev-libs/libpthread-stubs[${MULTILIB_USEDEP}]
98 DEPEND="${RDEPEND}
99 dev-lang/python[xml]
100 dev-libs/libxslt
101 - >=x11-proto/xcb-proto-1.7"
102 + >=x11-proto/xcb-proto-1.7-r1[${MULTILIB_USEDEP},${PYTHON_USEDEP}]
103 + ${PYTHON_DEPS}"
104
105 -src_configure() {
106 +pkg_setup() {
107 + python-single-r1_pkg_setup
108 + xorg-2_pkg_setup
109 XORG_CONFIGURE_OPTIONS=(
110 $(use_enable doc build-docs)
111 $(use_enable selinux)
112 --enable-xinput
113 )
114 - xorg-2_src_configure
115 }
116
117 diff --git a/x11-libs/xpyb/xpyb-9999.ebuild b/x11-libs/xpyb/xpyb-9999.ebuild
118 index 0354ccd..f14e35f 100644
119 --- a/x11-libs/xpyb/xpyb-9999.ebuild
120 +++ b/x11-libs/xpyb/xpyb-9999.ebuild
121 @@ -3,26 +3,29 @@
122 # $Header: $
123
124 EAPI=5
125 -inherit xorg-2
126 +
127 +PYTHON_COMPAT=( python{2_5,2_6,2_7,3_1,3_2,3_3} )
128 +inherit python-single-r1 xorg-2
129
130 EGIT_REPO_URI="git://anongit.freedesktop.org/git/xcb/xpyb"
131 #SRC_URI="http://xcb.freedesktop.org/dist/${P}.tar.bz2"
132 DESCRIPTION="XCB-based Python bindings for the X Window System"
133 HOMEPAGE="http://xcb.freedesktop.org/"
134
135 -KEYWORDS="~amd64 ~x86"
136 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
137 IUSE="selinux"
138
139 -RDEPEND=">=x11-libs/libxcb-1.1
140 - >=dev-lang/python-2.5
141 - >=x11-proto/xcb-proto-1.2"
142 +RDEPEND=">=x11-libs/libxcb-1.7
143 + >=x11-proto/xcb-proto-1.7.1[${PYTHON_USEDEP}]
144 + ${PYTHON_DEPS}"
145 DEPEND="${RDEPEND}"
146
147 DOCS=( NEWS README )
148
149 -src_configure() {
150 +pkg_setup() {
151 + python-single-r1_pkg_setup
152 + xorg-2_pkg_setup
153 XORG_CONFIGURE_OPTIONS=(
154 $(use_enable selinux xselinux)
155 )
156 - xorg-2_src_configure
157 }
158
159 diff --git a/x11-proto/xcb-proto/xcb-proto-9999.ebuild b/x11-proto/xcb-proto/xcb-proto-9999.ebuild
160 index 1788579..b279fee 100644
161 --- a/x11-proto/xcb-proto/xcb-proto-9999.ebuild
162 +++ b/x11-proto/xcb-proto/xcb-proto-9999.ebuild
163 @@ -4,10 +4,9 @@
164
165 EAPI=5
166
167 -PYTHON_DEPEND="*"
168 +PYTHON_COMPAT=( python{2_5,2_6,2_7,3_1,3_2,3_3} )
169 XORG_MULTILIB=yes
170 -
171 -inherit python xorg-2
172 +inherit python-single-r1 xorg-2
173
174 DESCRIPTION="X C-language Bindings protocol headers"
175 HOMEPAGE="http://xcb.freedesktop.org/"
176 @@ -15,22 +14,14 @@ EGIT_REPO_URI="git://anongit.freedesktop.org/git/xcb/proto"
177 [[ ${PV} != 9999* ]] && \
178 SRC_URI="http://xcb.freedesktop.org/dist/${P}.tar.bz2"
179
180 -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
181 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
182 IUSE=""
183
184 -RDEPEND=""
185 +RDEPEND="${PYTHON_DEPS}"
186 DEPEND="${RDEPEND}
187 dev-libs/libxml2"
188
189 -src_prepare() {
190 - python_clean_py-compile_files
191 - xorg-2_src_prepare
192 -}
193 -
194 -pkg_postinst() {
195 - python_mod_optimize xcbgen
196 -}
197 -
198 -pkg_postrm() {
199 - python_mod_cleanup xcbgen
200 +pkg_setup() {
201 + python-single-r1_pkg_setup
202 + xorg-2_pkg_setup
203 }