Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/kde-sunset:master commit in: eclass/
Date: Mon, 30 Nov 2020 02:19:35
Message-Id: 1606702758.bafbcc93354e2648f1853fdb0659025fdcafe000.asturm@gentoo
1 commit: bafbcc93354e2648f1853fdb0659025fdcafe000
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Mon Nov 30 02:15:15 2020 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Mon Nov 30 02:19:18 2020 +0000
6 URL: https://gitweb.gentoo.org/proj/kde-sunset.git/commit/?id=bafbcc93
7
8 qt3.eclass: Remove unused eclass
9
10 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
11
12 eclass/qt3.eclass | 141 ------------------------------------------------------
13 1 file changed, 141 deletions(-)
14
15 diff --git a/eclass/qt3.eclass b/eclass/qt3.eclass
16 deleted file mode 100644
17 index cd59f8e3..00000000
18 --- a/eclass/qt3.eclass
19 +++ /dev/null
20 @@ -1,141 +0,0 @@
21 -# Copyright 2005-2010 Gentoo Foundation
22 -# Distributed under the terms of the GNU General Public License v2
23 -# $Header: /var/cvsroot/gentoo-x86/eclass/qt3.eclass,v 1.41 2009/05/17 15:17:03 hwoarang Exp $
24 -
25 -# @ECLASS: qt3.eclass
26 -# @MAINTAINER:
27 -# kde-sunset overlay maintainers
28 -# @BLURB: Eclass for Qt3 packages
29 -# @DESCRIPTION:
30 -# This eclass contains various functions that may be useful
31 -# when dealing with packages using Qt3 libraries.
32 -
33 -inherit toolchain-funcs versionator eutils
34 -
35 -QTPKG="dev-qt/qt-"
36 -QT3MAJORVERSIONS="3.3 3.2 3.1 3.0"
37 -QT3VERSIONS="3.3.8b-r1 3.3.8b 3.3.8-r4 3.3.8-r3 3.3.8-r2 3.3.8-r1 3.3.8 3.3.6-r5 3.3.6-r4 3.3.6-r3 3.3.6-r2 3.3.6-r1 3.3.6 3.3.5-r1 3.3.5 3.3.4-r9 3.3.4-r8 3.3.4-r7 3.3.4-r6 3.3.4-r5 3.3.4-r4 3.3.4-r3 3.3.4-r2 3.3.4-r1 3.3.4 3.3.3-r3 3.3.3-r2 3.3.3-r1 3.3.3 3.3.2 3.3.1-r2 3.3.1-r1 3.3.1 3.3.0-r1 3.3.0 3.2.3-r1 3.2.3 3.2.2-r1 3.2.2 3.2.1-r2 3.2.1-r1 3.2.1 3.2.0 3.1.2-r4 3.1.2-r3 3.1.2-r2 3.1.2-r1 3.1.2 3.1.1-r2 3.1.1-r1 3.1.1 3.1.0-r3 3.1.0-r2 3.1.0-r1 3.1.0"
38 -
39 -if [[ -z "${QTDIR}" ]]; then
40 - export QTDIR="/usr/qt/3"
41 -fi
42 -
43 -addwrite "${QTDIR}/etc/settings"
44 -addpredict "${QTDIR}/etc/settings"
45 -
46 -# @FUNCTION: qt_min_version
47 -# @USAGE: [minimum version]
48 -# @DESCRIPTION:
49 -# This function is deprecated. Use slot dependencies instead.
50 -qt_min_version() {
51 - local list=$(qt_min_version_list "$@")
52 - ewarn "${CATEGORY}/${PF}: qt_min_version() is deprecated. Use slot dependencies instead."
53 - if [[ ${list%% *} == "${list}" ]]; then
54 - echo "${list}"
55 - else
56 - echo "|| ( ${list} )"
57 - fi
58 -}
59 -
60 -qt_min_version_list() {
61 - local MINVER="$1"
62 - local VERSIONS=""
63 -
64 - case "${MINVER}" in
65 - 3|3.0|3.0.0) VERSIONS="=${QTPKG}3*";;
66 - 3.1|3.1.0|3.2|3.2.0|3.3|3.3.0)
67 - for x in ${QT3MAJORVERSIONS}; do
68 - if $(version_is_at_least "${MINVER}" "${x}"); then
69 - VERSIONS="${VERSIONS} =${QTPKG}${x}*"
70 - fi
71 - done
72 - ;;
73 - 3*)
74 - for x in ${QT3VERSIONS}; do
75 - if $(version_is_at_least "${MINVER}" "${x}"); then
76 - VERSIONS="${VERSIONS} =${QTPKG}${x}"
77 - fi
78 - done
79 - ;;
80 - *) VERSIONS="=${QTPKG}3*";;
81 - esac
82 -
83 - echo ${VERSIONS}
84 -}
85 -
86 -# @FUNCTION: eqmake3
87 -# @USAGE: [.pro file] [additional parameters to qmake]
88 -# @MAINTAINER:
89 -# Przemyslaw Maciag <troll@g.o>
90 -# Davide Pesavento <davidepesa@×××××.com>
91 -# @DESCRIPTION:
92 -# Runs qmake on the specified .pro file (defaults to
93 -# ${PN}.pro if eqmake3 was called with no argument).
94 -# Additional parameters are passed unmodified to qmake.
95 -eqmake3() {
96 - local LOGFILE="${T}/qmake-$$.out"
97 - local projprofile="${1}"
98 - [[ -z ${projprofile} ]] && projprofile="${PN}.pro"
99 - shift 1
100 -
101 - ebegin "Processing qmake ${projprofile}"
102 -
103 - # file exists?
104 - if [[ ! -f ${projprofile} ]]; then
105 - echo
106 - eerror "Project .pro file \"${projprofile}\" does not exist"
107 - eerror "qmake cannot handle non-existing .pro files"
108 - echo
109 - eerror "This shouldn't happen - please send a bug report to bugs.gentoo.org"
110 - echo
111 - die "Project file not found in ${PN} sources"
112 - fi
113 -
114 - echo >> ${LOGFILE}
115 - echo "****** qmake ${projprofile} ******" >> ${LOGFILE}
116 - echo >> ${LOGFILE}
117 -
118 - # some standard config options
119 - local configoptplus="CONFIG += no_fixpath"
120 - local configoptminus="CONFIG -="
121 - if has debug ${IUSE} && use debug; then
122 - configoptplus="${configoptplus} debug"
123 - configoptminus="${configoptminus} release"
124 - else
125 - configoptplus="${configoptplus} release"
126 - configoptminus="${configoptminus} debug"
127 - fi
128 -
129 - ${QTDIR}/bin/qmake ${projprofile} \
130 - QTDIR=${QTDIR} \
131 - QMAKE=${QTDIR}/bin/qmake \
132 - QMAKE_CC=$(tc-getCC) \
133 - QMAKE_CXX=$(tc-getCXX) \
134 - QMAKE_LINK=$(tc-getCXX) \
135 - QMAKE_CFLAGS_RELEASE="${CFLAGS}" \
136 - QMAKE_CFLAGS_DEBUG="${CFLAGS}" \
137 - QMAKE_CXXFLAGS_RELEASE="${CXXFLAGS}" \
138 - QMAKE_CXXFLAGS_DEBUG="${CXXFLAGS}" \
139 - QMAKE_LFLAGS_RELEASE="${LDFLAGS}" \
140 - QMAKE_LFLAGS_DEBUG="${LDFLAGS}" \
141 - "${configoptminus}" \
142 - "${configoptplus}" \
143 - QMAKE_RPATH= \
144 - QMAKE_STRIP= \
145 - ${@} >> ${LOGFILE} 2>&1
146 -
147 - local result=$?
148 - eend ${result}
149 -
150 - # was qmake successful?
151 - if [[ ${result} -ne 0 ]]; then
152 - echo
153 - eerror "Running qmake on \"${projprofile}\" has failed"
154 - echo
155 - eerror "This shouldn't happen - please send a bug report to bugs.gentoo.org"
156 - echo
157 - die "qmake failed on ${projprofile}"
158 - fi
159 -
160 - return ${result}
161 -}