Gentoo Archives: gentoo-commits

From: Davide Pesavento <pesa@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-qt/qtlockedfile/
Date: Fri, 23 Feb 2018 00:48:36
Message-Id: 1519346903.c68025ff70d0fda25e1aa1e1ced9e9c6df2a6347.pesa@gentoo
1 commit: c68025ff70d0fda25e1aa1e1ced9e9c6df2a6347
2 Author: Davide Pesavento <pesa <AT> gentoo <DOT> org>
3 AuthorDate: Fri Feb 23 00:46:10 2018 +0000
4 Commit: Davide Pesavento <pesa <AT> gentoo <DOT> org>
5 CommitDate: Fri Feb 23 00:48:23 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c68025ff
7
8 dev-qt/qtlockedfile: new snapshot
9
10 Package-Manager: Portage-2.3.24, Repoman-2.3.6
11
12 dev-qt/qtlockedfile/Manifest | 1 +
13 .../qtlockedfile-2.4.1_p20171024.ebuild | 52 ++++++++++++++++++++++
14 2 files changed, 53 insertions(+)
15
16 diff --git a/dev-qt/qtlockedfile/Manifest b/dev-qt/qtlockedfile/Manifest
17 index 809a7c95df6..a4bc5fdc6e8 100644
18 --- a/dev-qt/qtlockedfile/Manifest
19 +++ b/dev-qt/qtlockedfile/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/qtlockedfile/qtlockedfile-2.4.1_p20171024.ebuild b/dev-qt/qtlockedfile/qtlockedfile-2.4.1_p20171024.ebuild
25 new file mode 100644
26 index 00000000000..cfa7ba1b31d
27 --- /dev/null
28 +++ b/dev-qt/qtlockedfile/qtlockedfile-2.4.1_p20171024.ebuild
29 @@ -0,0 +1,52 @@
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="QFile extension with advisory locking functions"
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"
47 +
48 +DEPEND="dev-qt/qtcore:5"
49 +RDEPEND="${DEPEND}"
50 +
51 +S="${WORKDIR}/${MY_P}/${PN}"
52 +
53 +src_prepare() {
54 + default
55 +
56 + echo 'SOLUTIONS_LIBRARY = yes' > config.pri
57 + echo 'QT -= gui' >> src/qtlockedfile.pri
58 +
59 + sed -i -e "s/-head/-${PV%.*}/" common.pri || die
60 + sed -i -e '/SUBDIRS+=example/d' ${PN}.pro || die
61 +}
62 +
63 +src_configure() {
64 + eqmake5
65 +}
66 +
67 +src_install() {
68 + use doc && local HTML_DOCS=( doc/html/. )
69 + einstalldocs
70 +
71 + # libraries
72 + dolib.so lib/*
73 +
74 + # headers
75 + insinto "$(qt5_get_headerdir)"/QtSolutions
76 + doins src/QtLockedFile src/${PN}.h
77 +
78 + # .prf files
79 + insinto "$(qt5_get_mkspecsdir)"/features
80 + doins "${FILESDIR}"/${PN}.prf
81 +}