Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: kde-misc/kdiff3/
Date: Sun, 03 Sep 2017 09:27:34
Message-Id: 1504430840.a6c0c2f43a3e498095a6194f163da2aab2a198e9.asturm@gentoo
1 commit: a6c0c2f43a3e498095a6194f163da2aab2a198e9
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sun Sep 3 09:24:50 2017 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sun Sep 3 09:27:20 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a6c0c2f4
7
8 kde-misc/kdiff3: Drop USE=debug,handbook,kde,qt4
9
10 kde-frameworks/kdelibs is deprecated and going to be removed.
11 Plasma users are served well by the kf5-based snapshot, everyone else
12 probably does not care about USE=kde in this version of kdiff3 anymore.
13
14 - Remove obsolete REQUIRED_USE
15 - Bump to EAPI 6
16 - Drop kde4-base.eclass
17 - sed in place and add missing || die
18
19 KDE_LINGUAS and USE=handbook only ever worked with USE=kde enabled.
20 The remaining bits and pieces install exactly as USE=-kde did before.
21
22 Gentoo-bug: 629018
23 Package-Manager: Portage-2.3.8, Repoman-2.3.3
24
25 kde-misc/kdiff3/kdiff3-0.9.98-r1.ebuild | 89 +++++++--------------------------
26 1 file changed, 18 insertions(+), 71 deletions(-)
27
28 diff --git a/kde-misc/kdiff3/kdiff3-0.9.98-r1.ebuild b/kde-misc/kdiff3/kdiff3-0.9.98-r1.ebuild
29 index 56c3427c41e..3490fd344f0 100644
30 --- a/kde-misc/kdiff3/kdiff3-0.9.98-r1.ebuild
31 +++ b/kde-misc/kdiff3/kdiff3-0.9.98-r1.ebuild
32 @@ -1,101 +1,48 @@
33 -# Copyright 1999-2016 Gentoo Foundation
34 +# Copyright 1999-2017 Gentoo Foundation
35 # Distributed under the terms of the GNU General Public License v2
36
37 -EAPI=5
38 +EAPI=6
39
40 -if [[ ${PV} != *9999* ]]; then
41 - KDE_LINGUAS="ar bg br bs ca ca@valencia cs cy da de el en_GB eo es et fr ga
42 - gl hi hne hr hu is it ja ka lt mai ml nb nds nl nn pl pt pt_BR ro ru rw sk
43 - sv ta tg tr ug uk zh_CN zh_TW"
44 - SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
45 - KEYWORDS="amd64 x86 ~amd64-linux"
46 - KDE_HANDBOOK="optional"
47 -else
48 - KEYWORDS=""
49 -fi
50 -
51 -KDE_REQUIRED="optional"
52 -inherit kde4-base qmake-utils
53 +inherit qmake-utils
54
55 DESCRIPTION="Qt/KDE based frontend to diff3"
56 HOMEPAGE="http://kdiff3.sourceforge.net/"
57 -EGIT_REPO_URI=( "git://git.code.sf.net/p/kdiff3/code" )
58 +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
59
60 LICENSE="GPL-2"
61 SLOT="4"
62 -IUSE="debug kde +qt4 qt5"
63 -
64 -REQUIRED_USE="kde? ( qt4 )
65 - ^^ ( qt4 qt5 )"
66 +KEYWORDS="amd64 x86 ~amd64-linux"
67 +IUSE="qt5"
68
69 -CDEPEND="
70 - qt4? ( dev-qt/qtcore:4
71 +DEPEND="
72 + !qt5? ( dev-qt/qtcore:4
73 dev-qt/qtgui:4 )
74 qt5? ( dev-qt/qtcore:5
75 dev-qt/qtgui:5
76 dev-qt/qtprintsupport:5
77 dev-qt/qtwidgets:5 )
78 - kde? ( kde-frameworks/kdelibs:4 )
79 -"
80 -DEPEND="${CDEPEND}
81 - sys-devel/gettext
82 "
83 -RDEPEND="${CDEPEND}
84 +RDEPEND="${DEPEND}
85 sys-apps/diffutils
86 "
87
88 -RESTRICT="!kde? ( test )"
89 -
90 -PATCHES=( "${FILESDIR}/${P}-kdelibs-4.14.11.patch" )
91 -
92 -src_unpack(){
93 - if [[ ${PV} == *9999* ]]; then
94 - git-r3_src_unpack
95 - mv "${S}"/${PN}/* "${S}" || die
96 - else
97 - default
98 - fi
99 -}
100 +RESTRICT="test"
101
102 src_prepare() {
103 - if ! use kde; then
104 - # adapt to Gentoo paths
105 - sed -e s,documentation.path.*$,documentation.path\ =\ "${EPREFIX}"/usr/share/doc/"${PF}", \
106 - -e s,target.path.*$,target.path\ =\ "${EPREFIX}"/usr/bin, \
107 - "${S}"/src-QT4/kdiff3.pro > "${S}"/src-QT4/kdiff3_fixed.pro
108 - else
109 - kde4-base_src_prepare
110 - fi
111 + default
112 + # adapt to Gentoo paths
113 + sed -e s,documentation.path.*$,documentation.path\ =\ "${EPREFIX}"/usr/share/doc/"${PF}", \
114 + -e s,target.path.*$,target.path\ =\ "${EPREFIX}"/usr/bin, -i src-QT4/kdiff3.pro || die
115 }
116
117 src_configure() {
118 - if use kde; then
119 - kde4-base_src_configure
120 - elif use qt4; then
121 - eqmake4 "${S}"/src-QT4/kdiff3_fixed.pro
122 + if ! use qt5; then
123 + eqmake4 "${S}"/src-QT4/kdiff3.pro
124 else
125 - eqmake5 "${S}"/src-QT4/kdiff3_fixed.pro
126 - fi
127 -}
128 -
129 -src_compile() {
130 - if use kde; then
131 - kde4-base_src_compile
132 - else
133 - default
134 + eqmake5 "${S}"/src-QT4/kdiff3.pro
135 fi
136 }
137
138 src_install() {
139 - if use kde; then
140 - kde4-base_src_install
141 - else
142 - emake INSTALL_ROOT="${D}" install
143 - fi
144 -}
145 -
146 -src_test() {
147 - if use kde; then
148 - kde4-base_src_test
149 - fi
150 + emake INSTALL_ROOT="${D}" install
151 }