1 |
commit: b015e7b7c0e5931b4128e1a36b1b14e17e3616b2 |
2 |
Author: Davide Pesavento <pesa <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Aug 25 18:23:24 2018 +0000 |
4 |
Commit: Davide Pesavento <pesa <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Aug 25 18:48:18 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b015e7b7 |
7 |
|
8 |
x11-libs/qscintilla: bump to 2.10.7, EAPI 7 |
9 |
|
10 |
Package-Manager: Portage-2.3.48, Repoman-2.3.10 |
11 |
|
12 |
x11-libs/qscintilla/Manifest | 1 + |
13 |
x11-libs/qscintilla/qscintilla-2.10.7.ebuild | 77 ++++++++++++++++++++++++++++ |
14 |
2 files changed, 78 insertions(+) |
15 |
|
16 |
diff --git a/x11-libs/qscintilla/Manifest b/x11-libs/qscintilla/Manifest |
17 |
index 9726cb430a4..67300618010 100644 |
18 |
--- a/x11-libs/qscintilla/Manifest |
19 |
+++ b/x11-libs/qscintilla/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST QScintilla_gpl-2.10.4.tar.gz 2721322 BLAKE2B df50dd0a34db96dd57147ddc399d4a30751b1bb4922dc1b8b3c3c1989e810937dc8345f92128e8a606b1edc04fde4b930a424ab8344818c9899c8fe496793a77 SHA512 dee6684f68173784d098931554c839a30e129b89f980cd9704f818c44eb7023199bd3682e4b342091fa3e0ce577ec576d34046477bdd1d7fc58ca5dd2ba947a3 |
22 |
+DIST QScintilla_gpl-2.10.7.tar.gz 2734778 BLAKE2B 9fea764828e1c95ce842b06b06c45398b52669c0823a660bcd45a4af4a33a4a5b75b6349f84dc844e18d394c301bbb66f3485abd9f56a5c056d2b507b67a0148 SHA512 d5489a308da265f09c305128d9984b195c90003e52a55f5342c8ea50090392619425a0fc3df692aae0d09467d5b0b496b548eb31ff93cba97c9f4f406500007c |
23 |
|
24 |
diff --git a/x11-libs/qscintilla/qscintilla-2.10.7.ebuild b/x11-libs/qscintilla/qscintilla-2.10.7.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..aa76e891b48 |
27 |
--- /dev/null |
28 |
+++ b/x11-libs/qscintilla/qscintilla-2.10.7.ebuild |
29 |
@@ -0,0 +1,77 @@ |
30 |
+# Copyright 1999-2018 Gentoo Foundation |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=7 |
34 |
+ |
35 |
+inherit flag-o-matic qmake-utils |
36 |
+ |
37 |
+MY_P=QScintilla_gpl-${PV/_pre/.dev} |
38 |
+ |
39 |
+DESCRIPTION="A Qt port of Neil Hodgson's Scintilla C++ editor class" |
40 |
+HOMEPAGE="https://www.riverbankcomputing.com/software/qscintilla/intro" |
41 |
+SRC_URI="mirror://sourceforge/pyqt/${MY_P}.tar.gz" |
42 |
+ |
43 |
+LICENSE="GPL-3" |
44 |
+SLOT="0/13" |
45 |
+KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86" |
46 |
+IUSE="designer doc" |
47 |
+ |
48 |
+DEPEND=" |
49 |
+ dev-qt/qtcore:5 |
50 |
+ dev-qt/qtgui:5 |
51 |
+ dev-qt/qtprintsupport:5 |
52 |
+ dev-qt/qtwidgets:5 |
53 |
+ designer? ( dev-qt/designer:5 ) |
54 |
+" |
55 |
+RDEPEND="${DEPEND}" |
56 |
+ |
57 |
+S=${WORKDIR}/${MY_P} |
58 |
+ |
59 |
+src_unpack() { |
60 |
+ default |
61 |
+ |
62 |
+ # Sub-slot sanity check |
63 |
+ local subslot=${SLOT#*/} |
64 |
+ local version=$(sed -nre 's:.*VERSION\s*=\s*([0-9\.]+):\1:p' "${S}"/Qt4Qt5/qscintilla.pro || die) |
65 |
+ local major=${version%%.*} |
66 |
+ if [[ ${subslot} != ${major} ]]; then |
67 |
+ eerror |
68 |
+ eerror "Ebuild sub-slot (${subslot}) does not match QScintilla major version (${major})" |
69 |
+ eerror "Please update SLOT variable as follows:" |
70 |
+ eerror " SLOT=\"${SLOT%%/*}/${major}\"" |
71 |
+ eerror |
72 |
+ die "sub-slot sanity check failed" |
73 |
+ fi |
74 |
+} |
75 |
+ |
76 |
+qsci_run_in() { |
77 |
+ pushd "$1" >/dev/null || die |
78 |
+ shift || die |
79 |
+ "$@" || die |
80 |
+ popd >/dev/null || die |
81 |
+} |
82 |
+ |
83 |
+src_configure() { |
84 |
+ if use designer; then |
85 |
+ # prevent building against system version (bug 466120) |
86 |
+ append-cxxflags -I../Qt4Qt5 |
87 |
+ append-ldflags -L../Qt4Qt5 |
88 |
+ fi |
89 |
+ |
90 |
+ qsci_run_in Qt4Qt5 eqmake5 |
91 |
+ use designer && qsci_run_in designer-Qt4Qt5 eqmake5 |
92 |
+} |
93 |
+ |
94 |
+src_compile() { |
95 |
+ qsci_run_in Qt4Qt5 emake |
96 |
+ use designer && qsci_run_in designer-Qt4Qt5 emake |
97 |
+} |
98 |
+ |
99 |
+src_install() { |
100 |
+ qsci_run_in Qt4Qt5 emake INSTALL_ROOT="${D}" install |
101 |
+ use designer && qsci_run_in designer-Qt4Qt5 emake INSTALL_ROOT="${D}" install |
102 |
+ |
103 |
+ DOCS=( ChangeLog NEWS ) |
104 |
+ use doc && HTML_DOCS=( doc/html-Qt4Qt5/. ) |
105 |
+ einstalldocs |
106 |
+} |