Gentoo Archives: gentoo-commits

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