Gentoo Archives: gentoo-commits

From: Johannes Huber <johu@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/kde:master commit in: eclass/
Date: Thu, 02 Aug 2012 10:14:08
Message-Id: 1343902661.3d0a6fbb272494dd0f44d36c27443636044799bd.johu@gentoo
1 commit: 3d0a6fbb272494dd0f44d36c27443636044799bd
2 Author: Johannes Huber <johu <AT> gentoo <DOT> org>
3 AuthorDate: Thu Aug 2 10:17:41 2012 +0000
4 Commit: Johannes Huber <johu <AT> gentoo <DOT> org>
5 CommitDate: Thu Aug 2 10:17:41 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/kde.git;a=commit;h=3d0a6fbb
7
8 [eclass] Remove obsolete koffice handling.
9
10 ---
11 eclass/kde4-base.eclass | 24 +++-------------------
12 eclass/kde4-functions.eclass | 5 +---
13 eclass/kde4-meta.eclass | 44 ------------------------------------------
14 3 files changed, 5 insertions(+), 68 deletions(-)
15
16 diff --git a/eclass/kde4-base.eclass b/eclass/kde4-base.eclass
17 index c0c73e3..a5e3177 100644
18 --- a/eclass/kde4-base.eclass
19 +++ b/eclass/kde4-base.eclass
20 @@ -66,9 +66,6 @@ case ${KDEBASE} in
21 SLOT=4
22 KDE_MINIMAL="${PV}"
23 ;;
24 - koffice)
25 - SLOT="2"
26 - ;;
27 kdevelop)
28 if [[ ${KDE_BUILD_TYPE} = live ]]; then
29 # @ECLASS-VARIABLE: KDEVELOP_VERSION
30 @@ -190,10 +187,6 @@ case ${KDEBASE} in
31 ;;
32 esac
33 ;;
34 - koffice)
35 - HOMEPAGE="http://www.koffice.org/"
36 - LICENSE="GPL-2"
37 - ;;
38 kdevelop)
39 HOMEPAGE="http://www.kdevelop.org/"
40 LICENSE="GPL-2"
41 @@ -421,7 +414,7 @@ RDEPEND+=" ${COMMONDEPEND}"
42 unset COMMONDEPEND
43
44 # Fetch section - If the ebuild's category is not 'kde-base' and if it is not a
45 -# koffice ebuild, the URI should be set in the ebuild itself
46 +# kdevelop ebuild, the URI should be set in the ebuild itself
47 _calculate_src_uri() {
48 debug-print-function ${FUNCNAME} "$@"
49
50 @@ -464,12 +457,6 @@ _calculate_src_uri() {
51 SRC_URI="mirror://kde/stable/${PV}/src/${_kmname_pv}.tar.xz" ;;
52 esac
53 ;;
54 - koffice)
55 - case ${PV} in
56 - 2.[1234].[6-9]*) SRC_URI="mirror://kde/unstable/${_kmname_pv}/${_kmname_pv}.tar.bz2" ;;
57 - *) SRC_URI="mirror://kde/stable/${_kmname_pv}/${_kmname_pv}.tar.bz2" ;;
58 - esac
59 - ;;
60 kdevelop|kdevelop-php*|kdevplatform)
61 case ${KDEVELOP_VERSION} in
62 4.[12].[6-9]*) SRC_URI="mirror://kde/unstable/kdevelop/${KDEVELOP_VERSION}/src/${P}.tar.bz2" ;;
63 @@ -537,9 +524,6 @@ _calculate_live_repo() {
64 ESVN_REPO_URI="${ESVN_MIRROR}/trunk/${KMNAME}/${KMMODULE}"
65 ESVN_PROJECT="${PN}${ESVN_PROJECT_SUFFIX}"
66 ;;
67 - koffice)
68 - ESVN_REPO_URI="${ESVN_MIRROR}/trunk/${KMNAME}"
69 - ;;
70 *)
71 ESVN_REPO_URI="${ESVN_MIRROR}/trunk/${KMNAME}/${KMMODULE}"
72 ;;
73 @@ -552,9 +536,9 @@ _calculate_live_repo() {
74 # @ECLASS-VARIABLE: ESVN_UP_FREQ
75 # @DESCRIPTION:
76 # This variable is used for specifying the timeout between svn synces
77 - # for kde-base and koffice modules. Does not affect misc apps.
78 + # for kde-base modules. Does not affect misc apps.
79 # Default value is 1 hour.
80 - [[ ${KDEBASE} = kde-base || ${KDEBASE} = koffice ]] && ESVN_UP_FREQ=${ESVN_UP_FREQ:-1}
81 + [[ ${KDEBASE} = kde-base ]] && ESVN_UP_FREQ=${ESVN_UP_FREQ:-1}
82 ;;
83 git)
84 local _kmname
85 @@ -735,7 +719,7 @@ kde4-base_src_prepare() {
86 load_library_dependencies
87 fi
88
89 - # Hack for manuals relying on outdated DTD, only outside kde-base/koffice/...
90 + # Hack for manuals relying on outdated DTD, only outside kde-base/...
91 if [[ -z ${KDEBASE} ]]; then
92 find "${S}" -name "*.docbook" \
93 -exec sed -i -r \
94
95 diff --git a/eclass/kde4-functions.eclass b/eclass/kde4-functions.eclass
96 index 63fc43c..9ab80ea 100644
97 --- a/eclass/kde4-functions.eclass
98 +++ b/eclass/kde4-functions.eclass
99 @@ -32,13 +32,10 @@ esac
100 # @ECLASS-VARIABLE: KDEBASE
101 # @DESCRIPTION:
102 # This gets set to a non-zero value when a package is considered a kde or
103 -# koffice ebuild.
104 +# kdevelop ebuild.
105 if [[ ${CATEGORY} = kde-base ]]; then
106 debug-print "${ECLASS}: KDEBASE ebuild recognized"
107 KDEBASE=kde-base
108 -elif [[ ${KMNAME-${PN}} = koffice ]]; then
109 - debug-print "${ECLASS}: KOFFICE ebuild recognized"
110 - KDEBASE=koffice
111 elif [[ ${KMNAME-${PN}} = kdevelop ]]; then
112 debug-print "${ECLASS}: KDEVELOP ebuild recognized"
113 KDEBASE=kdevelop
114
115 diff --git a/eclass/kde4-meta.eclass b/eclass/kde4-meta.eclass
116 index ff21679..3631eb8 100644
117 --- a/eclass/kde4-meta.eclass
118 +++ b/eclass/kde4-meta.eclass
119 @@ -37,28 +37,6 @@ case ${KMNAME} in
120 COMMONDEPEND+=" $(add_kdebase_dep libkdegames)"
121 fi
122 ;;
123 - koffice)
124 - [[ ${PN} != koffice-data ]] && IUSE+=" debug"
125 - RDEPEND+="
126 - !app-office/${PN}:0
127 - !app-office/koffice:0
128 - !app-office/koffice-meta:0
129 - "
130 - if has openexr ${IUSE//+}; then
131 - COMMONDEPEND+=" media-gfx/imagemagick[openexr?]"
132 - else
133 - COMMONDEPEND+=" media-gfx/imagemagick"
134 - fi
135 -
136 - COMMONDEPEND+="
137 - dev-cpp/eigen:2
138 - media-libs/fontconfig
139 - media-libs/freetype:2
140 - "
141 - if [[ ${PN} != koffice-libs && ${PN} != koffice-data ]]; then
142 - COMMONDEPEND+=" >=app-office/koffice-libs-${PV}:${SLOT}"
143 - fi
144 - ;;
145 esac
146
147 DEPEND+=" ${COMMONDEPEND}"
148 @@ -356,20 +334,6 @@ kde4-meta_create_extractlists() {
149 KMEXTRACTONLY+="
150 kdeutils-version.h"
151 ;;
152 - koffice)
153 - KMEXTRACTONLY+="
154 - filters/config-filters.h.cmake
155 - "
156 - case ${PV} in
157 - 2.[12].*)
158 - KMEXTRACTONLY+="
159 - config-endian.h.cmake
160 - config-openexr.h.cmake
161 - config-opengl.h.cmake
162 - config-prefix.h.cmake"
163 - ;;
164 - esac
165 - ;;
166 esac
167 # Don't install cmake modules for split ebuilds, to avoid collisions.
168 # note: kdegraphics >= 4.6.2 does not even have code to do that, so we
169 @@ -619,14 +583,6 @@ kde4-meta_change_cmakelists() {
170 -e 's/find_package(Boost REQUIRED)/macro_optional_find_package(Boost)/' \
171 -i CMakeLists.txt || die "failed to disable hardcoded checks"
172 ;;
173 - koffice)
174 - # Prevent collisions
175 - if [[ ${PN} != koffice-data ]]; then
176 - sed -e '/install(.*FindKOfficeLibs.cmake/,/)/ d' \
177 - -i cmake/modules/CMakeLists.txt || die "${LINENO}: sed died in collision prevention section"
178 - sed -e '/install(.\+config-openexr\.h.\+)/d' \
179 - -i CMakeLists.txt || die "${LINENO}: sed died in collision prevention section"
180 - fi
181 esac
182
183 popd > /dev/null