1 |
commit: 05501d34f267aa802066ac22b12b3b6fae2d5b1f |
2 |
Author: Michael Palimaka <kensington <AT> astralcloak <DOT> net> |
3 |
AuthorDate: Sun Apr 1 18:02:54 2012 +0000 |
4 |
Commit: Michael Palimaka <kensington <AT> astralcloak <DOT> net> |
5 |
CommitDate: Sun Apr 1 18:02:54 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/qt.git;a=commit;h=05501d34 |
7 |
|
8 |
[eclass] Remove deprecated qt4-ebuild-edge |
9 |
|
10 |
--- |
11 |
eclass/qt4-build-edge.eclass | 193 ------------------------------------------ |
12 |
1 files changed, 0 insertions(+), 193 deletions(-) |
13 |
|
14 |
diff --git a/eclass/qt4-build-edge.eclass b/eclass/qt4-build-edge.eclass |
15 |
deleted file mode 100644 |
16 |
index 649e441..0000000 |
17 |
--- a/eclass/qt4-build-edge.eclass |
18 |
+++ /dev/null |
19 |
@@ -1,193 +0,0 @@ |
20 |
-# Copyright 1999-2010 Gentoo Foundation |
21 |
-# Distributed under the terms of the GNU General Public License v2 |
22 |
-# $Header: $ |
23 |
- |
24 |
-# @ECLASS: qt4-build-edge.eclass |
25 |
-# @MAINTAINER: |
26 |
-# Qt herd <qt@g.o> |
27 |
-# @BLURB: Eclass for Qt4 split ebuilds in qt overlay. |
28 |
-# @DESCRIPTION: |
29 |
-# This eclass contains various functions that are used when building Qt4. |
30 |
- |
31 |
-# WARNING: This eclass requires EAPI 2, 3 or 4 |
32 |
-# |
33 |
-# NOTES: |
34 |
-# |
35 |
-# 4.9999 and 4.?.9999[-kde-qt] |
36 |
-# stands for live ebuilds from qtsoftware's git repository |
37 |
-# (that is Nokia, previously trolltech) |
38 |
-# 4.?.9999[kde-qt] |
39 |
-# stands for live ebuilds from kde-qt git repository |
40 |
-# 4.*.*_{beta,rc,}* and * |
41 |
-# are official releases or snapshots from Nokia |
42 |
-# |
43 |
- |
44 |
-MY_EGIT_COMMIT=${EGIT_COMMIT:=} |
45 |
- |
46 |
-inherit eutils git-2 qt4-build |
47 |
- |
48 |
-if [[ ${PV} == *.9999 ]]; then |
49 |
- SRC_URI= |
50 |
- DEPEND="dev-lang/perl" |
51 |
-fi |
52 |
- |
53 |
-# @FUNCTION: qt4-build-edge_pkg_setup |
54 |
-# @DESCRIPTION: |
55 |
-# Sets up PATH, {,DY}LD_LIBRARY_PATH and EGIT_* variables. |
56 |
-qt4-build-edge_pkg_setup() { |
57 |
- debug-print-function $FUNCNAME "$@" |
58 |
- |
59 |
- MY_PV_EXTRA="${PV}" |
60 |
- |
61 |
- case "${MY_PV_EXTRA}" in |
62 |
- 4.?.9999) |
63 |
- EGIT_REPO_URI="git://gitorious.org/qt/qt.git" |
64 |
- EGIT_PROJECT="qt-${PV}" |
65 |
- EGIT_BRANCH="${MY_PV_EXTRA/.9999}" |
66 |
- ;; |
67 |
- 4.9999) |
68 |
- EGIT_REPO_URI="git://gitorious.org/qt/qt.git" |
69 |
- EGIT_PROJECT="qt-${PV}" |
70 |
- EGIT_BRANCH="master" |
71 |
- ;; |
72 |
- esac |
73 |
- |
74 |
- EGIT_COMMIT=${MY_EGIT_COMMIT:=${EGIT_BRANCH}} |
75 |
- |
76 |
- # Let users know what they are getting themselves into ;-) |
77 |
- if [[ -z ${I_KNOW_WHAT_I_AM_DOING} ]]; then |
78 |
- echo |
79 |
- ewarn "Please file bugs on bugs.gentoo.org and prepend the summary" |
80 |
- ewarn "with [qt overlay]. Alternatively, contact <qt@g.o>." |
81 |
- ewarn "Thank you for using qt overlay." |
82 |
- ewarn |
83 |
- case "${MY_PV_EXTRA}" in |
84 |
- 4.?.9999 | 4.9999) |
85 |
- ewarn "The ${PV} version ebuilds install live git code from Nokia Qt Software." |
86 |
- ;; |
87 |
- 4.*.*_*) |
88 |
- ewarn "The ${PV} version ebuilds install a pre-release from Nokia Qt Software." |
89 |
- ;; |
90 |
- esac |
91 |
- echo |
92 |
- fi |
93 |
- |
94 |
- qt4-build_pkg_setup |
95 |
-} |
96 |
- |
97 |
-# @ECLASS-VARIABLE: QT4_TARGET_DIRECTORIES |
98 |
-# @DESCRIPTION: |
99 |
-# Arguments for build_target_directories. Takes the directories in which the |
100 |
-# code should be compiled. This is a space-separated list of relative paths. |
101 |
- |
102 |
-# @ECLASS-VARIABLE: QT4_EXTRACT_DIRECTORIES |
103 |
-# @DESCRIPTION: |
104 |
-# Space-separated list of directories that will be extracted from Qt tarball. |
105 |
- |
106 |
-# @FUNCTION: qt4-build-edge_src_unpack |
107 |
-# @DESCRIPTION: |
108 |
-# Unpacks the sources. |
109 |
-qt4-build-edge_src_unpack() { |
110 |
- debug-print-function $FUNCNAME "$@" |
111 |
- setqtenv |
112 |
- |
113 |
- local target= targets= |
114 |
- for target in configure LICENSE.{GPL3,LGPL} projects.pro \ |
115 |
- src/{qbase,qt_targets,qt_install}.pri \ |
116 |
- bin config.tests mkspecs qmake \ |
117 |
- ${QT4_EXTRACT_DIRECTORIES}; do |
118 |
- targets+=" ${MY_P}/${target}" |
119 |
- done |
120 |
- |
121 |
- case "${PV}" in |
122 |
- *.9999) |
123 |
- git-2_src_unpack |
124 |
- ;; |
125 |
- *) |
126 |
- echo tar xzf "${DISTDIR}"/${MY_P}.tar.gz ${targets} |
127 |
- tar xzf "${DISTDIR}"/${MY_P}.tar.gz ${targets} || die |
128 |
- ;; |
129 |
- esac |
130 |
-} |
131 |
- |
132 |
-# @ECLASS-VARIABLE: PATCHES |
133 |
-# @DESCRIPTION: |
134 |
-# In case you have patches to apply, specify them here. Make sure to specify |
135 |
-# the full path. This variable is necessary for src_prepare phase. |
136 |
-# Example: |
137 |
-# PATCHES=( "${FILESDIR}"/mypatch.patch |
138 |
-# "${FILESDIR}"/mypatch2.patch ) |
139 |
- |
140 |
-# @FUNCTION: qt4-build-edge_src_prepare |
141 |
-# @DESCRIPTION: |
142 |
-# Prepares the sources before the configure phase. Strips C(XX)FLAGS if necessary, and fixes |
143 |
-# source files in order to respect CFLAGS/CXXFLAGS/LDFLAGS specified on /etc/make.conf. |
144 |
-qt4-build-edge_src_prepare() { |
145 |
- debug-print-function $FUNCNAME "$@" |
146 |
- generate_include |
147 |
- # We need to remove any specific hardcoded compiler flags |
148 |
- sed -i -e '/^QMAKE_CFLAGS[^_.*]/s:\+=.*:=:' \ |
149 |
- -e '/^QMAKE_CXXFLAGS[^_.*]/s:\+=.*:=:' \ |
150 |
- -e '/^QMAKE_LFLAGS[^_.*]/s:\+=.*:=:' \ |
151 |
- "${S}"/mkspecs/common/g++.conf |
152 |
- |
153 |
- qt4-build_src_prepare |
154 |
-} |
155 |
- |
156 |
-# @FUNCTION: qt4-build-edge_src_configure |
157 |
-# @DESCRIPTION: |
158 |
-# Runs ./configure with appropriate arguments. You can use |
159 |
-# the ${myconf} variable to pass additional arguments. |
160 |
-qt4-build-edge_src_configure() { |
161 |
- debug-print-function $FUNCNAME "$@" |
162 |
- qt4-build_src_configure |
163 |
-} |
164 |
- |
165 |
-# @FUNCTION: qt4-build-edge_src_compile |
166 |
-# @DESCRIPTION: |
167 |
-# Compiles the code in ${QT4_TARGET_DIRECTORIES}. |
168 |
-qt4-build-edge_src_compile() { |
169 |
- debug-print-function $FUNCNAME "$@" |
170 |
- qt4-build_src_compile |
171 |
-} |
172 |
- |
173 |
-# @FUNCTION: qt4-build-edge_src_install |
174 |
-# @DESCRIPTION: |
175 |
-# Performs the actual installation including some library fixes. |
176 |
-qt4-build-edge_src_install() { |
177 |
- debug-print-function $FUNCNAME "$@" |
178 |
- qt4-build_src_install |
179 |
-} |
180 |
- |
181 |
-# @FUNCTION: qt4-build-edge_src_test |
182 |
-# @DESCRIPTION: |
183 |
-# Runs make check in target directories only (required for live ebuilds). |
184 |
-qt4-build-edge_src_test() { |
185 |
- debug-print-function $FUNCNAME "$@" |
186 |
- qt4-build_src_test |
187 |
-} |
188 |
- |
189 |
-# @FUNCTION: qt4-build-edge_pkg_postrm |
190 |
-# @DESCRIPTION: |
191 |
-# Generates configuration when the package is completely removed. |
192 |
-qt4-build-edge_pkg_postrm() { |
193 |
- debug-print-function $FUNCNAME "$@" |
194 |
- qt4-build_pkg_postrm |
195 |
-} |
196 |
- |
197 |
-# @FUNCTION: qt4-build-edge_pkg_postinst |
198 |
-# @DESCRIPTION: |
199 |
-# Generates configuration after the package is installed. |
200 |
-qt4-build-edge_pkg_postinst() { |
201 |
- debug-print-function $FUNCNAME "$@" |
202 |
- qt4-build_pkg_postinst |
203 |
-} |
204 |
- |
205 |
-# @FUNCTION: generate_include |
206 |
-# @DESCRIPTION: |
207 |
-# Internal function, required for live ebuilds. |
208 |
-generate_include() { |
209 |
- QTDIR="." perl bin/syncqt |
210 |
-} |
211 |
- |
212 |
-EXPORT_FUNCTIONS pkg_setup src_unpack src_prepare src_configure src_compile src_install src_test pkg_postrm pkg_postinst |