Gentoo Archives: gentoo-commits

From: Davide Pesavento <pesa@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Tue, 02 Feb 2016 18:35:49
Message-Id: 1454438099.26c05325ae0704c756be7add2fc07d83cd8b34f8.pesa@gentoo
1 commit: 26c05325ae0704c756be7add2fc07d83cd8b34f8
2 Author: Davide Pesavento <pesa <AT> gentoo <DOT> org>
3 AuthorDate: Mon Dec 28 01:36:06 2015 +0000
4 Commit: Davide Pesavento <pesa <AT> gentoo <DOT> org>
5 CommitDate: Tue Feb 2 18:34:59 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=26c05325
7
8 qt5-build.eclass: move some things around
9
10 Also, stop documenting PATCHES in eclass-doc. Everyone knows
11 about it, and it's a PMS thing since EAPI 6 anyway.
12
13 (cherry picked from proj/qt commit 4b70a2ea5396afc14f018bb3429be4a89d8f1ecf
14 and f4aa5216a0b71858e2cefc6aed4bbf72cf8aa303)
15
16 eclass/qt5-build.eclass | 76 +++++++++++++++++++------------------------------
17 1 file changed, 30 insertions(+), 46 deletions(-)
18
19 diff --git a/eclass/qt5-build.eclass b/eclass/qt5-build.eclass
20 index 5315f6b..dc9e19a 100644
21 --- a/eclass/qt5-build.eclass
22 +++ b/eclass/qt5-build.eclass
23 @@ -17,6 +17,26 @@ case ${EAPI} in
24 *) die "qt5-build.eclass: unsupported EAPI=${EAPI:-0}" ;;
25 esac
26
27 +# @ECLASS-VARIABLE: QT5_MODULE
28 +# @DESCRIPTION:
29 +# The upstream name of the module this package belongs to. Used for
30 +# SRC_URI and EGIT_REPO_URI. Must be defined before inheriting the eclass.
31 +: ${QT5_MODULE:=${PN}}
32 +
33 +# @ECLASS-VARIABLE: QT5_TARGET_SUBDIRS
34 +# @DEFAULT_UNSET
35 +# @DESCRIPTION:
36 +# Array variable containing the source directories that should be built.
37 +# All paths must be relative to ${S}.
38 +
39 +# @ECLASS-VARIABLE: QT5_GENTOO_CONFIG
40 +# @DEFAULT_UNSET
41 +# @DESCRIPTION:
42 +# Array of <useflag:feature:macro> triplets that are evaluated in src_install
43 +# to generate the per-package list of enabled QT_CONFIG features and macro
44 +# definitions, which are then merged together with all other Qt5 packages
45 +# installed on the system to obtain the global qconfig.{h,pri} files.
46 +
47 # @ECLASS-VARIABLE: VIRTUALX_REQUIRED
48 # @DESCRIPTION:
49 # For proper description see virtualx.eclass man page.
50 @@ -35,12 +55,6 @@ readonly QT5_MINOR_VERSION
51
52 SLOT="5"
53
54 -# @ECLASS-VARIABLE: QT5_MODULE
55 -# @DESCRIPTION:
56 -# The upstream name of the module this package belongs to. Used for
57 -# SRC_URI and EGIT_REPO_URI. Must be defined before inheriting the eclass.
58 -: ${QT5_MODULE:=${PN}}
59 -
60 case ${PV} in
61 5.9999)
62 # git dev branch
63 @@ -76,6 +90,14 @@ EGIT_REPO_URI=(
64 )
65 [[ ${QT5_BUILD_TYPE} == live ]] && inherit git-r3
66
67 +# @ECLASS-VARIABLE: QT5_BUILD_DIR
68 +# @DESCRIPTION:
69 +# Build directory for out-of-source builds.
70 +case ${QT5_BUILD_TYPE} in
71 + live) : ${QT5_BUILD_DIR:=${S}_build} ;;
72 + release) : ${QT5_BUILD_DIR:=${S}} ;; # workaround for bug 497312
73 +esac
74 +
75 IUSE="debug test"
76
77 [[ ${PN} == qtwebkit ]] && RESTRICT+=" mirror" # bug 524584
78 @@ -92,49 +114,11 @@ RDEPEND="
79 dev-qt/qtchooser
80 "
81
82 -EXPORT_FUNCTIONS src_unpack src_prepare src_configure src_compile src_install src_test pkg_postinst pkg_postrm
83 -
84 -
85 -# @ECLASS-VARIABLE: PATCHES
86 -# @DEFAULT_UNSET
87 -# @DESCRIPTION:
88 -# Array variable containing all the patches to be applied. This variable
89 -# is expected to be defined in the global scope of ebuilds. Make sure to
90 -# specify the full path. This variable is used in src_prepare phase.
91 -#
92 -# Example:
93 -# @CODE
94 -# PATCHES=(
95 -# "${FILESDIR}/mypatch.patch"
96 -# "${FILESDIR}/mypatch2.patch"
97 -# )
98 -# @CODE
99 -
100 -# @ECLASS-VARIABLE: QT5_TARGET_SUBDIRS
101 -# @DEFAULT_UNSET
102 -# @DESCRIPTION:
103 -# Array variable containing the source directories that should be built.
104 -# All paths must be relative to ${S}.
105 -
106 -# @ECLASS-VARIABLE: QT5_BUILD_DIR
107 -# @DESCRIPTION:
108 -# Build directory for out-of-source builds.
109 -case ${QT5_BUILD_TYPE} in
110 - live) : ${QT5_BUILD_DIR:=${S}_build} ;;
111 - release) : ${QT5_BUILD_DIR:=${S}} ;; # workaround for bug 497312
112 -esac
113 -
114 -# @ECLASS-VARIABLE: QT5_GENTOO_CONFIG
115 -# @DEFAULT_UNSET
116 -# @DESCRIPTION:
117 -# Array of <useflag:feature:macro> triplets that are evaluated in src_install
118 -# to generate the per-package list of enabled QT_CONFIG features and macro
119 -# definitions, which are then merged together with all other Qt5 packages
120 -# installed on the system to obtain the global qconfig.{h,pri} files.
121 -
122
123 ###### Phase functions ######
124
125 +EXPORT_FUNCTIONS src_unpack src_prepare src_configure src_compile src_install src_test pkg_postinst pkg_postrm
126 +
127 # @FUNCTION: qt5-build_src_unpack
128 # @DESCRIPTION:
129 # Unpacks the sources.