1 |
commit: 17f1a24c3760af4e3c56aba5d900d50651e5a34d |
2 |
Author: Davide Pesavento <pesa <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Feb 23 01:02:55 2018 +0000 |
4 |
Commit: Davide Pesavento <pesa <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Feb 23 01:02:55 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=17f1a24c |
7 |
|
8 |
dev-qt/qtsingleapplication: new snapshot |
9 |
|
10 |
Package-Manager: Portage-2.3.24, Repoman-2.3.6 |
11 |
|
12 |
dev-qt/qtsingleapplication/Manifest | 1 + |
13 |
.../qtsingleapplication-2.6.1_p20171024.ebuild | 70 ++++++++++++++++++++++ |
14 |
2 files changed, 71 insertions(+) |
15 |
|
16 |
diff --git a/dev-qt/qtsingleapplication/Manifest b/dev-qt/qtsingleapplication/Manifest |
17 |
index 809a7c95df6..a4bc5fdc6e8 100644 |
18 |
--- a/dev-qt/qtsingleapplication/Manifest |
19 |
+++ b/dev-qt/qtsingleapplication/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST qt-solutions-20150629.tar.xz 710488 BLAKE2B 102829e3b2afa7cb665c09fc259f9b966596a8245e8e8325c6c45e402bc337d205539b20be791e16515754c6d74247a714b278028e9ffbb74f578c9b8b39b094 SHA512 a95ed58f0218cd90d734a40eedd173b896fa0138ad235f3157d7bee538b16c5f385d93bae483fd22267f2984389b9940bb85ba0cd3d25c16124d56abb39568f5 |
22 |
+DIST qt-solutions-20171024.tar.xz 710532 BLAKE2B 365f4c6fc3bee34bf26ac5039984ceac1d90527297b985b0d1b606f3ba67219bab7f7cba40b4adca55446c34e9f4fe218b4449ee255ba6f6409de78f80ccdaec SHA512 4784d88c2f40c88f06abeb728842875fb5e428a630dbf749f71055681b0c631803d2901b60aa8cc95f5f382dcd21da8d739873aa45e3dd3676ee95925f0198da |
23 |
|
24 |
diff --git a/dev-qt/qtsingleapplication/qtsingleapplication-2.6.1_p20171024.ebuild b/dev-qt/qtsingleapplication/qtsingleapplication-2.6.1_p20171024.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..dace0a999a2 |
27 |
--- /dev/null |
28 |
+++ b/dev-qt/qtsingleapplication/qtsingleapplication-2.6.1_p20171024.ebuild |
29 |
@@ -0,0 +1,70 @@ |
30 |
+# Copyright 1999-2018 Gentoo Foundation |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=6 |
34 |
+ |
35 |
+inherit qmake-utils |
36 |
+ |
37 |
+MY_P=qt-solutions-${PV#*_p} |
38 |
+ |
39 |
+DESCRIPTION="Qt library to start applications only once per user" |
40 |
+HOMEPAGE="https://code.qt.io/cgit/qt-solutions/qt-solutions.git/" |
41 |
+SRC_URI="https://dev.gentoo.org/~pesa/distfiles/${MY_P}.tar.xz" |
42 |
+ |
43 |
+LICENSE="|| ( LGPL-2.1 GPL-3 )" |
44 |
+SLOT="0" |
45 |
+KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86" |
46 |
+IUSE="doc X" |
47 |
+ |
48 |
+DEPEND=" |
49 |
+ dev-qt/qtcore:5 |
50 |
+ dev-qt/qtlockedfile[qt5(+)] |
51 |
+ dev-qt/qtnetwork:5 |
52 |
+ X? ( |
53 |
+ dev-qt/qtgui:5 |
54 |
+ dev-qt/qtwidgets:5 |
55 |
+ ) |
56 |
+" |
57 |
+RDEPEND="${DEPEND}" |
58 |
+ |
59 |
+S="${WORKDIR}/${MY_P}/${PN}" |
60 |
+ |
61 |
+PATCHES=( |
62 |
+ "${FILESDIR}/2.6.1_p20130904-unbundle-qtlockedfile.patch" |
63 |
+ "${FILESDIR}/2.6.1_p20130904-no-gui.patch" |
64 |
+) |
65 |
+ |
66 |
+src_prepare() { |
67 |
+ default |
68 |
+ |
69 |
+ echo 'SOLUTIONS_LIBRARY = yes' > config.pri |
70 |
+ use X || echo 'QTSA_NO_GUI = yes' >> config.pri |
71 |
+ |
72 |
+ sed -i -e "s/-head/-${PV%.*}/" common.pri || die |
73 |
+ sed -i -e '/SUBDIRS+=examples/d' ${PN}.pro || die |
74 |
+ |
75 |
+ # to ensure unbundling |
76 |
+ rm src/qtlockedfile* || die |
77 |
+} |
78 |
+ |
79 |
+src_configure() { |
80 |
+ eqmake5 |
81 |
+} |
82 |
+ |
83 |
+src_install() { |
84 |
+ use doc && local HTML_DOCS=( doc/html/. ) |
85 |
+ einstalldocs |
86 |
+ |
87 |
+ # libraries |
88 |
+ dolib.so lib/* |
89 |
+ |
90 |
+ # headers |
91 |
+ insinto "$(qt5_get_headerdir)"/QtSolutions |
92 |
+ doins src/qtsinglecoreapplication.h |
93 |
+ use X && doins src/{QtSingleApplication,${PN}.h} |
94 |
+ |
95 |
+ # .prf files |
96 |
+ insinto "$(qt5_get_mkspecsdir)"/features |
97 |
+ doins "${FILESDIR}"/qtsinglecoreapplication.prf |
98 |
+ use X && doins "${FILESDIR}"/${PN}.prf |
99 |
+} |