1 |
commit: 29740ac48b011a7e9945fa61ea526ac2bfb4cdef |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Sep 24 11:08:32 2022 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Sep 26 17:15:26 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=29740ac4 |
7 |
|
8 |
x11-libs/qscintilla: add 2.13.3 |
9 |
|
10 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
11 |
|
12 |
x11-libs/qscintilla/Manifest | 1 + |
13 |
x11-libs/qscintilla/qscintilla-2.13.3.ebuild | 80 ++++++++++++++++++++++++++++ |
14 |
2 files changed, 81 insertions(+) |
15 |
|
16 |
diff --git a/x11-libs/qscintilla/Manifest b/x11-libs/qscintilla/Manifest |
17 |
index 73c74d6856e9..43c913a0fa93 100644 |
18 |
--- a/x11-libs/qscintilla/Manifest |
19 |
+++ b/x11-libs/qscintilla/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST QScintilla_src-2.13.1.tar.gz 3059819 BLAKE2B 147d61cea2d557da6d922599f826a62c4b216f3252226892076ff785a080c9de1fef199297156fce55a00006567240af45e2833e085e423ad47e29c4f9b2241e SHA512 edf7f358e188235d8a39a7d4a8332ca478460a65a8829d9cafcab8f22b84abcd8d624de2076d81a66a56d5a5c53edc6ecc223459bbbb8ac876c5befd8873f700 |
22 |
+DIST QScintilla_src-2.13.3.tar.gz 3060031 BLAKE2B e93dd884f630ef5f02fbf558ea8d9f94cfde1af03b811c8df9c3197ce9cadc430bf9727aec114ba118588effa5bc76166e3bda48800b6112edc8e8c598d72952 SHA512 be102fd6123fad0bc7f8de39080886369398889de48a4ec8873a0751890d7be1f238ae5194b71d31aac492e2881b6bf7885d9c06a2a47e36328780b47694f5b5 |
23 |
|
24 |
diff --git a/x11-libs/qscintilla/qscintilla-2.13.3.ebuild b/x11-libs/qscintilla/qscintilla-2.13.3.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..ca1f4183654b |
27 |
--- /dev/null |
28 |
+++ b/x11-libs/qscintilla/qscintilla-2.13.3.ebuild |
29 |
@@ -0,0 +1,80 @@ |
30 |
+# Copyright 1999-2022 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=8 |
34 |
+ |
35 |
+inherit flag-o-matic qmake-utils |
36 |
+ |
37 |
+DESCRIPTION="Qt port of Neil Hodgson's Scintilla C++ editor control" |
38 |
+HOMEPAGE="https://www.riverbankcomputing.com/software/qscintilla/intro" |
39 |
+ |
40 |
+MY_PN=QScintilla |
41 |
+MY_P=${MY_PN}_src-${PV/_pre/.dev} |
42 |
+if [[ ${PV} == *_pre* ]]; then |
43 |
+ SRC_URI="https://dev.gentoo.org/~pesa/distfiles/${MY_P}.tar.gz" |
44 |
+else |
45 |
+ SRC_URI="https://www.riverbankcomputing.com/static/Downloads/${MY_PN}/${PV}/${MY_P}.tar.gz" |
46 |
+fi |
47 |
+S=${WORKDIR}/${MY_P} |
48 |
+ |
49 |
+LICENSE="GPL-3" |
50 |
+SLOT="0/15" |
51 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86" |
52 |
+IUSE="designer doc" |
53 |
+ |
54 |
+RDEPEND=" |
55 |
+ dev-qt/qtcore:5 |
56 |
+ dev-qt/qtgui:5 |
57 |
+ dev-qt/qtprintsupport:5 |
58 |
+ dev-qt/qtwidgets:5 |
59 |
+ designer? ( dev-qt/designer:5 ) |
60 |
+" |
61 |
+DEPEND="${RDEPEND}" |
62 |
+ |
63 |
+src_unpack() { |
64 |
+ default |
65 |
+ |
66 |
+ # Sub-slot sanity check |
67 |
+ local subslot=${SLOT#*/} |
68 |
+ local version=$(sed -nre 's:.*VERSION\s*=\s*([0-9\.]+):\1:p' "${S}"/src/qscintilla.pro || die) |
69 |
+ local major=${version%%.*} |
70 |
+ if [[ ${subslot} != ${major} ]]; then |
71 |
+ eerror |
72 |
+ eerror "Ebuild sub-slot (${subslot}) does not match QScintilla major version (${major})" |
73 |
+ eerror "Please update SLOT variable as follows:" |
74 |
+ eerror " SLOT=\"${SLOT%%/*}/${major}\"" |
75 |
+ eerror |
76 |
+ die "sub-slot sanity check failed" |
77 |
+ fi |
78 |
+} |
79 |
+ |
80 |
+qsci_run_in() { |
81 |
+ pushd "$1" >/dev/null || die |
82 |
+ shift || die |
83 |
+ "$@" || die |
84 |
+ popd >/dev/null || die |
85 |
+} |
86 |
+ |
87 |
+src_configure() { |
88 |
+ if use designer; then |
89 |
+ # prevent building against system version (bug 466120) |
90 |
+ append-cxxflags -I../src |
91 |
+ append-ldflags -L../src |
92 |
+ fi |
93 |
+ |
94 |
+ qsci_run_in src eqmake5 |
95 |
+ use designer && qsci_run_in designer eqmake5 |
96 |
+} |
97 |
+ |
98 |
+src_compile() { |
99 |
+ qsci_run_in src emake |
100 |
+ use designer && qsci_run_in designer emake |
101 |
+} |
102 |
+ |
103 |
+src_install() { |
104 |
+ qsci_run_in src emake INSTALL_ROOT="${D}" install |
105 |
+ use designer && qsci_run_in designer emake INSTALL_ROOT="${D}" install |
106 |
+ |
107 |
+ use doc && local HTML_DOCS=( doc/html/. ) |
108 |
+ einstalldocs |
109 |
+} |