Gentoo Archives: gentoo-commits

From: "Michal Gorny (mgorny)" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in eclass: ChangeLog xorg-2.eclass
Date: Sun, 24 Feb 2013 21:05:12
Message-Id: 20130224210509.250412171D@flycatcher.gentoo.org
1 mgorny 13/02/24 21:05:09
2
3 Modified: ChangeLog xorg-2.eclass
4 Log:
5 Introduce multilib support for xlibs.
6
7 Revision Changes Path
8 1.682 eclass/ChangeLog
9
10 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.682&view=markup
11 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.682&content-type=text/plain
12 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?r1=1.681&r2=1.682
13
14 Index: ChangeLog
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v
17 retrieving revision 1.681
18 retrieving revision 1.682
19 diff -u -r1.681 -r1.682
20 --- ChangeLog 24 Feb 2013 16:31:35 -0000 1.681
21 +++ ChangeLog 24 Feb 2013 21:05:08 -0000 1.682
22 @@ -1,6 +1,9 @@
23 # ChangeLog for eclass directory
24 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
25 -# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.681 2013/02/24 16:31:35 pacho Exp $
26 +# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.682 2013/02/24 21:05:08 mgorny Exp $
27 +
28 + 24 Feb 2013; Michał Górny <mgorny@g.o> xorg-2.eclass:
29 + Introduce multilib support for xlibs.
30
31 24 Feb 2013; Pacho Ramos <pacho@g.o> emul-linux-x86.eclass:
32 Drop versionator eclass as it's not needed for a long time, also fixes bug
33
34
35
36 1.61 eclass/xorg-2.eclass
37
38 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/xorg-2.eclass?rev=1.61&view=markup
39 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/xorg-2.eclass?rev=1.61&content-type=text/plain
40 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/xorg-2.eclass?r1=1.60&r2=1.61
41
42 Index: xorg-2.eclass
43 ===================================================================
44 RCS file: /var/cvsroot/gentoo-x86/eclass/xorg-2.eclass,v
45 retrieving revision 1.60
46 retrieving revision 1.61
47 diff -u -r1.60 -r1.61
48 --- xorg-2.eclass 31 Jan 2013 14:12:12 -0000 1.60
49 +++ xorg-2.eclass 24 Feb 2013 21:05:08 -0000 1.61
50 @@ -1,6 +1,6 @@
51 # Copyright 1999-2013 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 -# $Header: /var/cvsroot/gentoo-x86/eclass/xorg-2.eclass,v 1.60 2013/01/31 14:12:12 chithanh Exp $
54 +# $Header: /var/cvsroot/gentoo-x86/eclass/xorg-2.eclass,v 1.61 2013/02/24 21:05:08 mgorny Exp $
55
56 # @ECLASS: xorg-2.eclass
57 # @MAINTAINER:
58 @@ -37,10 +37,20 @@
59 FONT_ECLASS="font"
60 fi
61
62 +# @ECLASS-VARIABLE: XORG_MULTILIB
63 +# @DESCRIPTION:
64 +# If set to 'yes', the multilib support for package will be enabled. Set
65 +# before inheriting this eclass.
66 +: ${XORG_MULTILIB:="no"}
67 +
68 # we need to inherit autotools first to get the deps
69 inherit autotools autotools-utils eutils libtool multilib toolchain-funcs \
70 flag-o-matic ${FONT_ECLASS} ${GIT_ECLASS}
71
72 +if [[ ${XORG_MULTILIB} == yes ]]; then
73 + inherit autotools-multilib
74 +fi
75 +
76 EXPORTED_FUNCTIONS="src_unpack src_compile src_install pkg_postinst pkg_postrm"
77 case "${EAPI:-0}" in
78 3|4|5) EXPORTED_FUNCTIONS="${EXPORTED_FUNCTIONS} src_prepare src_configure" ;;
79 @@ -296,6 +306,10 @@
80 RDEPEND+=" ${COMMON_DEPEND}"
81 unset COMMON_DEPEND
82
83 +if [[ ${XORG_MULTILIB} == yes ]]; then
84 + RDEPEND+=" abi_x86_32? ( !<=app-emulation/emul-linux-x86-xlibs-20121202 )"
85 +fi
86 +
87 debug-print "${LINENO} ${ECLASS} ${FUNCNAME}: DEPEND=${DEPEND}"
88 debug-print "${LINENO} ${ECLASS} ${FUNCNAME}: RDEPEND=${RDEPEND}"
89 debug-print "${LINENO} ${ECLASS} ${FUNCNAME}: PDEPEND=${PDEPEND}"
90 @@ -460,7 +474,11 @@
91 "${xorgconfadd[@]}"
92 )
93
94 - autotools-utils_src_configure "$@"
95 + if [[ ${XORG_MULTILIB} == yes ]]; then
96 + autotools-multilib_src_configure "$@"
97 + else
98 + autotools-utils_src_configure "$@"
99 + fi
100 }
101
102 # @FUNCTION: xorg-2_src_compile
103 @@ -469,7 +487,11 @@
104 xorg-2_src_compile() {
105 debug-print-function ${FUNCNAME} "$@"
106
107 - autotools-utils_src_compile "$@"
108 + if [[ ${XORG_MULTILIB} == yes ]]; then
109 + autotools-multilib_src_compile "$@"
110 + else
111 + autotools-utils_src_compile "$@"
112 + fi
113 }
114
115 # @FUNCTION: xorg-2_src_install
116 @@ -479,13 +501,18 @@
117 xorg-2_src_install() {
118 debug-print-function ${FUNCNAME} "$@"
119
120 + local install_args=( docdir="${EPREFIX}/usr/share/doc/${PF}" )
121 +
122 if [[ ${CATEGORY} == x11-proto ]]; then
123 - autotools-utils_src_install \
124 - ${PN/proto/}docdir="${EPREFIX}/usr/share/doc/${PF}" \
125 - docdir="${EPREFIX}/usr/share/doc/${PF}"
126 + install_args+=(
127 + ${PN/proto/}docdir="${EPREFIX}/usr/share/doc/${PF}"
128 + )
129 + fi
130 +
131 + if [[ ${XORG_MULTILIB} == yes ]]; then
132 + autotools-multilib_src_install "${install_args[@]}"
133 else
134 - autotools-utils_src_install \
135 - docdir="${EPREFIX}/usr/share/doc/${PF}"
136 + autotools-utils_src_install "${install_args[@]}"
137 fi
138
139 if [[ -n ${GIT_ECLASS} ]]; then