Gentoo Archives: gentoo-commits

From: "Davide Pesavento (pesa)" <pesa@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in eclass: qt4-build.eclass
Date: Mon, 26 Dec 2011 11:59:30
Message-Id: 20111226115919.52A3A20033@flycatcher.gentoo.org
1 pesa 11/12/26 11:59:19
2
3 Modified: qt4-build.eclass
4 Log:
5 Improve eclass doc.
6
7 Revision Changes Path
8 1.110 eclass/qt4-build.eclass
9
10 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/qt4-build.eclass?rev=1.110&view=markup
11 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/qt4-build.eclass?rev=1.110&content-type=text/plain
12 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/qt4-build.eclass?r1=1.109&r2=1.110
13
14 Index: qt4-build.eclass
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-x86/eclass/qt4-build.eclass,v
17 retrieving revision 1.109
18 retrieving revision 1.110
19 diff -u -r1.109 -r1.110
20 --- qt4-build.eclass 26 Dec 2011 00:11:07 -0000 1.109
21 +++ qt4-build.eclass 26 Dec 2011 11:59:19 -0000 1.110
22 @@ -1,6 +1,6 @@
23 # Copyright 1999-2011 Gentoo Foundation
24 # Distributed under the terms of the GNU General Public License v2
25 -# $Header: /var/cvsroot/gentoo-x86/eclass/qt4-build.eclass,v 1.109 2011/12/26 00:11:07 pesa Exp $
26 +# $Header: /var/cvsroot/gentoo-x86/eclass/qt4-build.eclass,v 1.110 2011/12/26 11:59:19 pesa Exp $
27
28 # @ECLASS: qt4-build.eclass
29 # @MAINTAINER:
30 @@ -150,13 +150,17 @@
31 }
32
33 # @ECLASS-VARIABLE: PATCHES
34 +# @DEFAULT_UNSET
35 # @DESCRIPTION:
36 -# In case you have patches to apply, specify them in PATCHES variable. Make sure
37 -# to specify the full path. This variable is necessary for src_prepare phase.
38 -# Example:
39 -# PATCHES="${FILESDIR}"/mypatch.patch
40 -# ${FILESDIR}"/mypatch2.patch"
41 +# PATCHES array variable containing all various patches to be applied.
42 +# This variable is expected to be defined in global scope of ebuild.
43 +# Make sure to specify the full path. This variable is utilised in
44 +# src_unpack/src_prepare phase, based on EAPI.
45 #
46 +# @CODE
47 +# PATCHES=( "${FILESDIR}/mypatch.patch"
48 +# "${FILESDIR}/patches_folder/" )
49 +# @CODE
50
51 # @FUNCTION: qt4-build_src_prepare
52 # @DESCRIPTION:
53 @@ -417,6 +421,7 @@
54 }
55
56 # @FUNCTION: setqtenv
57 +# @INTERNAL
58 setqtenv() {
59 # Set up installation directories
60 QTPREFIXDIR=${EPREFIX}/usr
61 @@ -441,6 +446,7 @@
62 }
63
64 # @FUNCTION: standard_configure_options
65 +# @INTERNAL
66 # @DESCRIPTION:
67 # Sets up some standard configure options, like libdir (if necessary), whether
68 # debug info is wanted or not.
69 @@ -501,6 +507,7 @@
70
71 # @FUNCTION: prepare_directories
72 # @USAGE: < directories >
73 +# @INTERNAL
74 # @DESCRIPTION:
75 # Generates Makefiles for the given list of directories.
76 prepare_directories() {
77 @@ -523,6 +530,7 @@
78
79 # @FUNCTION: build_directories
80 # @USAGE: < directories >
81 +# @INTERNAL
82 # @DESCRIPTION:
83 # Compiles the code in the given list of directories.
84 build_directories() {
85 @@ -537,6 +545,7 @@
86
87 # @FUNCTION: install_directories
88 # @USAGE: < directories >
89 +# @INTERNAL
90 # @DESCRIPTION:
91 # Runs emake install in the given directories, which are separated by spaces.
92 install_directories() {
93 @@ -563,6 +572,7 @@
94 : ${QCONFIG_DEFINE:=}
95
96 # @FUNCTION: install_qconfigs
97 +# @INTERNAL
98 # @DESCRIPTION:
99 # Install gentoo-specific mkspecs configurations.
100 install_qconfigs() {
101 @@ -585,6 +595,7 @@
102 }
103
104 # @FUNCTION: generate_qconfigs
105 +# @INTERNAL
106 # @DESCRIPTION:
107 # Generates gentoo-specific qconfig.{h,pri}.
108 generate_qconfigs() {
109 @@ -659,6 +670,7 @@
110 }
111
112 # @FUNCTION: skip_qmake_build
113 +# @INTERNAL
114 # @DESCRIPTION:
115 # Patches configure to skip qmake compilation, as it's already installed by qt-core.
116 skip_qmake_build() {
117 @@ -666,6 +678,7 @@
118 }
119
120 # @FUNCTION: skip_project_generation
121 +# @INTERNAL
122 # @DESCRIPTION:
123 # Exit the script early by throwing in an exit before all of the .pro files are scanned.
124 skip_project_generation() {
125 @@ -673,6 +686,7 @@
126 }
127
128 # @FUNCTION: symlink_binaries_to_buildtree
129 +# @INTERNAL
130 # @DESCRIPTION:
131 # Symlinks generated binaries to buildtree, so they can be used during compilation time.
132 symlink_binaries_to_buildtree() {
133 @@ -682,6 +696,7 @@
134 }
135
136 # @FUNCTION: fix_library_files
137 +# @INTERNAL
138 # @DESCRIPTION:
139 # Fixes the paths in *.la, *.prl, *.pc, as they are wrong due to sandbox and
140 # moves the *.pc files into the pkgconfig directory.
141 @@ -786,6 +801,7 @@
142 }
143
144 # @FUNCTION: qt_assistant_cleanup
145 +# @INTERNAL
146 # @DESCRIPTION:
147 # Tries to clean up tools.pro for qt-assistant ebuilds.
148 # Meant to be called in src_prepare().
149 @@ -815,6 +831,7 @@
150 }
151
152 # @FUNCTION: qt_nolibx11
153 +# @INTERNAL
154 # @DESCRIPTION:
155 # Ignore X11 tests for packages that don't need X libraries installed.
156 qt_nolibx11() {