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: x11-libs/qscintilla/
Date: Mon, 30 Nov 2020 00:52:20
Message-Id: 1606697512.551d21a0429a481a62ed439f5adec94aa9fca84c.asturm@gentoo
1 commit: 551d21a0429a481a62ed439f5adec94aa9fca84c
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Mon Aug 24 11:05:41 2020 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Mon Nov 30 00:51:52 2020 +0000
6 URL: https://gitweb.gentoo.org/proj/kde-sunset.git/commit/?id=551d21a0
7
8 x11-libs/qscintilla: Remove IUSE="python,qt4" thusly option to build w/ Qt3
9
10 No more revdeps and easier (non-)maintenance without python.
11 Drop to ~ppc as well for unkeyworded dependencies.
12
13 Package-Manager: Portage-3.0.4, Repoman-3.0.1
14 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
15
16 x11-libs/qscintilla/qscintilla-2.4-r1.ebuild | 75 ++++++++++++++++++++++++++++
17 1 file changed, 75 insertions(+)
18
19 diff --git a/x11-libs/qscintilla/qscintilla-2.4-r1.ebuild b/x11-libs/qscintilla/qscintilla-2.4-r1.ebuild
20 new file mode 100644
21 index 00000000..02ff0987
22 --- /dev/null
23 +++ b/x11-libs/qscintilla/qscintilla-2.4-r1.ebuild
24 @@ -0,0 +1,75 @@
25 +# Copyright 1999-2020 Gentoo Authors
26 +# Distributed under the terms of the GNU General Public License v2
27 +
28 +EAPI=2
29 +
30 +MY_P="QScintilla-gpl-${PV/_pre/-snapshot-}"
31 +inherit eutils multilib qt4-r2
32 +
33 +DESCRIPTION="Qt port of Neil Hodgson's Scintilla C++ editor class"
34 +HOMEPAGE="https://riverbankcomputing.com/software/qscintilla/intro"
35 +SRC_URI="https://www.riverbankcomputing.co.uk/static/Downloads/QScintilla2/${MY_P}.tar.gz
36 +mirror://kde-sunset/${MY_P}.tar.gz"
37 +
38 +LICENSE="|| ( GPL-2 GPL-3 )"
39 +SLOT="0"
40 +KEYWORDS="~alpha amd64 ~hppa ~ppc ~ppc64 ~sparc x86"
41 +IUSE="doc"
42 +
43 +RDEPEND="dev-qt/qtgui:4"
44 +DEPEND="${RDEPEND}"
45 +
46 +S="${WORKDIR}"/${MY_P}
47 +
48 +PATCHES=( "${FILESDIR}/${PN}-2.4-designer.patch" )
49 +
50 +src_configure() {
51 + cd "${S}"/Qt4
52 + eqmake4 qscintilla.pro
53 +
54 + cd "${S}"/designer-Qt4
55 + eqmake4 designer.pro
56 +}
57 +
58 +src_compile() {
59 + cd "${S}"/Qt4
60 + emake all staticlib || die "emake failed"
61 +
62 + cd "${S}"/designer-Qt4
63 + emake || die "failed to build designer plugin"
64 +}
65 +
66 +src_install() {
67 + cd "${S}"/Qt4
68 + # header files
69 + insinto /usr/include/Qsci
70 + doins Qsci/*.h || die
71 + # libraries
72 + dolib.so libqscintilla2.so* || die
73 + dolib.a libqscintilla2.a || die
74 + # translations
75 + insinto /usr/share/${PN}/translations
76 + doins qscintilla_*.qm || die
77 + for trans in $(ls -1 qscintilla_*.qm); do
78 + dosym /usr/share/${PN}/translations/${trans} \
79 + /usr/share/qt4/translations/${trans} || die
80 + done
81 +
82 + # designer plugin
83 + cd "${S}"/designer-Qt4
84 + emake INSTALL_ROOT="${D}" install || die "designer plugin installation failed"
85 +
86 + # documentation
87 + cd "${S}"
88 + dodoc ChangeLog NEWS
89 + if use doc; then
90 + dohtml doc/html-Qt4/* || die
91 + insinto /usr/share/doc/${PF}/Scintilla
92 + doins doc/Scintilla/* || die
93 + fi
94 +}
95 +
96 +pkg_postinst() {
97 + ewarn "Please remerge dev-python/PyQt4 if you have problems with eric or other"
98 + ewarn "qscintilla related packages before submitting bug reports."
99 +}