Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-libs/qscintilla/
Date: Thu, 22 Dec 2016 18:27:00
Message-Id: 1482431140.5445db343d15bf741f107fc6e65112f4696ecc82.soap@gentoo
1 commit: 5445db343d15bf741f107fc6e65112f4696ecc82
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Thu Dec 22 17:46:36 2016 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Thu Dec 22 18:25:40 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5445db34
7
8 x11-libs/qscintilla: Make Qt5 compatible
9
10 Gentoo-bug: 541604
11
12 Package-Manager: Portage-2.3.3, Repoman-2.3.1
13 Closes: https://github.com/gentoo/gentoo/pull/3188
14
15 ...-2.8.4-r1.ebuild => qscintilla-2.8.4-r2.ebuild} | 4 +--
16 ...lla-2.9.2.ebuild => qscintilla-2.9.2-r1.ebuild} | 2 +-
17 ...lla-2.9.3.ebuild => qscintilla-2.9.3-r1.ebuild} | 2 +-
18 ...lla-2.9.3.ebuild => qscintilla-2.9.3-r2.ebuild} | 39 +++++++++++++---------
19 4 files changed, 27 insertions(+), 20 deletions(-)
20
21 diff --git a/x11-libs/qscintilla/qscintilla-2.8.4-r1.ebuild b/x11-libs/qscintilla/qscintilla-2.8.4-r2.ebuild
22 similarity index 96%
23 rename from x11-libs/qscintilla/qscintilla-2.8.4-r1.ebuild
24 rename to x11-libs/qscintilla/qscintilla-2.8.4-r2.ebuild
25 index 9c5ece9..0d86621 100644
26 --- a/x11-libs/qscintilla/qscintilla-2.8.4-r1.ebuild
27 +++ b/x11-libs/qscintilla/qscintilla-2.8.4-r2.ebuild
28 @@ -1,4 +1,4 @@
29 -# Copyright 1999-2015 Gentoo Foundation
30 +# Copyright 1999-2016 Gentoo Foundation
31 # Distributed under the terms of the GNU General Public License v2
32 # $Id$
33
34 @@ -15,7 +15,7 @@ SRC_URI="mirror://sourceforge/pyqt/${MY_P}.tar.gz"
35 LICENSE="|| ( GPL-2 GPL-3 )"
36 SLOT="0/11"
37 KEYWORDS="alpha amd64 ~arm ia64 ppc ppc64 ~sparc x86 ~amd64-linux ~x86-linux"
38 -IUSE="designer doc"
39 +IUSE="designer doc +qt4"
40
41 DEPEND="
42 >=dev-qt/qtcore-4.8.5:4
43
44 diff --git a/x11-libs/qscintilla/qscintilla-2.9.2.ebuild b/x11-libs/qscintilla/qscintilla-2.9.2-r1.ebuild
45 similarity index 98%
46 rename from x11-libs/qscintilla/qscintilla-2.9.2.ebuild
47 rename to x11-libs/qscintilla/qscintilla-2.9.2-r1.ebuild
48 index 5440631..caf9749 100644
49 --- a/x11-libs/qscintilla/qscintilla-2.9.2.ebuild
50 +++ b/x11-libs/qscintilla/qscintilla-2.9.2-r1.ebuild
51 @@ -15,7 +15,7 @@ SRC_URI="mirror://sourceforge/pyqt/${MY_P}.tar.gz"
52 LICENSE="GPL-3"
53 SLOT="0/12"
54 KEYWORDS="alpha amd64 ~arm ~ia64 ~ppc ppc64 ~sparc x86 ~amd64-linux ~x86-linux"
55 -IUSE="designer doc"
56 +IUSE="designer doc +qt4"
57
58 DEPEND="
59 dev-qt/qtcore:4
60
61 diff --git a/x11-libs/qscintilla/qscintilla-2.9.3.ebuild b/x11-libs/qscintilla/qscintilla-2.9.3-r1.ebuild
62 similarity index 98%
63 copy from x11-libs/qscintilla/qscintilla-2.9.3.ebuild
64 copy to x11-libs/qscintilla/qscintilla-2.9.3-r1.ebuild
65 index 103e457..a73439a 100644
66 --- a/x11-libs/qscintilla/qscintilla-2.9.3.ebuild
67 +++ b/x11-libs/qscintilla/qscintilla-2.9.3-r1.ebuild
68 @@ -15,7 +15,7 @@ SRC_URI="mirror://sourceforge/pyqt/${MY_P}.tar.gz"
69 LICENSE="GPL-3"
70 SLOT="0/12"
71 KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
72 -IUSE="designer doc"
73 +IUSE="designer doc +qt4"
74
75 DEPEND="
76 dev-qt/qtcore:4
77
78 diff --git a/x11-libs/qscintilla/qscintilla-2.9.3.ebuild b/x11-libs/qscintilla/qscintilla-2.9.3-r2.ebuild
79 similarity index 76%
80 rename from x11-libs/qscintilla/qscintilla-2.9.3.ebuild
81 rename to x11-libs/qscintilla/qscintilla-2.9.3-r2.ebuild
82 index 103e457..f4626d9 100644
83 --- a/x11-libs/qscintilla/qscintilla-2.9.3.ebuild
84 +++ b/x11-libs/qscintilla/qscintilla-2.9.3-r2.ebuild
85 @@ -15,14 +15,24 @@ SRC_URI="mirror://sourceforge/pyqt/${MY_P}.tar.gz"
86 LICENSE="GPL-3"
87 SLOT="0/12"
88 KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
89 -IUSE="designer doc"
90 -
91 -DEPEND="
92 - dev-qt/qtcore:4
93 - dev-qt/qtgui:4
94 - designer? ( dev-qt/designer:4 )
95 -"
96 -RDEPEND="${DEPEND}"
97 +IUSE="designer doc +qt4 qt5"
98 +
99 +REQUIRED_USE="^^ ( qt4 qt5 )"
100 +
101 +RDEPEND="
102 + qt4? (
103 + dev-qt/qtcore:4
104 + dev-qt/qtgui:4
105 + designer? ( dev-qt/designer:4 )
106 + )
107 + qt5? (
108 + dev-qt/qtcore:5
109 + dev-qt/qtgui:5
110 + dev-qt/qtprintsupport:5
111 + dev-qt/qtwidgets:5
112 + designer? ( dev-qt/designer:5 )
113 + )"
114 +DEPEND="${RDEPEND}"
115
116 S=${WORKDIR}/${MY_P}
117
118 @@ -51,14 +61,15 @@ qsci_run_in() {
119 }
120
121 src_configure() {
122 - qsci_run_in Qt4Qt5 eqmake4
123 + local my_eqmake=eqmake$(usex qt5 5 4)
124 + qsci_run_in Qt4Qt5 $my_eqmake
125
126 if use designer; then
127 # prevent building against system version (bug 466120)
128 append-cxxflags -I../Qt4Qt5
129 append-ldflags -L../Qt4Qt5
130
131 - qsci_run_in designer-Qt4Qt5 eqmake4
132 + qsci_run_in designer-Qt4Qt5 $my_eqmake
133 fi
134 }
135
136 @@ -73,10 +84,6 @@ src_install() {
137
138 use designer && qsci_run_in designer-Qt4Qt5 emake INSTALL_ROOT="${D}" install
139
140 - dodoc ChangeLog NEWS
141 -
142 - if use doc; then
143 - docinto html
144 - dodoc -r doc/html-Qt4Qt5/*
145 - fi
146 + use doc && HTML_DOCS=( doc/html-Qt4Qt5/. )
147 + einstalldocs
148 }