/[gentoo-x86]/x11-proto/xcb-proto/xcb-proto-1.10.ebuild
Gentoo

Contents of /x11-proto/xcb-proto/xcb-proto-1.10.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.15 - (show annotations) (download)
Wed Apr 8 17:27:25 2015 UTC (3 years, 5 months ago) by mgorny
Branch: MAIN
CVS Tags: HEAD
Changes since 1.14: +3 -3 lines
Drop old Python implementations

(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key EFB4464E!)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/x11-proto/xcb-proto/xcb-proto-1.10.ebuild,v 1.14 2014/07/04 13:20:35 haubi Exp $
4
5 EAPI=5
6
7 PYTHON_COMPAT=( python{2_7,3_3} )
8 XORG_MULTILIB=yes
9
10 inherit python-r1 xorg-2
11
12 DESCRIPTION="X C-language Bindings protocol headers"
13 HOMEPAGE="http://xcb.freedesktop.org/"
14 EGIT_REPO_URI="git://anongit.freedesktop.org/git/xcb/proto"
15 [[ ${PV} != 9999* ]] && \
16 SRC_URI="http://xcb.freedesktop.org/dist/${P}.tar.bz2"
17
18 KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~ppc-aix ~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"
19 IUSE=""
20
21 RDEPEND="${PYTHON_DEPS}"
22 DEPEND="${RDEPEND}
23 dev-libs/libxml2"
24
25 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
26
27 src_configure() {
28 python_export_best
29 xorg-2_src_configure
30 }
31
32 multilib_src_configure() {
33 autotools-utils_src_configure
34
35 if multilib_is_native_abi; then
36 python_parallel_foreach_impl autotools-utils_src_configure
37 fi
38 }
39
40 multilib_src_compile() {
41 default
42
43 if multilib_is_native_abi; then
44 python_foreach_impl autotools-utils_src_compile -C xcbgen \
45 top_builddir="${BUILD_DIR}"
46 fi
47 }
48
49 src_install() {
50 xorg-2_src_install
51
52 # pkg-config file hardcodes python sitedir, bug 486512
53 sed -i -e '/pythondir/s:=.*$:=/dev/null:' \
54 "${ED}"/usr/lib*/pkgconfig/xcb-proto.pc || die
55 }
56
57 multilib_src_install() {
58 default
59
60 if multilib_is_native_abi; then
61 python_foreach_impl autotools-utils_src_install -C xcbgen \
62 top_builddir="${BUILD_DIR}"
63 fi
64 }

  ViewVC Help
Powered by ViewVC 1.1.20